I'm trying to build a POC Voice recognition app on the Tizen TV platform, but using Web application API I've failed at getting the permission for voice control.
Debug console prints: Cannot read property 'requestPermission' of undefined (in my case the global tizen object has no ppm property which in all examples on the Web should hold the requestPermission method).
function requestPermit(uri) {
return new Promise(function(resolve, reject) {
tizen.ppm.requestPermission(uri,
function(success) { resolve(success); },
function(error) { reject(error); });
});
}
var start = function() {
return requestPermit('http://tizen.org/privilege/voicecontrol.tts')
.then(function() { return init(); })
.catch(function(err) { return console.log(err); });
}
$(document).bind( 'pageinit', start );