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

ghost_who_walks 2013-04-19 12:56

Re: eSpeakCaller like app / voice caller id
 
Back again.Yet another quiet day so I deceided to revisit our developing script with our software engineer.Id like it to be known that our engineer works predominatly with java so this is difficult for him.Im only offering ideas...As with my previous post,most things have been worked,reworked and tested several times and we are impressed,bar the slurring speech,which is annoying. I`m asking the community if there is any voice synthesis software or script,apart from what we are using,that could be utilized.Something that would allow changing of pitch,speed of pronouncing,tone and the adding of other words or slang.....:D:D. Any ideas or suggestions would be great :D:D.

I also want to thank and credit `krzyc`for the orginal idea and script that is being expanded on.Without you this wouldnt of happened.:D:D

ghost_who_walks 2013-04-23 15:24

Re: eSpeakCaller like app / voice caller id
 
Just an update for those of you following this thread. Here`s what been achieved so far.....

1.Will pronounce name,with the option of the number as well,if both are assigned to the contact list.

2.Will pronounce `private number`if number is silent or blocked by telco.

3.If an unblocked number is received,which is not assigned to any contacts on the list,it will read the number.

4.The gap between repeating is now 2 seconds.

5.Phone will silence when turned face down but will still vibrate.

6.The answering script has been written so the app sleeps whilst no call are incoming but awakes instantly a call is received.Once the call is answered,it returns to sleep.

7.An option is available that allows the name to be spoken once if you dial out using a number assigned in the contacts list or it will speak the numbers as you input them. If the number you input is assigned in the contacts list,when you press dial,it will crosscheck and read out the name and the number.

8.We are exploring the option of having sms and emails read aloud when you open them and/or the option to have them read back to you,as a preview.Nothing is final on this as there are difficulties achieving this so it is 100% effective.

9.We are still using eSpeak,which is a considerable disadvantage,as speech isn't clear and many difficulties controlling the parameters are causing restrictions to what we want to achieve.So if anyone in the community can offer another option for speech synthesis,please speak up.

10.If anyone wants to request a specific option,feel free to post it here.

I have to thank Mikko (your Coopers beer is on its way bro) at our German R&D centre for becoming involved with this.Being a ex-Nokia software engineer,who worked extensively on Meego and has some scripts of his own that hes including.........:D:D

And me....well I'm on R&R for 4 weeks but will keep all informed of any developments.:D:D

getvasanth 2013-04-23 15:52

Re: eSpeakCaller like app / voice caller id
 
Good to hear the update, Let us know when the app/scripts going to posted here or github :)

ghost_who_walks 2013-04-24 15:41

Re: eSpeakCaller like app / voice caller id
 
Just another update to questions....

1.Yes,everything,once all bugs have been ironed out,will be available here as both a completed app,which will be free for all,and the completed script published,for those of you who can code.Even though we will try to ensure no compatibility problems,testers will be welcome with open arms and any other developers who feel that software they are developing or have already developed and published could utilize this,please feel free to use it.

2.Yes,it is solely for the N9.

3.Yes,unlike a lot of other ongoing projects,this will be update on a regular basis.

4.Yes,we also want community involvement and comment.

And.....we believe we have found another speech synthesis program by the name of `Mbrola`.Mikko,our software engineer,is trying to contact the original developers as it appears to have been abandoned some years ago.The samples of speech I have heard are incredibly realistic but the website is very vague on further details. If anyone can supply further details on this system,it would be appreciated......:D:D

peterleinchen 2013-04-24 22:09

Re: eSpeakCaller like app / voice caller id
 
Thanks for your efforts.
Regarding mbrola you may have a look at MartinK's modrana thread.

As you asked for requests, here is one (merely serious): I would like to have an option to call a number/person by speaking the name. Butmaybe this is more something for Saera?

ghost_who_walks 2013-04-25 14:32

Re: eSpeakCaller like app / voice caller id
 
Thank you for referring me to MartinK's modrana thread as I`d completely forgotten about the discussions they were having about the use of Mbrola.But,unfortunately,we cannot legally use it.Mikko did email what we thought was a dead email account but several hours later received a legal letter that runs for over 15 pages from an American legal company based in New York that specializes in copyrights.This company does exist :eek:.Apparently one of the original developers of the code sought legal protection,and was granted,a copyright to avoid unauthorized use.They readily threatened legal action but in the same sentence,they offered to sell us the `module`,as they refer to it, for a 5 figure sum !!!!.

So,its back to the drawing board :D:D

Let this be a lesson to all the community....Look before you leap :D:D

knobtviker 2013-04-25 17:44

Ah been there, done that.
What about Festival and porting it?

http://en.m.wikipedia.org/wiki/Festi...nthesis_System

