Skip to content
syq163 edited this page Dec 6, 2023 · 4 revisions

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:

EmotiVoice HTTP API

We would like to express our gratitude to Zhiyun for their assistance in providing the EmotiVoice HTTP API. Below are step-by-step instructions:

  1. Register and log in at Zhiyun APP Overview, click 创建应用 button to create an application. Select 智能语音服务 and especially 语音合成.
  2. After creating the application, obtain the 应用ID and 应用密钥 by clicking 查看. These are necessary when calling the EmotiVoice HTTP API.
  3. Update APP_KEY and APP_SECRET in TtsDemo.py with the obtained 应用ID and 应用密钥. Customize PATH, q, and voiceName in the createRequest function. Refer to EmotiVoice's List of Voices for details on voiceName.
  4. Running python HTTP_API_TtsDemo/apidemo/TtsDemo.py will generate the TTS result, an audio file saved as PATH 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.

Notes

  1. The input text q is limited to 1000 bytes, equivalent to 200-300 Chinese characters.

  2. 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.

  3. 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.

Standalone desktop applications on MacOS (and possibily Windows)

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.