ResponsiveVoice.js does not work with Phonegap compiler

Why doesn't TTS work when the webapp is compiled into a telephony Android application?

I am trying to get TTS to work in my Android application using RespiveVoice.js and compile it through the phone book ( https://build.phonegap.com/apps/2204237/builds )

In the browser, it works fine on trusted phones and desktop computers, but as soon as it is compiled and turned into apk, it stops working.

I use basic jQuery calls to call RespiveVoice.js when I click the answer button.

Button

<section>
    <a rel="external" href="#" id="zero" type="button" value="Play">&#xF011</a>
        <span>0</span>
</section>

JQuery

zero.onclick = function() {
    responsiveVoice.speak('Zero' + ' ' + $('#dropdown').val()  + ' ' + $('#name').val());
};

Full code: https://github.com/hakarune/reading-pounds

Testing page: https://rawgit.com/hakarune/reading-pounds/master/index.html

? ResponsiveVoice.js, ...

+4
1

, :

RV:

RespiveVoice, Android

Chrome Android, Android-, .

http://caniuse.com/#feat=speech-synthesis

+2

Source: https://habr.com/ru/post/1667221/


All Articles