feat: add local random timeout prompts
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
#include "sockets.h"
|
||||
#include "layer3.h"
|
||||
#include "ql_uart.h"
|
||||
const char *mp3_file[] ={
|
||||
#include "audio_prompt.h"
|
||||
|
||||
const char *mp3_file[AUDIO_PROMPT_FILE_COUNT] ={
|
||||
"test.mp3",// 0
|
||||
"network_connect_zh.mp3",//1 系统启动中,正在等待网络连接
|
||||
"network_check.mp3",//2 网络不好 请检查网络
|
||||
@@ -31,9 +33,16 @@ const char *mp3_file[] ={
|
||||
"device_wake_up_zh.mp3",//13 设备已唤醒
|
||||
"low_power_zh.mp3",//14 电量低
|
||||
"low_power_off_zh.mp3",//15 电量严重不足,马上关机
|
||||
"volume_up_zh.mp3",//16
|
||||
"volume_down_zh.mp3",//17
|
||||
"volume_up_zh.mp3",//16
|
||||
"volume_down_zh.mp3",//17
|
||||
"ai_active_zh.mp3",//18
|
||||
/* 19~24:对话响应超时随机提示音,文件名与资源服务器保持一致 */
|
||||
"tts_error01.mp3",//19
|
||||
"tts_error02.mp3",//20
|
||||
"tts_error03.mp3",//21
|
||||
"tts_error04.mp3",//22
|
||||
"tts_error05.mp3",//23
|
||||
"tts_error06.mp3",//24
|
||||
};
|
||||
|
||||
//http://banban.api.talkingq.com:8080/assets/roles/banban/tts_error.mp3
|
||||
@@ -183,7 +192,8 @@ void app_file_check_download(void)
|
||||
char filename_buff[64]={0x00};
|
||||
int ret = 0, cnt = 0;
|
||||
|
||||
for(index=1;index<19;index++){
|
||||
/* 遍历完整资源表,新增提示音不存在时会在联网后自动补下载 */
|
||||
for(index=1;index<AUDIO_PROMPT_FILE_COUNT;index++){
|
||||
|
||||
if(index==4||index==5||index==6||index==7||index==8){
|
||||
continue;
|
||||
@@ -208,7 +218,7 @@ void app_file_check_del(void)
|
||||
int index = 1;
|
||||
char filename_buff[64]={0x00};
|
||||
|
||||
for(index=1;index<19;index++){
|
||||
for(index=1;index<AUDIO_PROMPT_FILE_COUNT;index++){
|
||||
|
||||
if(index==4||index==5||index==6||index==7||index==8){
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user