Buffer WAV segments in RAM and raise default segment size to 20MB
Some checks failed
Build and Push EVS Bridge Image / docker (push) Has been cancelled
Some checks failed
Build and Push EVS Bridge Image / docker (push) Has been cancelled
This commit is contained in:
@@ -80,8 +80,10 @@ You can build automations on these events (for STT/TTS pipelines or Node-RED han
|
||||
|
||||
- Audio format: PCM16LE, mono, 16 kHz
|
||||
- `SAVE_SESSIONS=true` stores `.wav` files in `bridge/data/sessions`
|
||||
- Recording is written during `start`..`stop` and rotated automatically:
|
||||
- `WAV_SEGMENT_MAX_BYTES` max size per `.wav` file (default: `2097152` = 2 MB)
|
||||
- Recording is buffered in RAM during `start`..`stop` and rotated automatically:
|
||||
- PCM data is collected in memory and written as one WAV file when the segment limit is reached
|
||||
- this reduces write frequency on disk
|
||||
- `WAV_SEGMENT_MAX_BYTES` max size per `.wav` file (default: `20971520` = 20 MB)
|
||||
- `WAV_KEEP_FILES` max number of `.wav` files to keep (default: `10`)
|
||||
- `MAX_SESSION_BYTES` is only used if session file saving is disabled
|
||||
- MQTT is recommended for control/events, WebSocket for streaming audio
|
||||
@@ -131,7 +133,7 @@ services:
|
||||
SAVE_SESSIONS: "true"
|
||||
SESSIONS_DIR: "/data/sessions"
|
||||
PCM_SAMPLE_RATE: "16000"
|
||||
WAV_SEGMENT_MAX_BYTES: "2097152"
|
||||
WAV_SEGMENT_MAX_BYTES: "20971520"
|
||||
WAV_KEEP_FILES: "10"
|
||||
volumes:
|
||||
- evs_bridge_data:/data
|
||||
|
||||
Reference in New Issue
Block a user