Skip to content
Discussion options

You must be logged in to vote

@tmgrcia - You can pass mimeType to useAudioRecorder like so

const {
    startRecording,
    stopRecording,
    togglePauseResume,
    recordingBlob,
    isRecording,
    isPaused,
    recordingTime,
    mediaRecorder,
  } = useAudioRecorder(
          { noiseSuppression: true, echoCancellation: true },
          null, //onNotAllowedOrFound
          { mimeType: "audio/webm" } //mediaRecorderOptions
     );

But that said, the audio/wav mimeType is not necessarily supported by the browsers' MediaRecorder implementations.



This is a screenshot from chrome

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tmgrcia
Comment options

Answer selected by tmgrcia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #83 on August 29, 2023 12:23.