File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ - (void)speechSynthesizer:(AVSpeechSynthesizer*)synthesizer didFinishSpeechUtter
3535}
3636
3737- (void )speak : (CDVInvokedUrlCommand*)command {
38- [self .commandDelegate runInBackground: ^{
3938 [[AVAudioSession sharedInstance ] setActive: NO withOptions: 0 error: nil ];
4039 [[AVAudioSession sharedInstance ] setCategory: AVAudioSessionCategoryPlayback
4140 withOptions: AVAudioSessionCategoryOptionDuckOthers error: nil ];
@@ -68,8 +67,6 @@ - (void)speak:(CDVInvokedUrlCommand*)command {
6867 utterance.rate = (AVSpeechUtteranceMinimumSpeechRate * 1.5 + AVSpeechUtteranceDefaultSpeechRate) / 2.5 * rate * rate;
6968 utterance.pitchMultiplier = 1.2 ;
7069 [synthesizer speakUtterance: utterance];
71- }];
72-
7370}
7471
7572@end
You can’t perform that action at this time.
0 commit comments