打断词

This commit is contained in:
libingxiang 2026-06-24 09:26:56 +08:00
parent 7a47b4d7ab
commit 9360d598b0

View File

@ -14,8 +14,10 @@ const SILENCE_TIMEOUT_MS = 5000;
const MIN_VALID_DURATION_SEC = 0.5; const MIN_VALID_DURATION_SEC = 0.5;
// 播报超时保护毫秒如果FINISHED回调未触发自动恢复状态 // 播报超时保护毫秒如果FINISHED回调未触发自动恢复状态
const BROADCAST_TIMEOUT_MS = 60000; const BROADCAST_TIMEOUT_MS = 60000;
const APPID = "i-sfqpfp8qayj8e"; const APPID = "i-sfyrkdr0ubepa";
const APP_KEY = "rdjqhnp5q50e010wvw0z"; const APP_KEY = "72vpdansbpg8nxjbxzhp";
// 打断词列表:识别到这些词时自动打断播报
const INTERRUPT_KEYWORDS = ["稍等一下", "停一下", "抱歉打断一下", "不好意思", "对不起", "停", "闭嘴"];
/** /**
* *
@ -526,8 +528,8 @@ export function useDigitalHuman(options?: {
token: token.value, token: token.value,
wrapperId: "human-wrapper", wrapperId: "human-wrapper",
connectParams: { connectParams: {
ttsPer: "CAP_4189", ttsPer: "20007751",
figureId: "4000748", figureId: "4000821",
resolutionHeight: 1920, resolutionHeight: 1920,
resolutionWidth: 1080, resolutionWidth: 1080,
inactiveDisconnectSec: 300, inactiveDisconnectSec: 300,