microsoft / cognitive-services-speech-sdk-js

Microsoft Azure Cognitive Services Speech SDK for JavaScript
Other
263 stars 98 forks source link

SpeechConfig.fromHost vs SpeechConfig.fromEndpoint the differences between them #609

Closed ninode97 closed 1 year ago

ninode97 commented 1 year ago

Hello everyone.

I am working on a project that requires an user to provide custom endpoint (on-premises) solution. It targets text-to-speech api.

When developing solution on my environment I could generate audio from SSML when creating SpeechConfig when using:

But I wasn't able to successfully use SpeechConfig.fromEndpoint, I would get not found error or, the request would time out.

When using azure cloud, how to use fromEndpoint ? Which endpoint would be correct for uksouth region?

brandom-msft commented 1 year ago

Hi @ninode97

Please have a look at this section of the docs on constructing the endpoint URL you'll need. (There you'll also see where you provide the uksouth region you mentioned)

Hope this helps and please do reach out with further questions!