Hi I want to detect the tone that is attached to this email with spandsp. what descriptor should I use. I'm trying 49 but it is not working. thanks
Hi Babak, You can set the debug level high to check which tone and duration is being detected. From Audacity the frequency is 425 Hz so 49 descriptor reorder should be detected. You might need to fine tune the duration looking at the debug messages. Hope this helps. Kalyani On Thu, Apr 7, 2016 at 1:26 PM, Babak Yakhchali <babak.freeswitch@gmail.com> wrote:
Hi I want to detect the tone that is attached to this email with spandsp. what descriptor should I use. I'm trying 49 but it is not working. thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Babak, you can also try avmd module for a detection of single frequency sound. I have tested avmd on your audio and it detected 425.69 Hz frequency when it's variance threshold was set to 0.0006, 446.23 Hz with default threshold of 0.00025. 2016-04-07 12:32:05.820909 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1000@192.168.1.27 [4e41e5be-51a0-42fa-87b5-8fde76744530] 2016-04-07 12:32:06.060908 [INFO] mod_dialplan_xml.c:637 Processing beautiful display name <1000>->1705 in context default api avmd 4e41e5be-51a0-42fa-87b5-8fde76744530 start Content-Type: api/response Content-Length: 89 +OK [4e41e5be-51a0-42fa-87b5-8fde76744530] [sofia/internal/ 1000@192.168.1.27] started! 2016-04-07 12:32:12.760908 [INFO] switch_core_media_bug.c:701 Sending early media 2016-04-07 12:32:12.760908 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/1000@192.168.1.27! 2016-04-07 12:32:12.760908 [INFO] mod_avmd.c:279 Avmd session initialized, [8000] samples/s 2016-04-07 12:32:12.760908 [INFO] mod_avmd.c:739 Avmd on channel [sofia/internal/1000@192.168.1.27] started! 2016-04-07 12:32:17.480907 [NOTICE] mod_avmd.c:919 <<< AVMD - Beep Detected: f = [425.688780], variance = [0.000533] >>> Avmd works for single frequency tones. Be sure to checkout latest master (this module is yet not of a production quality at this moment). cheers, Piotr
thanks I think the my test scenario is not correct. I'm playing the sound file to a test call and it seems spandsp is not monitoring the played file rtp. when I play the file using laptop mic it detects it with descriptor 49. the original problem is false detections during normal calls. I will test your suggestions when I can record a conversation in which false detection happened. On Thu, Apr 7, 2016 at 4:34 PM, Piotr Gregor <piotrek.gregor@gmail.com> wrote:
Hi Babak,
you can also try avmd module for a detection of single frequency sound. I have tested avmd on your audio and it detected 425.69 Hz frequency when it's variance threshold was set to 0.0006, 446.23 Hz with default threshold of 0.00025.
2016-04-07 12:32:05.820909 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1000@192.168.1.27 [4e41e5be-51a0-42fa-87b5-8fde76744530] 2016-04-07 12:32:06.060908 [INFO] mod_dialplan_xml.c:637 Processing beautiful display name <1000>->1705 in context default
api avmd 4e41e5be-51a0-42fa-87b5-8fde76744530 start
Content-Type: api/response Content-Length: 89
+OK [4e41e5be-51a0-42fa-87b5-8fde76744530] [sofia/internal/ 1000@192.168.1.27] started!
2016-04-07 12:32:12.760908 [INFO] switch_core_media_bug.c:701 Sending early media 2016-04-07 12:32:12.760908 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/1000@192.168.1.27! 2016-04-07 12:32:12.760908 [INFO] mod_avmd.c:279 Avmd session initialized, [8000] samples/s 2016-04-07 12:32:12.760908 [INFO] mod_avmd.c:739 Avmd on channel [sofia/internal/1000@192.168.1.27] started! 2016-04-07 12:32:17.480907 [NOTICE] mod_avmd.c:919 <<< AVMD - Beep Detected: f = [425.688780], variance = [0.000533] >>>
Avmd works for single frequency tones. Be sure to checkout latest master (this module is yet not of a production quality at this moment).
cheers, Piotr
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Babak Yakhchali
-
Kalyani Kulkarni
-
Piotr Gregor