docs(ai-chat-composer): document ASR integration and compatibility
This commit is contained in:
@@ -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 里,这里只声明演示用到的部分。 */
|
||||
|
||||
Reference in New Issue
Block a user