botwave
botwave copied to clipboard
BUG -> live broadcast stops after 5 seconds
📝 Description
well ,the title says it all
💻 Environment
Component
- [X] Client
Hardware
- [X] Raspberry Pi Zero W
Operating System
- [X] Debian-based
Python Version
- [ ] >= 3.13
- [ ] 3.12
- [X] 3.11
- [ ] <= 3.10
🐞 Steps to Reproduce
- connect client to server
- get a stream token
- 5 secs after, get a log saying that the broadcast ended
📄 Logs / Screenshots
BotWave - Client
[OK] Found bw_custom at: /opt/BotWave/backends/bw_custom/src/bw_custom
[INFO] Checking for protocol updates...
[OK] You are using the latest protocol version
[CLIENT] Connecting to wss://192.168.1.185:9938...
[OK] WebSocket connected, registering...
[OK] Registered as: raspberrypi_192.168.1.202
[BCAST] Received stream token (rate=48000, channels=2)
[DEBUG] Validating environment...
[DEBUG] Discovering backends...
[DEBUG] Selected backend: bw_custom
[INFO] Using bw_custom backend (76.0-108.0MHz, with RDS)
[INFO] PiWave initialized - Frequency: 90.0MHz, PS: BotWave, Loop: False
[DEBUG] Checking cache at /opt/BotWave/venv/lib/python3.13/site-packages/piwave/bw_custom_path
[DEBUG] Cache hit: /opt/BotWave/backends/bw_custom/src/bw_custom
[BCAST] Live streaming at 90.0MHz (48000Hz, 2ch)
[BCAST] Broadcasting stream on 90.0 MHz (rate=48000, channels=2)
[OK] Connected to PCM stream (rate=48000, channels=2)
[ERR] Producer error: cannot access local variable 'chunk' where it is not associated with a value
[INFO] Stream finished, stopping broadcast...
📍 Additional Context
it seems to be a douxxtech/piwave error. im working on it.
for reference, only a part of the error was on piwave. the real problem was the audio generator in client.py