namespace wakeup
{
+/* Need to check whether this value needs to be configurable */
+static int g_speech_pcm_wait_count = 800;
+
static long get_current_milliseconds_after_epoch()
{
auto now = chrono::system_clock::now();
MWR_LOGI("[INFO] Resume thread");
break;
}
- if (200 < cnt) {
+ if (g_speech_pcm_wait_count < cnt) {
MWR_LOGE("[ERROR] Wrong request, there's no pcm data");
for (const auto& observer : mObservers) {
if (observer) {
namespace wakeup
{
+/* Need to check whether this value needs to be configurable */
+static int g_speech_pcm_wait_count = 400;
+
/* Utility function for checking if an element exists in a container */
template<class C, class T>
static auto contains(const C& v, const T& x) -> decltype(end(v), true)
MWR_LOGI("[INFO] Resume thread");
break;
}
- if (200 < cnt) {
+ if (g_speech_pcm_wait_count < cnt) {
MWR_LOGE("[ERROR] Wrong request, there's no pcm data");
for (const auto& observer : mObservers) {
if (observer) {