PDA

View Full Version : Type and Talk




star-Magic
Jul 23, 2010, 04:17 PM
Hello,

As a group project we are trying to redevelop the clock app. It's a school project. But we are trying to add stuff to it and we would like to shake the iPhone to read out the time. So we know we can use the accelerometer for shake detection. but how do we make the phone read the time out load?

any help that would get us started would be greatly appreciated.


Thanks.



HarryWorksInc
Jul 23, 2010, 06:35 PM
You mean you want the iphone to speak the time?

If so your out of luck unless you record somebody saying every single possible minute and hour.

star-Magic
Jul 23, 2010, 08:22 PM
We thought there is a thing called "read out load". You know, how you can have the PDF stuff on your computer be read to you, in a robot like voice.

robbieduncan
Jul 24, 2010, 02:49 AM
We thought there is a thing called "read out load". You know, how you can have the PDF stuff on your computer be read to you, in a robot like voice.

On a Mac yes, on an iPhone no (at least at a level you can use in your own code).

dejo
Jul 24, 2010, 05:31 AM
We thought there is a thing called "read out load". You know, how you can have the PDF stuff on your computer be read to you, in a robot like voice.
3.x did add an accessibility feature called VoiceOver but that's not something you can control from your code. The best you could hope to achieve with it is to hope the user has it turned on and you've setup your UI to allow them to use it.

star-Magic
Jul 25, 2010, 01:09 AM
So there is nothing that can announce the time for me? All i need at this point is to shake the iPhone and it say the time to me.

robbieduncan
Jul 25, 2010, 04:26 AM
So there is nothing that can announce the time for me? All i need at this point is to shake the iPhone and it say the time to me.

This has been answered above: there is no speech synthesiser you can use on the iPhone. You can choose to record voice samples for all the words/phrases you need and play them yourself as required.

Nsutton
Jul 25, 2010, 07:44 AM
I know on a mac you could use the terminal command. But for iPhone you might have to record it on a computer and play it back on an iPhone.

firewood
Jul 25, 2010, 02:27 PM
This has been answered above: there is no speech synthesiser you can use on the iPhone.

There currently is no public speech synthesizer API in the iPhone OS. Whether or not you can use the existing private speech synthesizer API built into the iPhone depends on whether you want an app to be approved for App store distribution or not. (e.g. is your app for personal use?)

There are also at least a couple 3rd party speech synthesizer libraries that you could include with your app. These may or may not be expensive to license.

DennisVar
Jul 27, 2010, 03:10 AM
Hello,

As a group project we are trying to redevelop the clock app. It's a school project. But we are trying to add stuff to it and we would like to shake the iPhone to read out the time. So we know we can use the accelerometer for shake detection. but how do we make the phone read the time out load?

any help that would get us started would be greatly appreciated.


Thanks.

You might have luck with this open source library (released under the MIT license) that I found after scouring the web.

http://bitbucket.org/sfoster/iphone-tts/src

star-Magic
Jul 27, 2010, 04:11 PM
You might have luck with this open source library (released under the MIT license) that I found after scouring the web.

http://bitbucket.org/sfoster/iphone-tts/src


Thanks a lot. that sounds like what we need.

In my research, I came accross UIAccessibility class that has the voiceOver:

http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/iPhoneAccessibility/Accessibility_on_iPhone/Accessibility_on_iPhone.html

dejo
Jul 27, 2010, 04:31 PM
In my research, I came accross UIAccessibility class that has the voiceOver:

http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/iPhoneAccessibility/Accessibility_on_iPhone/Accessibility_on_iPhone.html
Please read Post #5 (http://forums.macrumors.com/showpost.php?p=10635819&postcount=5)

star-Magic
Jul 27, 2010, 04:39 PM
Please read Post #5 (http://forums.macrumors.com/showpost.php?p=10635819&postcount=5)


Yes that is what i meant. that it exits but no controllable through code.

Thanks a lot.