https://github.com/youtalk/python-voicetext
Voice synthesiser with VoiceText Web API
https://github.com/youtalk/python-voicetext
Last synced: about 2 months ago
JSON representation
Voice synthesiser with VoiceText Web API
- Host: GitHub
- URL: https://github.com/youtalk/python-voicetext
- Owner: youtalk
- License: apache-2.0
- Created: 2014-07-14T14:40:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-11T11:25:32.000Z (over 3 years ago)
- Last Synced: 2025-03-28T03:14:29.818Z (2 months ago)
- Language: Python
- Size: 36.1 KB
- Stars: 20
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
python-voicetext
================Voice synthesiser using [VoiceText Web API](https://cloud.voicetext.jp/webapi)
To use this software, first you need to [complete the user registration](https://cloud.voicetext.jp/webapi/api_keys/new) and get the API key.
Installation
------------~~~sh
$ pip3 install python-voicetext
~~~or
~~~sh
$ git clone [email protected]:youtalk/python-voicetext.git
$ cd python-voicetext
$ pipenv install
$ pipenv shell
$ python3 setup.py install
~~~Usage
-----~~~sh
$ python3
>> from voicetext import VoiceText
>> vt = VoiceText("YOUR_API_KEY")
>> vt.speak("こんにちは。")
>> vt.speaker = "takeru"
>> vt.emotion = "angry"
>> vt..speak("こんばんは。")
>> with open("greet.wav", "wb") as f:
.... f.write(vt.to_wave("おはよう。"))
~~~For more information, see also [test/test_voicetext.py](https://github.com/youtalk/python-voicetext/blob/master/test/test_voicetext.py)