Notify Pro: let your computer pronounce the name of a caller
#1
Lightbulb 
It would be great if your computer pronounce the name of the caller, so that you don't have to pick up your iphone everytime that someone calls.

I think every recognize the situation: your wachting your favorite movie or tv-show and someone is calling you on your iphone.

You've to pick up your iphone to have a look who's calling...

But wait!

What if your computer pronounces the name of the person who's calling you?

I know there is a way to let Phyton speak... and there is a good script of handeling an incoming phonecall on your iphone.

So lets put together does scripts and mission accomplished!

The "big" problem... I can't code in Phython Blush

Let my introduce the script, from johoja http://pastebin.com/s1Y4svzw for handeling phonecalls and the syntax to use the name of the person who's calling you:

HTTP.Michael::Ring::CallIncoming::John Smith::

Looking at the line of the script of johoja:

20. if parts[2] == "CallAccept":
21. baseUrl = "http://" + host + "/xbmcCmds/xbmcHttp?command="
22. cmd = "getcurrentlyplaying"

I think we've to change it to
20. if parts[2] == "CallIncoming":

parts[3] must be the name of the person who's calling you: John Smith

If we can use this with the following script:

import pyTTS
tts = pyTTS.Create()
tts.SetVoiceByName('MSSam')
tts.Speak(parts[3]'is calling you')

Does anyone thinks that this can be done?

[DONE]
I finally done it!

Install the speak plugin from Eventghost and use the following lines in a phytonscript:

if parts[2] == "CallIncoming":
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, u'Incoming call,' + parts[3] , 0, 100)
eg.plugins.EventGhost.Wait(4.0)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, u'Incoming call,' + parts[3] , 0, 100)
eg.plugins.EventGhost.Wait(4.0)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, u'Incoming call,' + parts[3] , 0, 100)


'Incoming call' is a text/speakline you can edit to your own needs and parts[3] is the name of the person who's calling you.
Reply
#2
michaeldecharon Wrote:It would be great if your computer pronounce the name of the caller, so that you don't have to pick up your iphone everytime that someone calls.

I think every recognize the situation: your wachting your favorite movie or tv-show and someone is calling you on your iphone.

You've to pick up your iphone to have a look who's calling...

But wait!

What if your computer pronounces the name of the person who's calling you?

I know there is a way to let Phyton speak... and there is a good script of handeling an incoming phonecall on your iphone.

So lets put together does scripts and mission accomplished!

The "big" problem... I can't code in Phython Blush

Let my introduce the script, from johoja http://pastebin.com/s1Y4svzw for handeling phonecalls and the syntax to use the name of the person who's calling you:

HTTP.Michael::Ring::CallIncoming::John Smith::

Looking at the line of the script of johoja:

20. if parts[2] == "CallAccept":
21. baseUrl = "http://" + host + "/xbmcCmds/xbmcHttp?command="
22. cmd = "getcurrentlyplaying"

I think we've to change it to
20. if parts[2] == "CallIncoming":

parts[3] must be the name of the person who's calling you: John Smith

If we can use this with the following script:

import pyTTS
tts = pyTTS.Create()
tts.SetVoiceByName('MSSam')
tts.Speak(parts[3]'is calling you')

Does anyone thinks that this can be done?
doable but IIRC, pyTTS is not cross platform, ie. ms windows only
Reply

Logout Mark Read Team Forum Stats Members Help
Notify Pro: let your computer pronounce the name of a caller0