Speech Synthesis app


#1

Guys

As you see on screenshots, my mobile is Oneplus 5t, the samples app works perfect on browser but it does not load voice when it is apk.

Any clue?


#2

You probably need to use this plugin when running under PhoneGap:

https://www.npmjs.com/package/cordova-plugin-texttospeech


#3

I need a bit of explanation on how to use it

document.addEventListener(‘deviceready’, function () {
// basic usage
TTS.speak(‘hello, world!’, function () {
alert(‘success’);
}, function (reason) {
alert(reason);
});

// or with more options
TTS.speak({
        text: 'hello, world!',
        locale: 'en-GB',
        rate: 0.75
    }, function () {
        alert('success');
    }, function (reason) {
        alert(reason);
    });

}, false);


#4

How to do PhoneGap isn’t included in our free support. It’s not our product:
https://www.nsbasic.com/app/support.php/

Start by looking at this Tech Note and the samples:
https://wiki.nsbasic.com/Using_the_PhoneGap_API


#5

I tried speak function sample with 3 types of mobiles and it gives me undefined.

What am I missing?


#6

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.