aispeech: add wait_device_mode_timeout_ms when vad resume
Change-Id: Id4f1e711541a49879347118bcc7852c071213656 Signed-off-by: Nyx Zheng <zyh@rock-chips.com>
This commit is contained in:
Binary file not shown.
@ -401,6 +401,7 @@ void *vad_detect_func(void* arg) {
|
|||||||
do_system_sleep();
|
do_system_sleep();
|
||||||
printf("resume >>>>\n");
|
printf("resume >>>>\n");
|
||||||
dds_client_publish(dc, DDS_CLIENT_USER_DEVICE_MODE, "{\"mode\":\"normal\"}");
|
dds_client_publish(dc, DDS_CLIENT_USER_DEVICE_MODE, "{\"mode\":\"normal\"}");
|
||||||
|
wait_device_mode_timeout_ms(30);
|
||||||
}
|
}
|
||||||
usleep(1000*1000);
|
usleep(1000*1000);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user