pocketsphinx.js icon indicating copy to clipboard operation
pocketsphinx.js copied to clipboard

pocketsphinx + cordova app. Is it possible?

Open Danyzzz opened this issue 8 years ago • 2 comments

is it possible use pocketsphinx.js in cordova/phonegap application? I have tried to integrate the code to my blank application with "record_audio" permission. But no positive result... There is a demo app for understand the functionality? Or a pocketsphinx plugin for cordova?

Thanks in advance!

Danyzzz avatar May 31 '16 10:05 Danyzzz

This is not relevant to pocketsphinx.js. To use pocketsphinx in phonegap you have to create a pocketsphinx plugin for phonegap. It is pretty straightforward task, you just wrap the API based on documentation.

nshmyrev avatar May 31 '16 16:05 nshmyrev

@Danyzzz we actually already briefly discussed that. In brief, as JavaScript, pocketsphinx.js can run inside Cordova, but I do not think the audio recording part would work, at least not on all platforms. So you should probably use an audio recording plugin and pass the audio samples to the recognizer.

syl22-00 avatar Jun 01 '16 15:06 syl22-00