RuntimeError: Exception with an error code: 0xa (SPXERR_INVALID_HEADER)
该文件只有3个输入:
Azure订阅密钥
Azure服务区域
文档名称
我正在使用以下测试MP3文件:
这是完整的输出:
Traceback (most recent call last):
File "main.py", line 16, in
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config, audio_config=audio_input)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/azure/cognitiveservices/speech/speech.py", line 761, in __init__
self._impl = self._get_impl(impl.SpeechRecognizer, speech_config, audio_config)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/azure/cognitiveservices/speech/speech.py", line 547, in _get_impl
_impl = reco_type._from_config(speech_config._impl, audio_config._impl)
RuntimeError: Exception