1
votes

I am working on an angular project where Google cloud speech api has to be used for speech input . I went through the official docs : https://cloud.google.com/speech-to-text/docs/quickstart-client-libraries .

There are example codes available for Node.js, PHP and other server side languages. But, I couldn't find any examples using JavaScript.

Is there any way to use the cloud speech api using JavaScript or angular 5? If yes, could somebody provide pointers for the sample code

Thanks in advance

1

1 Answers

0
votes

You can you use the npm packages for your angular 5 project. https://angular.io/guide/npm-packages Therefore, you can just use the node.js code examples in the link that you put. So you need to install the package

npm install --save @google-cloud/speech

and use the example code as in node.js section.