-1

I have heard of AVFoundation framework (doesn't work), but is there a way to convert a textfield to an audio file.

I would love to know if there is an API for it.

Your help would you be really appreciated, thank you.

1 Answers1

0

Use AVSpeechSynthesizer

AVSpeechUtterance *utterance = [AVSpeechUtterance 
                                    speechUtteranceWithString:@"Hello world"];
    AVSpeechSynthesizer *synth = [[AVSpeechSynthesizer alloc] init];
    [synth speakUtterance:utterance];

instead of @"Hello World" use TextField.text

  • Yes, true, but I want an audio file because I want a notification to be spoken, so for a notification soundName – user3238496 Jul 12 '14 at 11:44