How to fix it on windows Exception with an error code: 0x8 (SPXERR_FILE_OPEN_FAILED)

longke liang 0 Reputation points
2024-12-19T07:44:37.99+00:00

An error occurred while uploading the audio file for translation.

RuntimeError: Exception with error code:

[CALL STACK BEGIN]

> pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- pal_string_to_wstring

- recognizer_create_speech_recognizer_from_config
```[CALL STACK END]

Exception with an error code: 0x8 (SPXERR_FILE_OPEN_FAILED)


```ruby
audio_config = speechsdk.audio.AudioConfig(filename="audio.wav")
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config, audio_config=audio_config)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,488 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.