Text to speech on iPhone [closed]
Asked Answered
B

9

55

Is there any way we can convert text to speech in an iPhone app? Is it possible using the SDK?

Bravissimo answered 6/1, 2009 at 10:42 Comment(4)
check my answer #12840171Weightlessness
Although still in beta iOS 7 is public now and includes the class AVSpeechSynthesizer that can be used for text-to-speech. Reference.Beni
voted for reopen, ios7 now is public. use the built in AVSpeechSynthesizerBlumenthal
Now possible. Look at my answer here: https://mcmap.net/q/339273/-voice-output-in-iosGaiser
G
18

I don't think iPhone SDK provides any TTS facility internally. You should use a third party TTS engine or write one yourself.

Gabriel answered 6/1, 2009 at 10:54 Comment(3)
Not true anymore. iOS 7 introduced AVSpeechSynthesizer.Gaiser
@Gaiser Thanks for the comment! Seems like you're on top of the latest SDK. It'd be great if you could edit the old post with appropriate details (or post a new, updated, answer).Gabriel
see my previous comment to the question. I cannot post a new answer to this question, because it is closed. I posted a code example in this answer to a different question: https://mcmap.net/q/339273/-voice-output-in-iosGaiser
M
30

The Flite speech synthesis engine can be run on an iPhone, ref http://artofsystems.blogspot.com/2009/02/speech-synthesis-on-iphone-with-flite.html

Microtome answered 23/2, 2009 at 18:27 Comment(1)
The github repository for the Flite speech engine can be found here: github.com/jeska/eyesfree_dev/tree/…Jacobine
G
18

I don't think iPhone SDK provides any TTS facility internally. You should use a third party TTS engine or write one yourself.

Gabriel answered 6/1, 2009 at 10:54 Comment(3)
Not true anymore. iOS 7 introduced AVSpeechSynthesizer.Gaiser
@Gaiser Thanks for the comment! Seems like you're on top of the latest SDK. It'd be great if you could edit the old post with appropriate details (or post a new, updated, answer).Gabriel
see my previous comment to the question. I cannot post a new answer to this question, because it is closed. I posted a code example in this answer to a different question: https://mcmap.net/q/339273/-voice-output-in-iosGaiser
B
17

OpenEars also does text-to-speech on the iPhone (note: I'm the developer).

Belsky answered 23/6, 2011 at 7:5 Comment(1)
I've found this to have a very nice documentation, specially for first adopters of Xcode, where they need to know how to link it as a library. Many thanks and kudos.Charmian
S
12

I'm probably bumping a dead thread but the Flite text-to-speech engine worked wonders for me!

Hope it helps!

Sall answered 21/6, 2010 at 9:48 Comment(1)
were you able to add new voices to the flite engine? how does the output sound compared to the built-in speech synthesizer API?Badalona
F
9

Here's another text to speech:

https://bitbucket.org/sfoster/iphone-tts/

You need to download it and install as an API then you can use it like that :

[fliteEngine speakText:@"Hi there"];                    // Make it talk
[fliteEngine setPitch:90.0 variance:50.0 speed:0.9];    // Change the voice properties
[fliteEngine setVoice:@"cmu_us_awb"];                   // Switch to a different voice
[fliteEngine stopTalking];                              // stop talking

Pretty easy to use once you installed it as an API correctly.

Fransis answered 23/11, 2011 at 19:11 Comment(3)
are you able to add custom voices to the engine? thanks for sharing!Badalona
good question. I don't think you can though. You'd have to dig deep into the engine I'm not even sure how one would approach this.Fransis
ok thanks anyway ... have you found any good open source code for voice conversion (as opposed to TTS)?Badalona
S
6

http://github.com/KingOfBrian/VocalKit

I wrote a wrapper around pocket sphinx and flite, you should be able to check it out pretty quickly.

Serpent answered 17/5, 2010 at 11:54 Comment(3)
Thanks. Am already using this for another project I have :)Bravissimo
Glad to hear it! I'd love any feedback you have.Serpent
hi brian are you able to add new voices using your wrapper?Badalona
D
3

The Tomsoft engine is only slow with the custom voices. I'm not sure why. But if you remove the other voices and just the integrated basic KAL voice it will speak almost instanteously. Please send me an email using the contact form on my website if you need any help with this.

Danziger answered 10/11, 2009 at 0:51 Comment(0)
C
2

for text to sound files I just found these will researching above files

http://www.ivona.com/online/editor.php

http://www.acapela-box.com/

IVONA also has IPhone SDK

http://www.ivona.com/developer.php

Caudad answered 4/4, 2011 at 23:23 Comment(1)
have you used ivona SDK? if yes, can you provide help?Clamshell
K
0

Hoya VoiceText is the original provider of the TTS engine. Most of the commercial companies in US create a wrapper around VocieText and resell it.

This was developed by Pentax (LG's spinoff - Korean) which got bought by Hoya (a huge Japanese firm).

Visit here to send a request for the TTS engine: http://voicetext.jp/blog/122.html

Use google translate for English website.

Hoya is based in Japan, but they own NeoSpeech, which is their US provider of the VoiceText Engine. Check out their website for demos.

Karinakarine answered 19/11, 2011 at 21:57 Comment(1)
thanks for the comment. do you know if it's possible to add new voices to the engine?Badalona

© 2022 - 2024 — McMap. All rights reserved.