|
stop_text_To_spaek_ali();
function stop_text_To_spaek_ali(){
aliYunVoice.addEventListener({
name: 'readStart'
},function(){
aliYunVoice.clearCache();
aliYunVoice.readPause();
aliYunVoice.readStop();
aliYunVoice.removeEventListener({
name: 'readStart'
});
});
aliYunVoice.addEventListener({
name: 'readTransferring'
},function(){
aliYunVoice.clearCache();
aliYunVoice.readPause();
aliYunVoice.readStop();
aliYunVoice.removeEventListener({
name: 'readTransferring'
});
});
aliYunVoice.removeEventListener({
name: 'readOver'
});
aliYunVoice.removeEventListener({
name: 'onError'
});
aliYunVoice.clearCache();
}
|
|