Voice synthesiser using VoiceText Web API
To use this software, first you need to complete the user registration and get the API key.
$ pip install python-voicetext
or
$ git clone [email protected]:youtalk/python-voicetext.git
$ cd python-voicetext
$ python setup.py install
$ sudo apt-get install python-pyaudio
$ brew install portaudio
$ ipython
>> from voicetext import VoiceText
>> vt = VoiceText('YOUR_API_KEY')
>> vt.speak('こんにちは。')
>> vt.speaker('takeru').emotion('angry').speak('こんばんは。')
>> with open('greet.wav', 'wb') as f:
.... f.write(vt.to_wave('おはよう。'))
For more information, see also test/test_voicetext.py