chore: 播放状态检测间隔上调到 500ms

This commit is contained in:
WJG 2024-05-26 19:14:47 +08:00
parent 359a61edcb
commit 1ad10a95d2
No known key found for this signature in database
GPG Key ID: 258474EF8590014A

View File

@ -43,7 +43,7 @@ export type BaseSpeakerConfig = MiServiceConfig & {
*/ */
wakeUpCommand?: ActionCommand; wakeUpCommand?: ActionCommand;
/** /**
* 100 * 500
*/ */
interval?: number; interval?: number;
/** /**
@ -65,7 +65,7 @@ export class BaseSpeaker {
constructor(config: BaseSpeakerConfig) { constructor(config: BaseSpeakerConfig) {
this.config = config; this.config = config;
const { const {
interval = 100, interval = 500,
tts = "xiaoai", tts = "xiaoai",
ttsCommand = [5, 1], ttsCommand = [5, 1],
wakeUpCommand = [5, 3], wakeUpCommand = [5, 3],