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

Ways to reduce latency #70

Open
ca5ua1 opened this issue Feb 3, 2020 · 3 comments
Open

Ways to reduce latency #70

ca5ua1 opened this issue Feb 3, 2020 · 3 comments

Comments

@ca5ua1
Copy link

ca5ua1 commented Feb 3, 2020

I have 1 sec latency, I know it isn't much but I want to use it for calls.
Any ways to reduce latency? I want to reduce it to 0.5sec. Any Ideas?

@ca5ua1
Copy link
Author

ca5ua1 commented Feb 9, 2020

Hey
There is another way to do it (it worked better for me less latency and no 0x0 after reboot proble)

apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-pulseaudio python3.5-dev python3.5-dbus

install bluez

git clone https://github.com/gmsoft-tuxicoman/bt-audio
cd bt-audio
sudo python3 bt-audio.py

@AmkSk
Copy link

AmkSk commented Feb 13, 2021

I've tried this approach, but the sound quality seems a bit worse with bt-audio. Anyone else knows how to lower the latency?

@nomiddlename
Copy link

I managed to reduce the latency on my RPi4 to an acceptable level for watching videos (the mouth movements sync with the audio) by tweaking the aplay parameters in config.ini:

play_command = aplay --period-time=80000 --buffer-time=160000 -f cd -

The downside is that I now see a few 'underrun' messages in the logs, but it doesn't seem to affect the sound quality.

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

3 participants