Commit Graph
7 Commits
Author SHA1 Message Date
imonlinux 14779b4439 Refactored file with support for PW, PA, ALSA 2025-09-27 22:05:47 -07:00
imonlinux 74032adb9b Update mpv_player.py to support PipeWire
Updated the mpv_player.py to support PipeWire native devices (pipewire/default) instead of using the pipewire-pulse compatibility.
2025-09-27 21:19:06 -07:00
imonlinux b982f9f990 Disabled watchdog for pulseaudio.
Will reintroduce this function at a later date if needed.
2025-09-14 18:37:58 -07:00
imonlinux 7654d43e09 Introduced a bug that fires during HA registration 2025-09-14 18:02:19 -07:00
imonlinux 38fc8227f3 Fix watchdog misfire in mpv_player.py
The current watchdog is a simple “N-seconds since play()” timer, so it can fire during legit playback (longer TTS, slower network). Convert it to a no-progress watchdog that only trips if mpv makes no progress for N seconds.
2025-09-14 11:54:54 -07:00
imonlinux a0c5af9d4c Modifed mpv_player.py to support PA and ALSA
1. **`linux_voice_assistant/mpv_player.py`**
   - Supports both **PulseAudio** and **ALSA** backends.
   - Device strings now accept:
     - Pulse: `pulse/<PA SINK NAME>` (e.g. `pulse/alsa_output.platform-soc_sound.stereo-fallback`)
     - ALSA: `alsa/plughw:CARD=seeed2micvoicec,DEV=0`
     - `default`: tries Pulse first, then ALSA.
   - Added **fast end-of-playback detection** using **either** `eof-reached` **or** `idle-active` (fixes the “hang until watchdog” after short clips).
   - Added a **watchdog** (default **8s**) to fail fast if playback never starts/finishes.
   - Pulse-friendly defaults: `audio-samplerate=44100`, `audio-channels=stereo`, `keep-open=no`, `network-timeout=7`.
   - mpv logging bridged to Python logging; level set by env **`LVA_MPV_MSG_LEVEL`** (default `all=warn`).
2025-09-13 19:58:15 -07:00
Michael Hansen 4356633ed6 Rename to Linux Voice Assistant 2025-08-26 09:30:58 -05:00