Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 35 times | Joined on Dec 2012
#1
I am playing with eSpeak (from RzR's repo) and I can't see any reason why there is no eSpeakCaller like application for N9. It should be very easy. I have mixed some sources and finish with this python script:

Code:
#!/usr/bin/env python

import gobject
import subprocess
import re
import dbus
import dbus.mainloop.glib

def handle_call(x, y):
    # remove non alphanum chars
    n = re.sub('[^\w ]', '', x[0]['displayName'])
    print n
    # check if we have a number or alphanum string
    if re.match('[+0-9]+', n) == None:
        # say it
        eSpeakProc = subprocess.Popen(["espeak", "-vpl", '"' + n + '"'], shell=False)

if __name__ == '__main__':
    dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

    bus = dbus.SessionBus()

    bus.add_signal_receiver(handle_call, path='/com/nokia/CallUi/ActiveCall', dbus_interface='org.maemo.contextkit.Property', signal_name='ValueChanged')    

    loop = gobject.MainLoop()
    loop.run()
when I ran it, it reads caller name but was interrupted by ringtone, so after some reading I created a file
Code:
/usr/share/policy/etc/pulse/xpolicy.conf.d/espeak.conf
with
Code:
[stream]
exe = espeak
group = ringtone
and restarted pulseaudio.

Now it works. If there are no unexpected traps I will try to modify espeakcaller (it's GPL) for N9 and package it to deb file as soon as I get some free time.

PS. Is there any event when user mutes ring (by clicking or turning over the phone) which I can listen to to mute espeak also?

Last edited by krzyc; 2012-12-27 at 03:22.
 

The Following 31 Users Say Thank You to krzyc For This Useful Post:
lorenzo's Avatar
Posts: 491 | Thanked: 299 times | Joined on Jul 2012 @ Pordenone IT
#2
any news? =D
 

The Following 2 Users Say Thank You to lorenzo For This Useful Post:
Posts: 28 | Thanked: 14 times | Joined on Jul 2012 @ India
#3
Any update?
 

The Following User Says Thank You to kesava For This Useful Post:
Posts: 29 | Thanked: 77 times | Joined on Mar 2013 @ Australia Maaaaaaaaate
#4
I`ve been quietly keeping an eye on this and have been hopeing the developer would continue this little project on as having this installed on my phone would be soooooooo good when on the road but,alas,I am disappointed that development has`nt continued..So what is happening.....
 

The Following 2 Users Say Thank You to ghost_who_walks For This Useful Post:
Posts: 28 | Thanked: 14 times | Joined on Jul 2012 @ India
#5
Hello,
Please complete this project...
 

The Following User Says Thank You to kesava For This Useful Post:
knobtviker's Avatar
Posts: 665 | Thanked: 2,388 times | Joined on Feb 2012 @ Zagreb, Croatia
#6
 

The Following 4 Users Say Thank You to knobtviker For This Useful Post:
Posts: 142 | Thanked: 72 times | Joined on Jan 2013
#7
I like this and waiting
 

The Following 3 Users Say Thank You to tonyhuynh For This Useful Post:
Posts: 28 | Thanked: 14 times | Joined on Jul 2012 @ India
#8
this script is working for incoming calls also how to avoid?
for out going call it is saying caller name for only one time..
 

The Following User Says Thank You to kesava For This Useful Post:
Posts: 29 | Thanked: 77 times | Joined on Mar 2013 @ Australia Maaaaaaaaate
#9
As today was a quiet day at work,I convinced our software engineer to have a play with apps codeing.After a few hours and a few minor tweaks we still couldnt really get it to perform to a suitable standard.Yes,it spoke the names assigned to the number in the contacts list and we tweaked it to speak `private number` when a telco blocked call was received and at one stage,had it reading out the number when it was displayed but not assigned to a contact stored on the phone but what we couldnt understand is why the speech sounded slurred or drunk,for a better discription,and why it only read it once when it should repeat it with maybe a 2 second break inbetween each repeat,if that makes sense.Any ideas .I was also thing if it would be a worthwhile contacting Taixzo,the developer of Saera,to ask if this codeing could be blended in his ? Just an idea All I am is a dumb corrosion engineer........
 

The Following 5 Users Say Thank You to ghost_who_walks For This Useful Post:
Posts: 28 | Thanked: 14 times | Joined on Jul 2012 @ India
#10
Thank you very much, still some guys are working on this..
Really I want this app to work on my N9, can any one please complete this project
 

The Following 2 Users Say Thank You to kesava For This Useful Post:
Reply

Tags
espeakcaller, nokia n9


 
Forum Jump


All times are GMT. The time now is 16:33.