mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +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