python-voicetext

Voice synthesiser using VoiceText Web API


License
Apache-2.0
Install
pip install python-voicetext==0.3.1

Documentation

python-voicetext

Voice synthesiser using VoiceText Web API

To use this software, first you need to complete the user registration and get the API key.

Installation

$ pip install python-voicetext

or

$ git clone git@github.com:youtalk/python-voicetext.git
$ cd python-voicetext
$ python setup.py install

Dependencies

Ubuntu

$ sudo apt-get install python-pyaudio

OSX

$ brew install portaudio

Usage

$ 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