const int32_t CHANNEL_COUNT = 2;
const int32_t SAMPLERATE_16000 = 16000;
const uint32_t AI_VOICE_BUFFER_SIZE = 0x800; // 2KB buffer for AI voice
-const uint32_t AI_VOICE_QUEUE_SIZE = 64; // 队列大小
+const uint32_t AI_VOICE_QUEUE_SIZE = 32; // 队列大小
// OGG封装相关常量
const uint32_t MILLSECOND_TO_SECOND = 1000;
context->dataCallback(context->dataBuffer, readSize, context->callbackUserData);
}
}
-
- // Write audio data to output stream (echo back)
- // int32_t writeRet = AudioStreamOutStreamWrite(context->dataBuffer, readSize);
- // if (readSize != 0) {
- // MEDIA_ERR_LOG("Failed to write audio data to output stream, ret=%d", readSize);
- // }
-
}
LOS_Msleep(10);