How to set the recording to audio/wav? #84
-
Is it possible to set the recording to wav using hooks?
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Turning this issue into a discussion |
Beta Was this translation helpful? Give feedback.
-
@tmgrcia - You can pass const {
startRecording,
stopRecording,
togglePauseResume,
recordingBlob,
isRecording,
isPaused,
recordingTime,
mediaRecorder,
} = useAudioRecorder(
{ noiseSuppression: true, echoCancellation: true },
null, //onNotAllowedOrFound
{ mimeType: "audio/webm" } //mediaRecorderOptions
); But that said, the |
Beta Was this translation helpful? Give feedback.
-
I'd like to have the recording be an mp3 but best I can tell it has to be a 'webm' when using this hook. Is there any way to change the downloadFileExtension so that the finished file will be an mp3? |
Beta Was this translation helpful? Give feedback.
@tmgrcia - You can pass
mimeType
touseAudioRecorder
like soBut that said, the
audio/wav
mimeType is not necessarily supported by the browsers'MediaRecorder
implementations.This is a screenshot from chrome