cordova-plugin-tts icon indicating copy to clipboard operation
cordova-plugin-tts copied to clipboard

Read character by character

Open merbin2012 opened this issue 6 years ago • 1 comments

How to read character by character. As per my requirement, read the verification code. I tried like below code, but it is also read like a word and very speed.

var text="ABCEF34DFG";    
text=text.split('').join(' ');
	TTS.speak({
            text: text,
            locale: 'en-GB',
            rate: 0.1
        }).then(function () {
            //alert('success');

			
        }, function (reason) {
            //alert(reason);
        });

merbin2012 avatar Dec 07 '18 07:12 merbin2012

@merbin2012 You can try to join by '\r\n'.repeat(5) for example

PanBachynskyi avatar Feb 28 '19 12:02 PanBachynskyi