|
|
@@ -128,7 +128,6 @@ import VoiceInput from '@/components/ai/voice/VoiceInput_Api.vue'
|
|
|
import { marked } from 'marked'
|
|
|
import {CreateDialogue, sendChatMessageStream} from "@/api/questions.js";
|
|
|
import {useAudioPlayer} from "@/api/tts/useAudioPlayer.js";
|
|
|
-import {Message} from "@/utils/message/Message.js";
|
|
|
|
|
|
const { playAudioChunk , stopPlayback, setOnPlaybackComplete, getIsPlaying } = useAudioPlayer();
|
|
|
|
|
|
@@ -379,8 +378,8 @@ const togglePlay = () => {
|
|
|
if (isPlaying.value) {
|
|
|
// 播放背景音
|
|
|
playBackgroundAudio()
|
|
|
-
|
|
|
- if(!getIsPlaying() || !conversationInProgress.value){
|
|
|
+ console.log("----", getIsPlaying(), conversationInProgress.value)
|
|
|
+ if(!getIsPlaying() && !conversationInProgress.value){
|
|
|
// 开始播放序列
|
|
|
playSequence()
|
|
|
}
|