Giter Site home page Giter Site logo

Ways to reduce latency about bt-speaker HOT 3 OPEN

ca5ua1 avatar ca5ua1 commented on August 16, 2024
Ways to reduce latency

from bt-speaker.

Comments (3)

ca5ua1 avatar ca5ua1 commented on August 16, 2024 1

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

from bt-speaker.

AmkSk avatar AmkSk commented on August 16, 2024

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

from bt-speaker.

nomiddlename avatar nomiddlename commented on August 16, 2024

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.

from bt-speaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.