https://github.com/nature1995/text2audio-baidu
It a project for text2audio though Baidu API
https://github.com/nature1995/text2audio-baidu
Last synced: 8 months ago
JSON representation
It a project for text2audio though Baidu API
- Host: GitHub
- URL: https://github.com/nature1995/text2audio-baidu
- Owner: nature1995
- License: mit
- Created: 2019-01-19T05:49:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T06:13:03.000Z (almost 7 years ago)
- Last Synced: 2025-01-30T10:14:53.259Z (10 months ago)
- Language: Jupyter Notebook
- Size: 158 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Text to Audio-Baidu
## How to run it
* Sign up and get Baidu voice api-key
https://login.bce.baidu.com/
* Install SDK
```
pip install baidu-aip
```
* Install ffmpeg
http://ffmpeg.org/
* Sign up and get turing robot api
http://www.tuling123.com/sso-web/register?ReturnURL=http%3A%2F%2Fwww.tuling123.com%2F
* Change the API key .
```python
test.py
apiKey = "YOUR-APIKEY" # YOUR-APIKEY
```
```python
third.py
APP_ID = 'YOUR-APP_ID' # 'YOUR-APP_ID'
API_KEY = 'YOUR-API_KEY' # 'YOUR-API_KEY'
SECRET_KEY = 'YOUR-SECRET_KEY' # 'YOUR-SECRET_KEY'
```
* Run it
```
python test.py
```