Using Google TTS to developed in iPhone application, i have send a request in some words, then i get the audio data to play using AVAudioPlayer.
I have send a request as more words, then data comes as null. Google TTS supports only small kind of words to convert audio data or more, I want to know that so, please help me.
Thanks in Advance
I tried this:
NSString *linkTTS = [NSString stringWithFormat:@"http://translate.google.com/translate_tts?tl=en&q=I+am+new+to+IPhone+development+I+am+working+on+Audio+player+i+have+to+show+the+current+time+and+estimated+time"];
NSData *dataTTS = [NSData dataWithContentsOfURL:[NSURL URLWithString:linkTTS]];
NSLog(@"dataTTS:%@",dataTTS);
_googlePlayer = [[AVAudioPlayer alloc] initWithData:dataTTS error:nil];
[_googlePlayer play];