docs(ai-chat-composer): document ASR integration and compatibility

This commit is contained in:
Timi
2026-11-26 00:58:12 +08:00
parent b7a4de49c4
commit 68e44caaa4
2 changed files with 49 additions and 1 deletions
+5
View File
@@ -30,6 +30,11 @@
import { computed, onBeforeUnmount, onMounted, ref } from "vue";
import { AiChatComposer } from "timi-tdesign-mobile";
/**
* 注意:下面的 Web Speech API 只是文档演示用的适配器,不属于 AiChatComposer。
* 组件本身不包含 ASR;换成服务端流式识别或原生桥接时,只需回写 voiceState / voiceText。
*/
type VoiceState = "idle" | "listening" | "processing";
/** Web Speech API 的主入口不在 lib.dom 里,这里只声明演示用到的部分。 */