{"record":{"id":"cba445270f135583","repo":"BerriAI/litellm","slug":"azure-ai-speech-transcription-failed-with-recognit","errorCode":null,"errorMessage":"Azure AI Speech transcription failed with RecognitionStatus={recognition_status}.","messagePattern":"Azure AI Speech transcription failed with RecognitionStatus=(.+?)\\.","errorType":"exception","errorClass":"AzureSpeechAudioTranscriptionException","httpStatus":null,"severity":"error","filePath":"litellm/llms/azure/audio_transcription/transformation.py","lineNumber":132,"sourceCode":"        audio_file: FileTypes,\n        optional_params: dict,\n        litellm_params: dict,\n    ) -> AudioTranscriptionRequestData:\n        processed_audio: Final = process_audio_file(audio_file)\n        return AudioTranscriptionRequestData(\n            data=processed_audio.file_content,\n            files=None,\n            content_type=processed_audio.content_type,\n        )\n\n    def transform_audio_transcription_response(\n        self,\n        raw_response: httpx.Response,\n    ) -> TranscriptionResponse:\n        response_json: Final = raw_response.json()\n        recognition_status: Final = response_json.get(\"RecognitionStatus\")\n        if recognition_status is not None and recognition_status != \"Success\":\n            raise AzureSpeechAudioTranscriptionException(\n                message=(f\"Azure AI Speech transcription failed with RecognitionStatus={recognition_status}.\"),\n                status_code=raw_response.status_code,\n                headers=raw_response.headers,\n            )\n\n        text: Final = self._extract_text(response_json)\n        response: Final = TranscriptionResponse(text=text)\n        response._hidden_params = response_json\n        return response\n\n    def get_error_class(self, error_message: str, status_code: int, headers: dict | httpx.Headers) -> BaseLLMException:\n        return AzureSpeechAudioTranscriptionException(\n            message=error_message,\n            status_code=status_code,\n            headers=headers,\n        )\n\n    def _resolve_stt_base_url(self, api_base: str) -> str:","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/azure/audio_transcription/transformation.py#L114-L150","documentation":"Error \"Azure AI Speech transcription failed with RecognitionStatus={recognition_status}.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure/audio_transcription/transformation.py:132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the RecognitionStatus in the error; verify the audio format and language are supported by the endpoint.","Confirm the speech resource region matches api_base."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}