A speech synthesis library with a primary use for Russian language.
First, you need to install the library.
$ pip install .
Second, you need to install your solutions of interest.
- RHVoice installation guide.
- Google Translate Speech Synthesis installation guide
from texttospeech import TextToSpeech
# Use default text synthesis solution
tts = TextToSpeech()
# Return an instance of speechrecongition.AudioData that can be used further
audiodata = tts.synthesize("привет мир, этот текст был синтезирован!")
# Write to disk so you can listen to the synthesized data
with open("out.wav", mode="wb") as f:
f.write(audiodata.get_wav_data())
- RAW
- WAV
- AIFF
- FLAC
- RHVoice
- Google Translate Speech Synthesis