1.0.24 • Published 8 years ago

phonegap-cordova-openears v1.0.24

Weekly downloads
101
License
-
Repository
-
Last release
8 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

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago