views:

3822

answers:

8

Hi all,

I was wondering if iPhone has any API that supports Text to Speech feature? I looked around but couldn't find any, so just want to confirm.

Thanking in anticipation.

+2  A: 

The API docs would suggest that the API is not available.

teabot
Thanks for the confirmation.
Mustafa
A: 

This is possible, but you will have to roll your own. I have seen an app do this.

John Ballinger
+6  A: 

The iPhone 3G S has the private VoiceServices framework which can do this. Steve Troughton-Smith describes how to use the private class VSSpeechSynthesizer here, but you have little chance of getting something using this into the App Store.

Brad Larson
Ah... What i was looking for. But not very useful if its use is so limited, and doubtful (w.r.t. App Store acceptance) :(Thanks.
Mustafa
A: 

I did this before iPhone 2.0 came out by porting espeak to the platform. I used it as a command line utility but it should be possible to make it into a library.

Epsilon Prime
A: 

You might also want to have a look at this: http://artofsystems.blogspot.com/2009/02/speech-synthesis-on-iphone-with-flite.html

It uses Flite. It doesn't contain specific instructions but it can give you ideas.

Dimitris
I tried to test it out once, but there was a web of compiler errors, and after 2 hrs, i gave up :)
Mustafa
A: 

There's an Iphone app that does direct TTS, Search for "TTSMessenger" on Itunes

Jakes
+5  A: 

I ran into this problem at one point, and got Flite (festival lite) text to speech engine running on iPhone. I recently made an API class for it. I tried to make it easy (and free) to add to new and existing projects. It can be downloaded at http://bitbucket.org/sfoster/iphone-tts/

cmang
Thanks for sharing. Will check this out over the weekend.
Mustafa
It works like a charm.
Mustafa
+1  A: 

I believe cmang has done a great job. The class is helpful, thank you http://bitbucket.org/sfoster/iphone-tts/