Text-to-Speech
Note
“Text-to-Speech” is jointly developed by RTKSG SD3 and ChungYi Fu (Kaohsiung, Taiwan)
Special thanks and credits to the efforts and contributions for all developers.
Materials
AMB82-mini x 1
Example
In this example, we will be using Ameba Pro2 development board to demonstrate text-to-speech application via Google Translate API.
Open Text-to-Speech example in “File” -> “Examples” -> “AmebaNN” -> “MultimediaAI” -> “Text-to-Speech”.
In the highlighted code snippet, fill in the “ssid” with your WiFi network SSID and “pass” with the network password.
Please replace message
with your speech text. You may also change the audio language accordingly. Please refer to the table below for language codes.
Language Codes
Language |
Code |
---|---|
English (US) |
en |
English (UK) |
en-GB |
Chinese (Taiwan) |
zh-TW |
Chinese (PRC) |
zh-CN |
Japanese |
ja |
Korean |
ko |
French |
fr |
German |
de |
Italian |
it |
Russian |
ru |
Spanish |
es |