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
|
# Step 1: STT -- convert audio to text
|
||||||
try:
|
try:
|
||||||
sttResult = voiceInterface.speechToText(
|
sttResult = await voiceInterface.speechToText(
|
||||||
audioContent=audioBytes,
|
audioContent=audioBytes,
|
||||||
language=self.config.language,
|
language=self.config.language,
|
||||||
sampleRate=16000,
|
sampleRate=16000,
|
||||||
|
|
@ -462,7 +462,7 @@ class TeamsbotService:
|
||||||
|
|
||||||
# 4a: TTS -> Audio to bridge
|
# 4a: TTS -> Audio to bridge
|
||||||
try:
|
try:
|
||||||
ttsResult = voiceInterface.textToSpeech(
|
ttsResult = await voiceInterface.textToSpeech(
|
||||||
text=speechResult.responseText,
|
text=speechResult.responseText,
|
||||||
languageCode=self.config.language,
|
languageCode=self.config.language,
|
||||||
voiceName=self.config.voiceId
|
voiceName=self.config.voiceId
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue