https://github.com/voidful/tts-corpus-creator
collection of different source of TTS api for generating corpus.
https://github.com/voidful/tts-corpus-creator
Last synced: 11 months ago
JSON representation
collection of different source of TTS api for generating corpus.
- Host: GitHub
- URL: https://github.com/voidful/tts-corpus-creator
- Owner: voidful
- Created: 2022-03-21T12:48:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T16:48:17.000Z (over 4 years ago)
- Last Synced: 2025-06-27T04:15:20.136Z (12 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tts-corpus-creator
collection of different source of tts api for generating corpus. feature:
- large scale tts
- support both free and charge source
## Source
### Charge
#### Google Cloud TTS
1. install `pip install google-cloud-texttospeech`
```python
import os
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "xxx.json"
from ttscorpus.source import GoogleCloud
gc = GoogleCloud()
gc("hi,there", 'output')
```
### Free
#### Mac
1. install ffmpeg `brew install ffmpeg`
```python
from ttscorpus.source import MAC
mac = MAC()
mac('hello, there, I am mac', 'output')
```
#### Google TTS
1. install `pip install gtts`
```python
from ttscorpus.source import GoogleTTS
mac = GoogleTTS()
mac('sixty six year old badly. independence of mutual fund boards represents discrete defeat.', 'test')
```
#### Android TTS
1. build android tts server app
from: [https://github.com/voidful/android-tts-server](https://github.com/voidful/android-tts-server)
```python
from ttscorpus.source import AndroidTTS
atts = AndroidTTS('http://xxxx:port')
atts(
"CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO …",
'test')
```