mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 04:35:23 +08:00
stop streaming play after get input audio.
This commit is contained in:
@@ -202,7 +202,6 @@ export function RealtimeChat({
|
||||
};
|
||||
|
||||
const handleInputAudio = async (item: RTInputAudioItem) => {
|
||||
audioHandlerRef.current?.stopStreamingPlayback();
|
||||
await item.waitForCompletion();
|
||||
if (item.transcription) {
|
||||
const userMessage = createMessage({
|
||||
@@ -226,6 +225,8 @@ export function RealtimeChat({
|
||||
});
|
||||
});
|
||||
}
|
||||
// stop streaming play after get input audio.
|
||||
audioHandlerRef.current?.stopStreamingPlayback();
|
||||
};
|
||||
|
||||
const toggleRecording = async () => {
|
||||
|
Reference in New Issue
Block a user