Thanks to everyone who helped get this working – especially Rusty and DonManfred.
I've uploaded an example B4A app along with its source code and Eclipse source code for the CRBingVR B4A library I developed.
https://www.dropbox.com/s/s9zuhayjhhgdw67/CRBingVR 3.zip?dl=0
I've also included the CRBingVR library .jar and .xml library files.
I placed everything in a zip archive uploaded to Dropbox - the zip file is likely too large to upload directly to the forum.
in order compile and run the included B4A example, you must obtain a free (or paid if you prefer) Bing Speech key from Microsoft Cognitive Services (MCS). The instructions for doing this are in the B4A file comments.
To build the CRBingVR B4A library I used the Simple Library Compiler (SLC) available elsewhere on these forums.
I used Eclipse mainly to take advantage of the IDE and Project structure, 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 structure for CRBingVR 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 link above to download the zip file and extract the B4A code into a B4A project directory.
- Sign up for a Bing Speech Key on the MCS website. Instructions are in the B4A file comments.
- Copy the CRBingVR .jar and .xml files to your B4A additional libraries folder.
- Insert your Bing Speech key into the code as described. Compile the B4A app.
I'm still using version 4.30 of B4A so you might see a warning if you open the B4A example with a later version. Everything should work, however.
Here's a screenshot of the executing demo B4A app.
- Click on the start button and wait for the green "recording" status message. The microphone will capture audio, send it to Bing Speech, and the text VR will display.
- Both interim partial results (pre-pended with PR: ) and the final result (pre-pended with FR: ) are displayed. The microphone will stop recording approximately 2 seconds after it recognizes silence.
- Click on the From File button to VR speech contained in an embedded wav file.
Barry.