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

Reformat audio in the browser #18

Open
smlum opened this issue Mar 2, 2021 · 0 comments
Open

Reformat audio in the browser #18

smlum opened this issue Mar 2, 2021 · 0 comments
Labels
long term long term milestone

Comments

@smlum
Copy link
Owner

smlum commented Mar 2, 2021

HTML5 audio player has problems with large audio files. This causes delayed playback and syncing problems with the text.

The following was found to help with playback without compromising quality:

  • Use a lossy file format (like mp3)
  • Reduce bitrate and sample rates to 16k
  • Reformat to a constant bitrate
  • Convert to mono

It would be better to do all of this in the browser once a user uploads audio, e.g., using https://github.com/Kagami/ffmpeg.js

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

No branches or pull requests

1 participant