Sunday, 15 April 2012

Text-to-speech on iOS (robovm) with libgdx -



Text-to-speech on iOS (robovm) with libgdx -

i'm trying develop app on ios libgdx. want utilize text-to-speech can't find that.

how can ?

thanks

edit: sorry, didn't realise wasn't developing using native sdk. wouldn't work that.

if able include native code:

starting ios 7 utilize avspeechutterance , avspeechsynthesizer accomplish this.

see here more info.

simple illustration (via nshipster):

nsstring *string = @"hello, world!"; avspeechutterance *utterance = [[avspeechutterance alloc] initwithstring:string]; utterance.voice = [avspeechsynthesisvoice voicewithlanguage:@"en-us"]; avspeechsynthesizer *speechsynthesizer = [[avspeechsynthesizer alloc] init]; [speechsynthesizer speakutterance:utterance];

ios libgdx text-to-speech robovm

No comments:

Post a Comment