Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 23, 2010, 05:17 PM   #1
star-Magic
macrumors newbie
 
Join Date: May 2010
Type and Talk

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.
star-Magic is offline   0 Reply With Quote
Old Jul 23, 2010, 07:35 PM   #2
HarryWorksInc
macrumors regular
 
Join Date: Feb 2010
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.
HarryWorksInc is offline   0 Reply With Quote
Old Jul 23, 2010, 09:22 PM   #3
star-Magic
Thread Starter
macrumors newbie
 
Join Date: May 2010
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.
star-Magic is offline   0 Reply With Quote
Old Jul 24, 2010, 03:49 AM   #4
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by star-Magic View Post
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).
robbieduncan is offline   0 Reply With Quote
Old Jul 24, 2010, 06:31 AM   #5
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by star-Magic View Post
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.
__________________
dejo is offline   0 Reply With Quote
Old Jul 25, 2010, 02:09 AM   #6
star-Magic
Thread Starter
macrumors newbie
 
Join Date: May 2010
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.
star-Magic is offline   0 Reply With Quote
Old Jul 25, 2010, 05:26 AM   #7
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by star-Magic View Post
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.
robbieduncan is offline   0 Reply With Quote
Old Jul 25, 2010, 08:44 AM   #8
Nsutton
macrumors member
 
Join Date: Dec 2009
Location: 6 Feet Under
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.
__________________
An Apple a day keeps viruses away!
Nsutton is offline   0 Reply With Quote
Old Jul 25, 2010, 03:27 PM   #9
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Quote:
Originally Posted by robbieduncan View Post
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.
firewood is offline   0 Reply With Quote
Old Jul 27, 2010, 04:10 AM   #10
DennisVar
macrumors newbie
 
Join Date: Jun 2010
Quote:
Originally Posted by star-Magic View Post
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
__________________
I make apps for iOS and Mac.
DennisVar is offline   0 Reply With Quote
Old Jul 27, 2010, 05:11 PM   #11
star-Magic
Thread Starter
macrumors newbie
 
Join Date: May 2010
Quote:
Originally Posted by dennisr View Post
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/li...on_iPhone.html
star-Magic is offline   0 Reply With Quote
Old Jul 27, 2010, 05:31 PM   #12
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by star-Magic View Post
In my research, I came accross UIAccessibility class that has the voiceOver:

http://developer.apple.com/iphone/li...on_iPhone.html
Please read Post #5
__________________
dejo is offline   0 Reply With Quote
Old Jul 27, 2010, 05:39 PM   #13
star-Magic
Thread Starter
macrumors newbie
 
Join Date: May 2010
Quote:
Originally Posted by dejo View Post
Please read Post #5

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

Thanks a lot.
star-Magic is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Straight Talk + unlocked iPhone vs. Official Straight Talk iPhone - not equal! 1080p iPhone 51 Apr 13, 2014 06:37 AM
Talk me out of the i7, please! karinatwork iMac 20 Dec 1, 2013 11:58 PM
What type of hardware do I need for editing specific type of video? (Details inside) Reminisce32 Buying Tips and Advice 4 Oct 23, 2012 03:13 AM
Why do women talk so much? Andeavor Community Discussion 26 Jul 28, 2012 01:25 AM
Who wants to just talk? Algirl Wasteland 0 Jul 25, 2012 04:47 PM

Forum Jump

All times are GMT -5. The time now is 10:00 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC