diff --git a/app/backend/InputOutputHandler.tsx b/app/backend/InputOutputHandler.tsx index 923d11c..7270ecb 100644 --- a/app/backend/InputOutputHandler.tsx +++ b/app/backend/InputOutputHandler.tsx @@ -196,21 +196,7 @@ const InputOutputBackend: React.FC = () => { ffmpegRef.current = new FFmpeg() await ffmpegRef.current.load() } - } - - 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()