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.