http://www.cstr.ed.ac.uk/projects/festival/

knobtviker 2013-04-25 17:52

Actually pick your poison from here:
http://linux-sound.org/speech.html

colin.stephane 2013-04-25 21:32

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by ghost_who_walks (Post 1338817)
Thank you for referring me to MartinK's modrana thread as I`d completely forgotten about the discussions they were having about the use of Mbrola.But,unfortunately,we cannot legally use it.Mikko did email what we thought was a dead email account but several hours later received a legal letter that runs for over 15 pages from an American legal company based in New York that specializes in copyrights.This company does exist :eek:.Apparently one of the original developers of the code sought legal protection,and was granted,a copyright to avoid unauthorized use.They readily threatened legal action but in the same sentence,they offered to sell us the `module`,as they refer to it, for a 5 figure sum !!!!.

So,its back to the drawing board :D:D

Let this be a lesson to all the community....Look before you leap :D:D

Sorry, but what's wrong exactly with MBROLA ??? !!! ...

MBROLA License

A++

ghost_who_walks 2013-04-26 04:07

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by knobtviker (Post 1338890)
Actually pick your poison from here:
http://linux-sound.org/speech.html

Thank you for this link.It seems that a variety of systems are available and we will review each one accordingly and asses them on their relevant pros and cons.We really only want the best that we can get,for both quality and ease of scripting.

ghost_who_walks 2013-04-26 04:29

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by colin.stephane (Post 1338975)
Sorry, but what's wrong exactly with MBROLA ??? !!! ...

MBROLA License

A++

Please let me state here that nor myself or my crew will be drawn into any legal argument,but I will highlight a few points......

1.Mbrola is for non commercial use only.This is a commercial use in the eyes of the law as the script was going to be used in a app that could be remodeled in the future to become a payed,ie commercial,app.

2.The Mbrola script cannot be used with any other application without the authors permission,thus the 5 figure request.

3.And because it cannot be used with any other applications it cannot be used as the back-end of eSpeak,as was our original plans.

4.And the author,even though is asking for a 5 figure `copyright release`,also wants a 22% cut on everything if it goes commercial,wants his name in lights and a host of what I refer to as `legal ********`added to the script so you,the community coders,developers,and users cop a 6 page legal document every time you apt-get !!!!!! :D:D

As Australia's favorite bushranger,Ned Kelly, stated...`Such Is Life`

kesava 2013-04-26 07:37

Re: eSpeakCaller like app / voice caller id
 
Thanks for your effort, almost I lost my hope on eSpeakCaller app. finally you come up some solution. I am ready to test this application.

As you asked for requests, It should work on Bluetooth as well.

knobtviker 2013-04-26 09:15

Re: eSpeakCaller like app / voice caller id
 
My best guess would be Festival and/or Sphinx if you can get them to recompile and work on Harmattan. :)

ghost_who_walks 2013-04-26 10:02

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by kesava (Post 1339083)
Thanks for your effort, almost I lost my hope on eSpeakCaller app. finally you come up some solution. I am ready to test this application.

As you asked for requests, It should work on Bluetooth as well.

Thanks for the offer of testing.We will take you up on it :D.And the bluetooth request I assume means that you would like the option to voice dial by either speaking a name or a number thru an earpiece or a 3rd party vehicle mounted system. I`ll take that back to Mikko...:D:D

ghost_who_walks 2013-04-26 10:09

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by knobtviker (Post 1339111)
My best guess would be Festival and/or Sphinx if you can get them to recompile and work on Harmattan. :)

Thank you again. I assume we can count you in as a tester as well :D.I`ve spent a good part of the day following and studying the end results of your links and I agree that Festival may be the way to go.I can`t code for my life (I really should learn),but just reading the available documentation gives me a good understanding. Sphinx seem to be underdeveloped and the documentation seem outdated and scattered,but,its up to Mikko :D:D

knobtviker 2013-04-26 10:20

I'm in. Keep us updated here. :)

kesava 2013-04-26 11:36

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by ghost_who_walks (Post 1339131)
Thanks for the offer of testing.We will take you up on it :D.And the bluetooth request I assume means that you would like the option to voice dial by either speaking a name or a number thru an earpiece or a 3rd party vehicle mounted system. I`ll take that back to Mikko...:D:D

Thanks for considering me..:):)
When can I expect the first/beta build?

ghost_who_walks 2013-04-26 12:19

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by kesava (Post 1339155)
Thanks for considering me..:):)
When can I expect the first/beta build?

