Text-to-Speech NTP

Materials

Example

In this example, we will be using Ameba Pro2 development board to demonstrate audio time and date report using NTP Client and Google Translate API.

Open Text-to-Speech NTP example in “File” -> “Examples” -> “AmebaNN” -> “MultimediaAI” -> “Text-to-SpeechNTP”.

image01

In the highlighted code snippet, fill in the “ssid” with your WiFi network SSID and “pass” with the network password.

image02

The default message is set for date reporting. You may modify the message according to NTP Client API for time reporting.

image03

Compile and upload the code to AMB82-mini. 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

Resources