fix: add missing await on speechToText and textToSpeech async calls
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
65128db713
commit
367edd83e2
1 changed files with 2 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ class TeamsbotService:
|
|||
|
||||
# Step 1: STT -- convert audio to text
|
||||
try:
|
||||
sttResult = voiceInterface.speechToText(
|
||||
sttResult = await voiceInterface.speechToText(
|
||||
audioContent=audioBytes,
|
||||
language=self.config.language,
|
||||
sampleRate=16000,
|
||||
|
|
@ -462,7 +462,7 @@ class TeamsbotService:
|
|||
|
||||
# 4a: TTS -> Audio to bridge
|
||||
try:
|
||||
ttsResult = voiceInterface.textToSpeech(
|
||||
ttsResult = await voiceInterface.textToSpeech(
|
||||
text=speechResult.responseText,
|
||||
languageCode=self.config.language,
|
||||
voiceName=self.config.voiceId
|
||||
|
|
|
|||
Loading…
Reference in a new issue