Hi Robert,
It looks like you are using the speech SDK for java. As an alternative to the Speech SDK, Speech Services allow you to convert speech-to-text using a REST API. Each accessible endpoint is associated with a region. Your application requires a subscription
key for the endpoint you plan to use.
Before using the speech-to-text REST API, please note the following:
- Requests that use the REST API can only contain 10 seconds of recorded audio.
- The speech-to-text REST API only returns final results. Partial results are not provided.
- If sending longer audio is a requirement for your application, consider using the Speech SDK or batch transcription.
You can build a API request similar to the SDK using REST API by using some of the samples mentioned
here.
-----------------------------------------------------------------------------------------------------------
If you found this post helpful, please give it a "Helpful" vote.
Please remember to mark the replies as answers if they help.