I've uploaded an example B4A app for Google Voice Recognition along with its source code and Eclipse Java source code for the CRGoogVR library I developed.
https://www.dropbox.com/s/ax0nzxf7v1rzsy1/CRGoogVR.zip?dl=0
I've also included my compiled APK so you can just quickly install and try out the example app, if you want.
I placed everything in a zip archive and uploaded to Dropbox - the zip file is likely too large to upload directly to the forum.
To build the CRGoogVR library I used the Simple Library Compiler (SLC) available elsewhere on these forums.
I use Eclipse mainly to take advantage of the IDE editor, Project structure, syntax checking, and tips, but it was not used to build the library. The library was actually built using the SLC.
When I run the SLC, a window similar to the above opens. The string in A points to the Eclipse Project workspace directory for the CRGoogVR library on my computer. The text field B points to where the compiled .jar and .xml files will be placed. I don't know what C does or where the string in this field came from .
Unless you want to make changes and compile the library, you can just:
Here's a screenshot of the executing demo B4A app.
I think the Microsoft API recognizes speech a little better, but the Google API does not require an account or "Key" (or charge a fee) to use their API.
Barry.
https://www.dropbox.com/s/ax0nzxf7v1rzsy1/CRGoogVR.zip?dl=0
I've also included my compiled APK so you can just quickly install and try out the example app, if you want.
I placed everything in a zip archive and uploaded to Dropbox - the zip file is likely too large to upload directly to the forum.
To build the CRGoogVR library I used the Simple Library Compiler (SLC) available elsewhere on these forums.
I use Eclipse mainly to take advantage of the IDE editor, Project structure, syntax checking, and tips, but it was not used to build the library. The library was actually built using the SLC.
When I run the SLC, a window similar to the above opens. The string in A points to the Eclipse Project workspace directory for the CRGoogVR library on my computer. The text field B points to where the compiled .jar and .xml files will be placed. I don't know what C does or where the string in this field came from .
Unless you want to make changes and compile the library, you can just:
- Use the Dropbox link above to download the zip file and extract the B4A code into a B4A project directory.
- Copy the CRGoogVR .jar and .xml files to your B4A additional libraries folder.
- Compile the B4A app.
- (or just install the included APK to your phone).
Here's a screenshot of the executing demo B4A app.
- Click on the Start button and wait for the green "recording" status message. The default Google Speech Input dialog is not displayed.
- The microphone will capture audio, send it to the Google Speech Recognition API, and the text VR is shown.
- End of speech will be automatically detected, but you can use the Stop button to end things early.
- Both interim partial results (pre-pended with PR: ) and the final result (pre-pended with FR: ) are displayed.
- The Rectangular field toward the upper right will show the microphone RMS value.
I think the Microsoft API recognizes speech a little better, but the Google API does not require an account or "Key" (or charge a fee) to use their API.
Barry.
Attachments
Last edited: