fix(audio): preserve barge-in prompt across OTA

This commit is contained in:
chenjintao
2026-09-23 10:57:12 +08:00
parent cfdb193e75
commit d07b3f6771
2 changed files with 35 additions and 22 deletions
@@ -185,10 +185,12 @@ void app_file_check_download(void)
int ret = 0, cnt = 0;
for(index=1;index<20;index++){
if(index==4||index==5||index==6||index==7||index==8){
continue;
}
/* barge_in_cute.mp3 is shipped in customer_fs and is not hosted by the
* legacy prompt download service. */
if(index==4||index==5||index==6||index==7||index==8||index==19){
continue;
}
if(strlen(mp3_file[index])>0){
sprintf(filename_buff, "U:/%s", mp3_file[index]);
@@ -204,14 +206,16 @@ down_loop:
}
}
void app_file_check_del(void)
void app_file_check_del(void)
{
int index = 1;
char filename_buff[64]={0x00};
for(index=1;index<20;index++){
if(index==4||index==5||index==6||index==7||index==8){
/* Keep the bundled barge-in prompt across app-only FOTA. Unlike the
* server-managed prompts, it cannot be restored by the downloader. */
if(index==4||index==5||index==6||index==7||index==8||index==19){
continue;
}