Hello Wojciech,
I am fortunate to answer this question for you.
Firstly, you need to configure and generate an SDK for serial port output on our official platform.
Secondly, set up the environment and download the SDK to ensure that it can be compiled and run.
Next, you need to write a serial callback function {int user_uart_send (const char * buf, int len)} and call it during serial initialization.
Finally, the content of the serial callback function can call the API for broadcasting voice, {int user_player_play (AUDIO-PLAY-TYPE type, const char * file).} This audio file can be generated on our platform, and the sequence name of the MP3 file can be seen in the path {/uni_hb_m_solution/unione_lite.app_hb_m/tools/scripts/tools}.
For detailed development materials, you can refer to our official docs page, Ai-Thinker_VC-01/02which includes development manuals and application documentation. However, there may be some materials available in English, and we hope it will be helpful to you.
Thank you for using Ai-Thinker's products.
Yours,
XiaoZe |