The error message "The input was not valid" suggests that there may be an issue with the parameters being sent in your request to start the transcription. Here are a few things you can check:
- Language Parameter: Ensure that the language code you are using (
"en-us") is supported by the transcription service. You may want to verify if there are any specific requirements for the language parameter in the API documentation. - Call State: Make sure that the call you are trying to transcribe is in an established state. If the call is not active or has not been properly set up, the transcription request may fail.
- Cognitive Services Configuration: Check if the Cognitive Services configuration is correctly set up during the call setup. If the transcription URL or configuration is missing, it could lead to a bad request.
- Request Format: Ensure that your HTTP request is correctly formatted according to the API specifications. This includes the headers and the body of the request.
If you have verified all of the above and are still encountering issues, consider logging the request ID and date from the HTTP response headers, as these can be useful when reporting the issue to Microsoft Support.
References: