From 367edd83e28ab4f90f8a955f102685928e93505a Mon Sep 17 00:00:00 2001
From: patrick-motsch
Date: Fri, 13 Feb 2026 17:46:02 +0100
Subject: [PATCH] fix: add missing await on speechToText and textToSpeech async
calls
Co-authored-by: Cursor
---
modules/features/teamsbot/service.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/features/teamsbot/service.py b/modules/features/teamsbot/service.py
index 813edf44..a7a266ec 100644
--- a/modules/features/teamsbot/service.py
+++ b/modules/features/teamsbot/service.py
@@ -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