feat: 支持音色切换
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { useWebSocketStore } from "@/services";
|
||||
import { convertToPCM16 } from "@/utils";
|
||||
import { useChatStore } from "./chat_store";
|
||||
|
||||
export const useAsrStore = defineStore("asr", () => {
|
||||
// 是否正在录音
|
||||
@@ -125,6 +126,7 @@ export const useAsrStore = defineStore("asr", () => {
|
||||
if (router.currentRoute.value.path === "/voice") {
|
||||
msg.messageId = messageId;
|
||||
msg.voiceConversation = true;
|
||||
msg.speaker = useChatStore().speakerInfo?.speaker_id;
|
||||
}
|
||||
sendMessage(JSON.stringify(msg));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user