I have a problem with react-native-voice and react-native-tts, after interaction with user interface sound output has changed to the internal speaker and sound is very quiet. Maybe someone has the same problem and knows how to control sound output in iOS.
Thank you.
async _startRecognition(e) {
if (Voice.isRecognizing()) return;
this.resetSpeechState();
try {
await Voice.start('en-GB');
} catch (e) {
console.error(e);
}
}
handleSpeak = (text) => {
if (this.state.speaking) return false;
Tts.getInitStatus().then(() => {
Tts.speak(text);
});
}