First we must decide which voice synthesis software is best suit for our purpose and port that over.Mikko believes Python could be the go but other software engineers seem to think QT.As he`s ex Nokia i`d like to see it written in the same script as Harmattan but apparently I`m just the face of this project,the ideas guy,and should just let the professionals do their **** !!! :p:p

So to answer your question kesava,if all goes well, possibly 3-4 weeks away before the beta build goes wild...:(

Like most of us in the community,we have to occasionally concentrate on our real world work. :(:(

colin.stephane 2013-04-26 16:39

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by kesava (Post 1339155)
Thanks for considering me..:):)
When can I expect the first/beta build?

When they have finished the business plan and fund leverage ...


Lol !!!


A++

ghost_who_walks 2013-04-27 06:19

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by colin.stephane (Post 1339263)
When they have finished the business plan and fund leverage ...


Lol !!!


A++

You forgot design submission to engineering,than several useless meetings later,primary proposal to planning,more meetings,proposal is sent back to engineering for final modifications before being resubmitted to planning and final approval from projects.......after they view the powerpoint presentation :D:D

knobtviker 2013-04-27 06:52

Re: eSpeakCaller like app / voice caller id
 
I tried eSpeak and pronouncing some of my contacts.
You were right.
It felt like Stephen Hawking on speed. There must be a better voice synth.

latency 2013-04-27 07:51

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by knobtviker (Post 1339373)
I tried eSpeak and pronouncing some of my contacts.
You were right.
It felt like Stephen Hawking on speed. There must be a better voice synth.

Put a non-gravity filter like this on it and the speed might even out ;)
http://astounde.com/wp-content/uploa...avity_NASA.jpg

I'm following this thread with great interest. So much good stuff in the works for the N9 lately :)

knobtviker 2013-04-27 08:11

LOL
Some of us never stopped improving the platform. :)

ghost_who_walks 2013-04-27 14:21

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by knobtviker (Post 1339373)
I tried eSpeak and pronouncing some of my contacts.
You were right.
It felt like Stephen Hawking on speed. There must be a better voice synth.

Well can report back that Sphinx was ported by Mikkos counterpart,Max,in New Zealand and the results,even with tweaking,are worse than eSpeak.`Dark Vader with a really bad head-cold ` is a very good description of the end result :D So Max is continuing to port Festival,but reports that the scripts are very similar thus believes the results will be comparable.He also suggested that many other synth scripts hes studied are incomplete university projects.But there may be light at the end of the tunnel.....Let me explain.

I was on the companies live feed site discussing voice synthesis (hey i`m bored....4 weeks R&R :p) and it was suggested that I contact the supplier of our two way radios who happens to be a New Zealand company.Why? All the radios we use have a highly refined speech synthesis system very similar to what is required to complete this project.As our work involves working in extremely noisy environments,180dB plus,all operators wear an earpiece and throat mike to activate the VOX system.What this allows the operators to do is `request`.An example is when you can ask to be connected to `Stevie`,an operator somewhere onsite,a husky (very sexy) female voice repeats your request and processes it,even telling you `you are connected`.You have the conversation and end it by saying `end`.It also allows you to dial out,take messages and preview them back.The system also sleeps,to preserve battery,and to awaken it,just say `wake`.Then the husky female voice says `system awake ****** ( your name)`.Theres a option available for `added real voice modules`.So,if you want,you can change the voice on your radio to,let says,Japanese,if you speak it,but it auto translate to the module on the receiving radio and visa versa. There are 300 options that can be programmed into either individual radios or as a group.

But,as we have to change radio frequencies to suit the mine site we are based on,to avoid band clashes and overlaps,we have all the software,with all options,available to us,allowing reprogramming of the radios individually or OTA .

Sooooo,Max is going to look at this software and decide if it can be ported,and secondary,if the suppliers of the radio software will allow us access. :D:D

knobtviker 2013-04-27 22:41

How very weird and thus probably a good solution! Good luck! :)

ghost_who_walks 2013-04-27 23:15

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by knobtviker (Post 1339547)
How very weird and thus probably a good solution! Good luck! :)

Sometimes answers to the most difficult of problems can arise from the strangest of places. :D

kesava 2013-04-29 04:48

Re: eSpeakCaller like app / voice caller id
 
Quote:

Originally Posted by ghost_who_walks (Post 1339549)
Sometimes answers to the most difficult of problems can arise from the strangest of places. :D

I think eSpeak is not that much bad.. We can start with eSpeak and we can change latter stage when ever we find better one:p

It is up to you, just it is my comment:confused:

kesava 2013-05-06 06:46

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

CLonkster 2013-05-20 21:00

Re: eSpeakCaller like app / voice caller id
 
I wanna use it too.. Specially with my Bluetooth Headset in the car!

kesava 2013-05-23 09:40

Re: eSpeakCaller like app / voice caller id
 
Hello ghost_who_walks,

We all are eagerly waiting for you update on development, please post some comments..


All times are GMT. The time now is 14:24.

vBulletin® Version 3.8.8