Skip to content

Commit 86451ac

Browse files
author
vilicvane
authored
Merge pull request vilicvane#30 from vilic/revert-20-master
Revert "Run plugin in background"
2 parents b761978 + e9ea9d7 commit 86451ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ios/CDVTTS.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)