I\'ve been trying to learn AVSpeechSynthesis. The code works fine in the iOS Simulator (both on iPad and iOS) but the text to speech feature doesn\'t work at all on my iPad.
Do you have the phone in silent mode? That silences the synthesizer as well.
It's not working because of the Mute
mode of your phone. To turn 'Mute On' in iOS 7, you have to follow the following steps:
Setting
optionAccessibility
AssistiveTouch
AssistiveTouch
option from the switch buttonDevice
and Touch Un mute
option.Now run the project and hope it will work.
P.S: (In iOS 8.0 this code wouldn't work, because for an unexpected bug, from iOS8.1 they remove it and it is now working perfectly) Hope it works. :)