Thanks for reaching out to us, could you please share the document you are referring to for your code sample ? Did you leverage the whole code sample? If not could you please share the whole sample you are working on so that we can reproduce the error?
The error code SPXERR_FILE_OPEN_FAILED
typically indicates that the Azure Speech Service SDK was unable to open the file you specified in your translation_once_from_file
method. This could be due to several reasons:
- File does not exist: Check if the file path is correct and the file exists at the specified location.
- Incorrect file permissions: The application might not have the necessary permissions to access the file. Ensure that the file permissions allow your application to read the file.
- File is being used by another process: If the file is open or being used by another process, the SDK might not be able to access it. Make sure the file is not being used by another process when you run your code.
- Unsupported file format: The Azure Speech Service SDK supports certain audio file formats. Make sure your file is in a supported format.
If you've checked all of these potential issues and you're still encountering the error, it might be helpful to share more details about your code and the specific file you're trying to use.
Please let us know if you are still blocked by this issue, we can collaborate with support team to see what happened. , I hope this helps.
Regards,
Yutong