Skip to content

fix(stt): add batch language routing fallback#5293

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/char-pro-batch-language-routing
May 21, 2026
Merged

fix(stt): add batch language routing fallback#5293
ComputelessComputer merged 1 commit into
mainfrom
fix/char-pro-batch-language-routing

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented May 21, 2026

Route Char Pro multi-language batch requests through Deepgram language detection fallback when Soniox is unavailable, and allow longer Soniox async polling.


Note

Medium Risk
Changes batch STT routing behavior by conditionally appending Deepgram as a fallback provider and alters Deepgram query generation for multi-language batches; misclassification could route traffic differently or affect transcription accuracy. Soniox polling timeout increase is low risk but may extend request lifetimes.

Overview
Improves multi-language batch transcription resiliency by appending Deepgram as a last-resort fallback in the batch provider chain when the request has multiple languages, Deepgram isn’t already selected, and the language set supports Deepgram’s language-detection mode.

Updates Deepgram batch URL generation to prefer constrained language detection (multiple detect_language=<code> params) when the requested languages are all supported for detection, instead of always using detect_language=true, with new unit/integration tests covering the en+pl case.

Extends Soniox async batch polling to up to 1 hour via configurable constants and improves the timeout error message, with a small test asserting the new limit.

Reviewed by Cursor Bugbot for commit 9a083ae. Bugbot is set up for automated code reviews on this repo. Configure here.

Route Char Pro multi-language batch requests through Deepgram language detection fallback when Soniox is unavailable, and allow longer Soniox async polling.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit 9a083ae
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a0ebc0640bbb40008fa74cc

@ComputelessComputer ComputelessComputer merged commit 37461b4 into main May 21, 2026
17 of 19 checks passed
@ComputelessComputer ComputelessComputer deleted the fix/char-pro-batch-language-routing branch May 21, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant