|
|
2010-02-25
, 12:06
|
|
Posts: 287 |
Thanked: 165 times |
Joined on Oct 2009
@ The Netherlands
|
#11
|
|
|
2010-02-25
, 12:09
|
|
|
Posts: 154 |
Thanked: 124 times |
Joined on Mar 2007
|
#12
|
|
|
2010-03-04
, 23:18
|
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#13
|
| The Following User Says Thank You to Matan For This Useful Post: | ||
|
|
2010-03-09
, 14:29
|
|
|
Posts: 154 |
Thanked: 124 times |
Joined on Mar 2007
|
#14
|
|
|
2010-03-09
, 14:36
|
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#15
|
[stream] exe = mplayer group = alwayson
| The Following User Says Thank You to Matan For This Useful Post: | ||
|
|
2010-03-22
, 01:07
|
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#16
|
|
|
2010-03-22
, 08:16
|
|
|
Posts: 154 |
Thanked: 124 times |
Joined on Mar 2007
|
#17
|
|
|
2010-03-22
, 19:54
|
|
|
Posts: 1,309 |
Thanked: 1,187 times |
Joined on Nov 2008
|
#18
|
|
|
2010-03-23
, 00:14
|
|
|
Posts: 60 |
Thanked: 46 times |
Joined on Jan 2010
@ Europe
|
#19
|
#!/usr/bin/env python
import gobject, dbus
from dbus.mainloop.glib import DBusGMainLoop
from subprocess import call
from subprocess import Popen
tempfile = "/tmp/espeak.tmp.wav"
def handle_call(obj_path, callernumber):
if (callernumber != ''):
print "%s is calling" % callernumber
speak("%s is calling" % callernumber)
else:
print "caller id not submitted"
speak("unknown caller")
def speak(msg):
call(["/usr/bin/espeak", "-w", tempfile, msg])
call(["/usr/bin/mplayer","-ao","pulse", tempfile])
speak("waiting for incoming calls")
DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
bus.add_signal_receiver(handle_call, path='/com/nokia/csd/call', dbus_interface='com.nokia.csd.Call', signal_name='Coming')
gobject.MainLoop().run()
[stream] exe = mplayer group = alwayson
|
|
2010-03-24
, 01:50
|
|
|
Posts: 2,050 |
Thanked: 1,425 times |
Joined on Dec 2009
@ Bucharest
|
#20
|