Skip to content

collection of different source of TTS api for generating corpus.

Notifications You must be signed in to change notification settings

voidful/tts-corpus-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
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
from ttscorpus.source import MAC

mac = MAC()
mac('hello, there, I am mac', 'output')

Google TTS

  1. 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

  1. 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')

About

collection of different source of TTS api for generating corpus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages