langchain/tools/azure_cognitive_services/speech2text.py/AzureCogsSpeech2TextTool/_run
class AzureCogsSpeech2TextTool:    def _run(
        self,
        query: str,
        run_manager: Optional[CallbackManagerForToolRun] = None,
    ) -> str:
        """Use the tool."""
        try:
            text = self._speech2text(query, self.speech_language)
            return text
        except Exception as e:
            raise RuntimeError(f"Error while running AzureCogsSpeech2TextTool: {e}")