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

Optimize "Threading" to play WAV without stuttering #14

Open
SciLor opened this issue Dec 26, 2020 · 2 comments
Open

Optimize "Threading" to play WAV without stuttering #14

SciLor opened this issue Dec 26, 2020 · 2 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@SciLor
Copy link
Contributor

SciLor commented Dec 26, 2020

Depending on the used WAV samplerate the current code is either to slow or it wastes to much time somewhere.

@SciLor SciLor added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Dec 26, 2020
@SciLor
Copy link
Contributor Author

SciLor commented Apr 18, 2022

A workaround is to convert the files into a single channel (mono) audio file with a sample rate of 16k.

ffmpeg -i source.mp3 -ac 1 -ar 16000 target.wav

@SciLor
Copy link
Contributor Author

SciLor commented Apr 19, 2022

A samplerate of 32k may also work
ffmpeg -i source.mp3 -ac 1 -ar 32000 target.wav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant