I’m using ionic native plugin for text to speech…
I’ve done stop and play but Now I’m getting trouble with pause and play…!!
Can anyone help me please?
$rootScope.showDiv=1;
$scope.speakText= function(StoryContent){
$rootScope.showDiv=0;
var content = document.getElementById('mydiv').textContent;
TTS.speak({
text: content,
locale: 'en-IN',
rate: 0.8
}, function(){
}, function(reason){
});
}
$scope.stopText= function(){
$rootScope.showDiv=1;
TTS.speak({
text: "Stop",
locale: 'en-IN',
rate: 0.8
},
function(){
}, function(reason){
});
}