How to hide subscriptionKey and speechRegion for JavaScript integration with Microsoft Azure Speech services

Shahrukh Mateen 31 Reputation points
2020-07-30T08:12:59.43+00:00

Is there an efficient way to hide the the subscriptionKey and speechRegion attributes for a JavaScript based integration with Azure Speech to Text services.

I am using Java/Spring based framework for my web application at server end, and AngularJS for the client-side.

I would also like to know what is the industry standard for such an integration. I am looking for a JavaScript based integration as it would speed up the asynchronous speech recognition in place of an additional REST API call to the server if I go for a Java-based integration. Also, Java-based integration requires Java 8 and up and I need to stick with Java 7 for my application.

Azure documentation: JavaScript Quickstart

P.S: By hiding the attributes, I mean the key values are not visible if someone tries to inspect the JS file in the browser.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,392 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,375 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Destin Joy 1,866 Reputation points
    2020-07-31T13:22:10.45+00:00
    2 people found this answer helpful.