You Are Here:

Community: Developer Discussion Boards

#1 Old DTMF detection for PyS60 - 2007-02-02, 09:37

Join Date: Oct 2006
Posts: 10
jetherton
Offline
Registered User
Hey, I'm working on a project for school and I needed to be able to do DTMF detection on a phone so I've made a simple little script and I wanted to share it.

DTMFdetector.py

Here's the usage:
Code:
from DTMFdetector import DTMFdetector
dtmf = DTMFdetector()
data = detector.getDTMFfromWAV("audioFile.wav")
It's only made to do DTMF on the phones so it only works for PCM 16bit 8000hz mono WAV files like PyS60 records. Also to get it to work you need to copy over wave.py and chunk.py from a standard Python 2.2 install.

You can find more info on the library here

Please give me feed back. This is my first attempt at making and releasing a library to the public. I'm sure there's lots of room for improvement.

John
<><
Reply With Quote

#2 Old Re: DTMF detection for PyS60 - 2007-02-03, 11:28

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Thanks to you for sharing your source code !


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#3 Old Re: DTMF detection for PyS60 (Share contacts) - 2009-01-21, 05:34

Join Date: Jan 2009
Posts: 9
akrajpal
Offline
Registered User
Hi,
Its nice to see some development happening on DTMF front.
I have conceived an idea of using DTMF during an active call to share contacts.
It so happens many a times that the calling party requires a phone number and the sharing of this conact detail many times becomes tedias during the call. The phones may not compatable to recieve business cards and you may not have a pen to note the number and so on.
To save the cost of sms and other issues, i have a concept.
While the call is active, I run this application in the background which will send a nd recieve DTMF tones. So when I send a contact or type in a number, the other person would have these numbers captured by the DTMF application.
I wanted to know if some one can help in making this application.
Feedback is welcome.
Reply With Quote

#4 Old Re: DTMF detection for PyS60 (Share contacts) - 2009-01-21, 08:11

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by akrajpal View Post
Hi,
Its nice to see some development happening on DTMF front.
I have conceived an idea of using DTMF during an active call to share contacts.
It so happens many a times that the calling party requires a phone number and the sharing of this conact detail many times becomes tedias during the call. The phones may not compatable to recieve business cards and you may not have a pen to note the number and so on.
To save the cost of sms and other issues, i have a concept.
While the call is active, I run this application in the background which will send a nd recieve DTMF tones. So when I send a contact or type in a number, the other person would have these numbers captured by the DTMF application.
I wanted to know if some one can help in making this application.
Feedback is welcome.
AFAIK, all the PyS60 supporting devices can send or receive buisness cards - even during an ongoing call. Do you have a specific device in mind for your application?
Reply With Quote

#5 Old Re: DTMF detection for PyS60 - 2009-01-21, 13:04

Join Date: Jan 2009
Posts: 9
akrajpal
Offline
Registered User
Hi, thanks for the reply.
The problem is the business caxrds are charged as SMS. Depending on the content of the BC, the more SMS are charged. Imagine if you are internationally roaming, , the SMS charges run a huge cost.
I am trying to looak at an application which will use the existing live call to transmit the DTMF tones as the contact info which will be deciphered by the app on the other side. No exttra cost involved.
Reply With Quote

#6 Old Re: DTMF detection for PyS60 - 2009-01-21, 13:19

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by akrajpal View Post
Hi, thanks for the reply.
The problem is the business caxrds are charged as SMS. Depending on the content of the BC, the more SMS are charged. Imagine if you are internationally roaming, , the SMS charges run a huge cost.
I am trying to looak at an application which will use the existing live call to transmit the DTMF tones as the contact info which will be deciphered by the app on the other side. No exttra cost involved.
Interesting.

Btw, I just noticed that the DTMFdetector.py link in the first post is broken.

Here is the correct URL.
http://johnetherton.com/wp-content/u...MFdetector.zip

Still thinking,

Best Regards,
Croozeus
Reply With Quote

#7 Old Re: DTMF detection for PyS60 - 2009-08-13, 07:08

Join Date: Jan 2007
Posts: 8
sensei.frank
Offline
Registered User
Quote:
Originally Posted by jetherton View Post
Hey, I'm working on a project for school and I needed to be able to do DTMF detection on a phone so I've made a simple little script and I wanted to share it.

DTMFdetector.py

Here's the usage:
Code:
from DTMFdetector import DTMFdetector
dtmf = DTMFdetector()
data = detector.getDTMFfromWAV("audioFile.wav")
It's only made to do DTMF on the phones so it only works for PCM 16bit 8000hz mono WAV files like PyS60 records. Also to get it to work you need to copy over wave.py and chunk.py from a standard Python 2.2 install.

You can find more info on the library here

Please give me feed back. This is my first attempt at making and releasing a library to the public. I'm sure there's lots of room for improvement.

John
<><
May I know how this program works? Was the mobile phone able to detect DTMF tones, say for example when DTMF tones are generated from the PC/telephone, the mobile phone listening to it was able to detect the tones generated by the PC/telephone and displays the equivalent values to the mobile phone display?

Thank you for your response. I really would like to know because at the moment, I dont have any clues on how to do it and I think you can help me with this. This is for our current project also.

Regards,

Frank
Reply With Quote

#8 Old Re: DTMF detection for PyS60 - 2009-10-08, 11:57

Join Date: Jan 2007
Posts: 8
sensei.frank
Offline
Registered User
The link you gave seems to be broken. However, I found your latest link <<http://johnetherton.com/projects/pys60-dtmf-detector>>...Currently, Im into studying your code as I need to understand how its being done and do it in Java(hopefully) - crediting your name, of course. Thanks a lot!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
DTMF detection on phone jetherton Python 8 2008-10-18 19:24
Voice call and DTMF tones kivitalo General Messaging 0 2005-06-17 10:03
DTMF tone detection in Nokia card phone 2.0 mrvijay General Discussion 0 2005-04-19 14:15
7710 problem: Send DTMF feature doesn't work pearl62 General Discussion 0 2005-01-13 18:16
Need help! Sending DTMF signals to remote phone HershD Symbian Networking & Messaging 1 2003-06-17 09:28

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia