fix: teamsbot audio STT - pass channels and skipFallbacks for known PCM16 format
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5713b5be3a
commit
d020293f4b
1 changed files with 2 additions and 0 deletions
|
|
@ -417,6 +417,8 @@ class TeamsbotService:
|
||||||
audioContent=audioBytes,
|
audioContent=audioBytes,
|
||||||
language=self.config.language or "de-DE",
|
language=self.config.language or "de-DE",
|
||||||
sampleRate=effectiveSampleRate,
|
sampleRate=effectiveSampleRate,
|
||||||
|
channels=1,
|
||||||
|
skipFallbacks=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
if sttResult and sttResult.get("success") and sttResult.get("text"):
|
if sttResult and sttResult.get("success") and sttResult.get("text"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue