Google Cloud Speech API Javascript - javascript

I'm working for a university stage and I have to integrate google cloud speech api in a my html5 page to perform speech recognition. I have two problems:
1) I'm searching around the web and I don't find a suitable library to generate an audio file (flac or wav) from microphone.
2) I don't understand if it is impossible using javascript to perform a Google Speech API recognition or not. If it is not: how can I do, considering I have to manage the event of pushing a button?
Thank you!

Related

how to integrate google cloud speech api to my webpage

I am new for google cloud platform. I need to integrate google speech API to my webpage using JavaScript, I searched for documentations but no luck. Can anyone knows please help me to resolve this.
Sample source code and pre-requisites are given for integrating google cloud speech into your Java project at:
Sample source code for integrating google cloud speech APIs

Enable recognition continuous speech

How to enable the recognition of continuous speech using the REST API (with javascript SDK) Bing Speech API?
Using the example do Javascript SDK: https://github.com/Microsoft/Cognitive-Speech-STT-JavaScript can only transcribe short sentences with the microphone
I reached out to Microsoft about this and was told that the code in Javascript for their SDK doesn't allow continuous speech yet.
The preview version of Microsoft.Cogntitive.Speech API supports recognizing continuous speech.
Check it out here:
https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-to-text-sample
Currently, it does not support Javascript. It supports C++/C#/Java.

CoffeeScript: Record Voice and output text

I am making a package for github's atom.
In that I need to record voice and output it on the window.
How do I record voice and output is as text in coffeeScript?
1. Record Voice
This has been asked a lot:
Can I use javascript to record voice on a web app?
Capture Audio Input with flash or html5
HTML5 record audio to file
2. Output as text
Now comes the tricky part (not that the previous step is easy): You need speech recognition. Here are some js libraries you could use:
Pocketsphinx.js
annyang!
Alternative: Web Speech API
If you're up to the task of building your own speech recognition and want to learn new stuff, go ahead. I've done it once with tcl/tk and there was a lot of learning but also fun involved. However, it takes some time to get it right, i.e. get usable results. If you don't want to reinvent the wheel, just use the Web Speech API:
Web Speech API Specification
Web Speech API Demo

In-app billing on google play store from javascript

how do I make in-app purchases from my javascript application which will be bundled into an apk? I discovered the google javascript api but it only allows you to verify whether purchases have been made, not to make actual transactions. I can't find any third party apps that bundle a hardware accelerated canvas with an HTML5 app, and provide plugins for android/iOS in-app purchases. Is there somewhere I can find the full REST api for the Google Play store?
There is no REST API for in-app billing from Android applications. Your best bet is to write the code in Java and use JavaScript hooks in your HTML app to call them as necessary. Using WebView.addJavascriptInterface, etc.

Setting up Android application for Analytics and tracking

Tracking events and setting up Analytics for Websites seems easy. You create an account with one of the Analytics service providers like Google. They give you javascript code that you embed in your pages (whichever event you wish to track) and voila..you're done.
I have written a native application for Android phones, which is actually an adaptation of the actual web site. Now, I am required to setup Analytics and tracking for this native application.
Question:
How to do setup a native application for Analytics?
We have Java Script code(not Google Analytics but for some other engine) that works for the original web site. Is there a way to incorporate that in the native application?
I know Android supports Java Script via WebViews(Webkit);my application does not have webviews, it is native!
I have not worked on JavaScript since school so excuse me if I sound naive.
Thanks.
Google Analytics provide a guide for implementation on a mobile device.
Refer to http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html
To get started have a look at this guide from google.

Categories

Resources