hundreds-rainbow-68836
11/17/2025, 10:38 AMelif self.provider == "azure":
azure_config = {
"language": self.language
}
speech_endpoint=os.getenv("AZURE_SPEECH_ENDPOINT")
if speech_endpoint:
azure_config["speech_endpoint"] = speech_endpoint
azure_config["speech_key"] = os.getenv("AZURE_SPEECH_API_KEY")
else:
azure_config["speech_key"] = os.getenv("AZURE_SPEECH_API_KEY")
azure_config["speech_region"] = os.getenv("AZURE_SPEECH_REGION")
self.stt_service = azure.STT(
**azure_config
)
now i set the endpoint and key in the env but i get this error
However the stt seems to be working with same config but getting issues with tts
{
"message": "failed to synthesize speech, retrying in 0.1s\nTraceback (most recent call last):\n File \"/app/.venv/lib/python3.12/site-packages/livekit/agents/tts/tts.py\", line 267, in _main_task\n raise APIError(f\"no audio frames were pushed for text: {self._input_text}\")\nlivekit.agents._exceptions.APIError: no audio frames were pushed for text: Hi, I am your frindly assistant. (body=None, retryable=True)",
"level": "WARNING",
"name": "livekit.agents",
"tts": "livekit.plugins.azure.tts.TTS",
"attempt": 1,
"streamed": false,
"pid": 28,
"job_id": "AJ_rJx8eDoYVaAi",
"timestamp": "2025-11-17T10:34:32.689836+00:00"
}lively-winter-88668
11/17/2025, 11:26 AMhundreds-rainbow-68836
11/17/2025, 11:28 AMlively-winter-88668
11/17/2025, 11:31 AMhundreds-rainbow-68836
11/17/2025, 11:36 AMclass TTS(tts.TTS):
def __init__(
self,
*,
voice: str = "en-US-JennyNeural",
language: str | None = None,
sample_rate: int = 24000,
prosody: NotGivenOr[ProsodyConfig] = NOT_GIVEN,
style: NotGivenOr[StyleConfig] = NOT_GIVEN,
speech_key: str | None = None,
speech_region: str | None = None,
speech_endpoint: str | None = None,
deployment_id: str | None = None,
speech_auth_token: str | None = None,
http_session: aiohttp.ClientSession | None = None,
)
there is no speech_host as the input parameterhundreds-rainbow-68836
11/17/2025, 11:39 AMself.tts_service = azure.TTS(
speech_endpoint = os.getenv("AZURE_SPEECH_ENDPOINT")
speech_key = os.getenv("AZURE_SPEECH_API_KEY")
voice=self.voice_id,
)hundreds-rainbow-68836
11/17/2025, 11:40 AMlively-winter-88668
11/17/2025, 12:01 PMlively-winter-88668
11/17/2025, 3:28 PM