forked from React-Group/interstellar_ai
		
	Removed unused constant
This commit is contained in:
		
							parent
							
								
									1ec120b933
								
							
						
					
					
						commit
						e769a85073
					
				
					 1 changed files with 0 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -198,20 +198,6 @@ const InputOutputBackend: React.FC = () => {
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
    
 | 
			
		||||
  const convertOggToWav = async (oggFile: File | Blob) => {
 | 
			
		||||
    await loadFFmpeg()
 | 
			
		||||
 | 
			
		||||
    const ffmpeg = ffmpegRef.current!
 | 
			
		||||
 | 
			
		||||
    await ffmpeg.writeFile("input.ogg", await fetchFile(oggFile))
 | 
			
		||||
    await ffmpeg.exec(["-i", "input.ogg", "output.wav"])
 | 
			
		||||
    const wavData = await ffmpeg.readFile("output.wav")
 | 
			
		||||
    console.log(wavData);
 | 
			
		||||
    const wavBlob = new Blob([wavData], { type: "audio/wav" })
 | 
			
		||||
    audioRef.current = URL.createObjectURL(wavBlob)
 | 
			
		||||
    return wavBlob
 | 
			
		||||
  }
 | 
			
		||||
    
 | 
			
		||||
  const stopRecording = () => {
 | 
			
		||||
    mediaRecorderRef.current?.stop()
 | 
			
		||||
    setIsRecording(false)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue