maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   eSpeakCaller like app / voice caller id (https://talk.maemo.org/showthread.php?t=88402)

krzyc 2012-12-27 03:16

eSpeakCaller like app / voice caller id
 
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?

lorenzo 2013-01-06 18:14

Re: eSpeakCaller like app / voice caller id
 
any news? =D

kesava 2013-02-18 07:05

Re: eSpeakCaller like app / voice caller id
 
Any update?

ghost_who_walks 2013-04-10 14:17

Re: eSpeakCaller like app / voice caller id
 
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.....:confused:

kesava 2013-04-12 11:21

Re: eSpeakCaller like app / voice caller id
 
Hello,
Please complete this project...

knobtviker 2013-04-12 12:58

Re: eSpeakCaller like app / voice caller id
 
It looks complete to me?

tonyhuynh 2013-04-12 13:17

I like this and waiting

kesava 2013-04-16 04:41

Re: eSpeakCaller like app / voice caller id
 
this script is working for incoming calls also how to avoid?
for out going call it is saying caller name for only one time..

ghost_who_walks 2013-04-16 14:59

Re: eSpeakCaller like app / voice caller id
 
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 :confused:.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 :D All I am is a dumb corrosion engineer........:D:D

kesava 2013-04-19 09:57

Re: eSpeakCaller like app / voice caller id
 
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


All times are GMT. The time now is 11:13.

vBulletin® Version 3.8.8