in function_app/src/components/speech.py [0:0]
def _validate_whisper_client_initialized(self) -> None:
"""Validates that the Azure OpenAI client is initialized."""
if self._aoai_whisper_async_client is None:
raise ValueError(
"Azure OpenAI client is not initialized. Please provide 'aoai_whisper_async_client' when initializing the transcriber."
)