collection of different source of tts api for generating corpus.
Project description
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
- install
pip install google-cloud-texttospeech
import os
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "xxx.json"
from ttscorpus.source import GoogleCloud
gc = GoogleCloud()
gc("hi,there", 'output')
Free
Mac
- install ffmpeg
brew install ffmpeg
from ttscorpus.source import MAC
mac = MAC()
mac('hello, there, I am mac', 'output')
Google TTS
- install
pip install gtts
from ttscorpus.source import GoogleTTS
mac = GoogleTTS()
mac('sixty six year old badly. independence of mutual fund boards represents discrete defeat.', 'test')
Android TTS
- build android tts server app from: https://github.com/voidful/android-tts-server
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ttscorpus-0.0.2.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file ttscorpus-0.0.2.tar.gz
.
File metadata
- Download URL: ttscorpus-0.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b036928c3da3236866c384bfe9b3a0959b50c81f18647fbc2110cf373012151 |
|
MD5 | c0b3e51e164f568ee17c54ab6bf8915b |
|
BLAKE2b-256 | 7f1f0e74c32d25b2efb5d168ec838c5ed6aa0a9909b6fefeb4bb791e978381c2 |
File details
Details for the file ttscorpus-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ttscorpus-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b4cce9942befb842c7a560b8cbcdfbcc27b80e45b2d333443f98bf101b0c02b |
|
MD5 | ca7eb7b1aaf177e8d9dfc9b048fa6292 |
|
BLAKE2b-256 | f88ed703c36b7f1c50b998d08beccd4551947f073271617c76bc3117c3272866 |