fix: support uint8 websocket audio format

This commit is contained in:
nightcityblade
2026-06-02 11:13:24 +08:00
committed by Aaron Boxer
parent 582d5426d6
commit 32c1b18c9f
3 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ Accept raw PCM int16 audio from clients (useful for embedded devices):
```bash
python3 run_server.py --port 9090 --backend faster_whisper --raw_pcm_input
```
Audio is automatically normalized to float32 range [-1.0, 1.0].
Audio is automatically normalized to float32 range [-1.0, 1.0]. Clients can also set `audio_format` in the initial websocket options to `float32` (default), `int16`, or `uint8`.
## Browser Extensions
- Run the server with your desired backend as shown [here](https://github.com/collabora/WhisperLive?tab=readme-ov-file#running-the-server).