Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i change the type to "audio/wav" ? #37

Closed
ELI7VH opened this issue Apr 22, 2018 · 5 comments
Closed

how can i change the type to "audio/wav" ? #37

ELI7VH opened this issue Apr 22, 2018 · 5 comments

Comments

@ELI7VH
Copy link

ELI7VH commented Apr 22, 2018

I looked in the source and it said something about options but I can't really figure out what to put.

would also be nice to be able to assign a bitrate, as the quality is a bit low for my needs.

@alexWang007
Copy link

I have also encountered this problem

@JonMorales22
Copy link

I also ran into this issue, but I'm not sure if react-mic can record audio in another format besides the default .webm format.

So right now I'm just using react-mic to record the audio and then using another program called ffmpeg to convert the audio into the format I need.

@hackingbeauty
Copy link
Owner

hackingbeauty commented May 21, 2018

Hi everyone, React-Mic can't save files as audio/wav. Right now, React-Mic uses the MediaRecorder API which saves audio as audio/webm. You can't use the MediaRecorder API to save audio as audio/wav.

We would need to add much more logic to this very light-weight component to be able to save audio files as audio/wav.

@ELI7VH
Copy link
Author

ELI7VH commented May 22, 2018

@hackingbeauty how about increasing the bitrate?

@zxzl
Copy link

zxzl commented Jul 28, 2018

https://github.com/streamproc/MediaStreamRecorder If you don't need oscillators provided by this library you can use this library to record streams in wav, ogg, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants