ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
603 stars 154 forks source link

Feature/iosParams #190

Open liviu-padurariu opened 2 years ago

liviu-padurariu commented 2 years ago

Hi, I think the iOS implementation is missing a the part where you can configure the audio output of the TextToSpeak.

I grouped all the iOS Tts option under iosOptions to be similiar with the android ones and added a the functionality to change the audio output on iOS.

Kind regards, Liviu

ak1394 commented 2 years ago

Hi! Thanks for the PR, I just got around to look at it, sorry for the delay. PR looks good, but I wonder why the change from setCategory:AVAudioSessionCategoryPlayback to setCategory:AVAudioSessionCategoryPlayAndRecord ?

liviu-padurariu commented 1 year ago

Hi, in order to change the audio output to earpiece you need to set the category to AVAudioSessionCategoryPlayAndRecord.

liviu-padurariu commented 9 months ago

Hey, I know this is pretty old. But is there anything stopping this to be merged?