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

Improve Recording Quality #29

Open
tedsecretsource opened this issue Nov 14, 2022 · 0 comments
Open

Improve Recording Quality #29

tedsecretsource opened this issue Nov 14, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@tedsecretsource
Copy link
Owner

tedsecretsource commented Nov 14, 2022

As of this writing, the bitrate is set to 1441Kbps, which is, apparently, uncompressed CD quality. For non-Safari browsers, we're using the Opus codec, which is the newer version of Vorbis, but I wonder if and how recording quality could be improved. Ideally we have some way to physically test this. When recording waves this week, the level was quite low so you could easily hear the compression. I'd like to have a sound source that I can quickly and easily test sitting at my desk and that causes the listener to hear the compression.

This task consists of:

  1. Research codecs and recording quality settings that may be available starting with the links below
  2. Write a plan to improve the quality of recordings starting with the most impactful changes
  3. Create separate tasks for each improvement based on the plan

Links for research

Particularly useful for working with Gain, echo cancellation and noise cancellation

Alternate packages

Findings

The MDN documentation is a bit misleading with regards to support for containers and codecs. Specifically, it suggests that webm is widely supported, as is mpeg. However, the audio types are not nearly as widely supported as the video types. Specifically, Safari only supports audio/mp4 while Chrome and Firefox only support audio/webm. Furthermore, I've been unable to find any information on specifying the codec for audio on Safari.

Neither browser natively supports lossless codecs of any kind with MediaRecorder.

Using the Web Audio API might be the solution. It's unclear when the compression is applied: before the Web Audio API stuff or after? If it is after, maybe we can reroute the destination to a file without compression.

@tedsecretsource tedsecretsource added the enhancement New feature or request label Nov 14, 2022
@tedsecretsource tedsecretsource added this to the v2.0 milestone Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant