1.0.24 • Published 10 years ago

phonegap-cordova-openears v1.0.24

Weekly downloads
101
License
-
Repository
-
Last release
10 years ago

Cordova-OpenEars

A Cordova plugin for the OpenEars speech recognition and speech synthesis for the iPhone http://www.politepix.com/openears/

Getting Started

I assume you have some Cordova experience or have at least read up on the documentation. To add this plugin, run the following command:

cordova plugin add https://github.com/gtg489w/Cordova-OpenEars

To initialize the OpenEars plugin:

openEars = window.OpenEars;
openEars.initialize();

Update your dictionary:

openEars.changeLanguageModel('MyDictionary', 'HELLO,GOODBYE');

Start listening

openEars.startListening();

Subscribe to events (e.g., a hypothesis based on your dictionary)

document.addEventListener("pocketsphinxDidReceiveHypothesis", function(e) {
	log('Hypothesis: ' + e.detail.hypothesis + ' (' + e.detail.recognitionScore + ')');
}, false);

And say something back openEars.say('Hello my good friend');

For more examples, take a look at the sample project https://github.com/gtg489w/Cordova-OpenEarsSample

Issue with the installation

You may see an error message in the XCode console - a long paragraph about how the .bundle may not be installed properly. If that is the case then you'll have to manually add the Framework until I figure out why the plugin.xml isn't copying the framework into the project properly.

Thanks

Thank you to @karljacuncha for producing the OpenEars 1.0 Cordova plugin. His project can be found at: https://github.com/karljacuncha/OpenEarsPlugin

1.0.24

10 years ago

1.0.23

10 years ago

1.0.22

10 years ago

1.0.21

10 years ago

1.0.20

10 years ago

1.0.19

10 years ago

1.0.18

10 years ago

1.0.17

10 years ago

1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago