Fix throwing error when calling stop and pause functions
Change onWordBoundary argument type from (BOOL ) to (BOOL) in stop and pause functions
Issue: Tts.stop() throwing an error. https://github.com/ak1394/react-native-tts/issues/273
yeah this method in TextToSpeech.mm has the same issue
RCT_EXPORT_METHOD(setDefaultRate:(float)rate
skipTransform:(BOOL *)skipTransform // not used, compatibility with Android native module signature
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject)
{
if(rate > AVSpeechUtteranceMinimumSpeechRate && rate < AVSpeechUtteranceMaximumSpeechRate) {
_defaultRate = rate;
resolve(@"success");
} else {
reject(@"bad_rate", @"Wrong rate value", nil);
}
}```
The changes of this PR worked on
"react-native": "0.78.2",
I can confirm the PR works fine, why it is in open?
I can confirm the PR works fine, why it is in open?
@HarshitMadhav This repo is dead... I switched to expo-audio, it doesn't have only switch tts engine feature, but rest works perfect and even web platform is supported.