-
Notifications
You must be signed in to change notification settings - Fork 634
HTTP API
To make it easier the use of EmotiVoice without having to set up a Python environment or prepare models, two methods are provided or planned:
We would like to express our gratitude to Zhiyun for their assistance in providing the EmotiVoice HTTP API. Below are step-by-step instructions:
- Register and log in at Zhiyun APP Overview, click 创建应用 button to create an application. Select 智能语音服务 and especially 语音合成.
- After creating the application, obtain the 应用ID and 应用密钥 by clicking 查看. These are necessary when calling the EmotiVoice HTTP API.
- Update
APP_KEY
andAPP_SECRET
inTtsDemo.py
with the obtained 应用ID and 应用密钥. CustomizePATH
,q
, andvoiceName
in thecreateRequest
function. Refer to EmotiVoice's List of Voices for details onvoiceName
. - Running
python HTTP_API_TtsDemo/apidemo/TtsDemo.py
will generate the TTS result, an audio file saved asPATH
in under 1 second, or a few seconds, depending on length of input textq
as well as quality of network connecting. After verifying the results, integrate the code into your software.
-
The input text
q
is limited to 1000 bytes, equivalent to 200-300 Chinese characters. -
Upon registering a new account, a ¥50 trial fee is provided, allowing for over 13,000 free calls to the EmotiVoice HTTP API. If you require additional calls, Zhiyun offers the EmotiVoice HTTP API at a highly competitive price , approximately one-third of its traditional TTS API cost, to cover server expenses.
-
If you are searching for more captivating voices, the following information may be of use to you:
voiceName Gender Supported languages characteristics shudingli Male Chinese An emotionally rich 20-year-old guy in an audiobook scene. shuyanshi Male Chinese An emotionally rich middle-aged man in an audiobook scene. shuwutian Male Chinese An emotionally rich 20-year-old guy in an audiobook scene with a magnetic voice. shuwudi Female Chinese An emotionally rich teenage girl in an audiobook scene. shuhali Female Chinese An emotionally rich elderly woman in an audiobook scene. youxiaofu Female Chinese Warm and sweet voice, natural expression, customer service telephone sales scenario. yixingchen Male Chinese A sunny, handsome and warm healing anime guy in the second dimension. youxiaohao Male Chinese Warm and sweet voice, natural expression, customer service telephone sales scenario. Further information can be obtained at https://ai.youdao.com/DOCSIRMA/html/tts/api/yyhc/index.html.
We are planning to provide EmotiVoice desktop applications for MacOS, enabling you to utilize EmotiVoice's 2000+ voices for text-to-speech. This application will be free to use and won't require an internet connection.