Merge pull request #3236 from pipecat-ai/mb/websocket-stt-services

Update websocket STT services to use the WebsocketSTTService base class
This commit is contained in:
Mark Backman
2025-12-16 13:59:52 -05:00
committed by GitHub
7 changed files with 469 additions and 436 deletions

1
changelog/3236.added.md Normal file
View File

@@ -0,0 +1 @@
- Add Gladia session id to logs for `GladiaSTTService`.

View File

@@ -0,0 +1,6 @@
- Updated websocket STT services to use the `WebsocketSTTService` base class. This base class manages the websocket connection and handles reconnects. Updated services:
- `AssemblyAISTTService`
- `AWSTranscribeSTTService`
- `GladiaSTTService`
- `SonioxSTTService`

1
changelog/3236.fixed.md Normal file
View File

@@ -0,0 +1 @@
- In `GladiaSTTService`, reset the `_bytes_sent` counter on connecting the websocket. This avoids unnecessary audio buffer trimming.