Skip to content

Commit

Permalink
Added Blob type to fetchAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Aug 30, 2024
1 parent cf25cf8 commit e90ec00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/TryOut/ASR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { useToast } from "@chakra-ui/react";
import { FaMicrophone } from "react-icons/fa";
import { AudioRecorder, useAudioRecorder } from "react-audio-voice-recorder";

const fetchAudio = ({ blob }) => {
const fetchAudio = ({ blob }: { blob: Blob }) => {
const reader = new FileReader();
let base64data: string | ArrayBuffer | null;
reader.readAsDataURL(blob);
Expand Down

0 comments on commit e90ec00

Please sign in to comment.