Playing audio with ffmpeg - MiguelRipoll23/homebridge-securitysystem GitHub Wiki

Requirements:

  • ffmpeg installed.
  • Wired/wireless speaker connected.

Installation:

  1. Execute: sudo apt update
  2. Execute: sudo apt install ffmpeg
  3. Enable the Play audio option using the Homebridge UI.

Sound not playing?

  1. Edit your ~/.bashsrc

  2. Add the following lines at the end of the file:

    export AUDIODEV=hw:1,0

    export SDL_AUDIODRIVER=alsa

Note: try hw:2,0, hw:3,0... if still not working.