Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Detecting sounds while recording


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ngom at numericap.com
Guest





PostPosted: Sat May 07, 2016 12:20 pm    Post subject: [asterisk-users] Detecting sounds while recording Reply with quote

Hello everyone,
I have just met a problem. When I record a sound with the following Record application :
record(filename.format [|silence] [|maxduration] [|option])
For example: record (filename:wav, 0, 5,)
How can I detect if there is a sound or not, because I want to do a condition gotoif (.....) if there is no sound  detected.
Is not the silence considered as a noise?
If somebody met once this problem to help me.
Best regards !!!
Mamadou NGOM
Ingénieur Télécommunications & Réseaux
Mobile: 06 72 45 23 03
Skype: Mamadou Numericap
NumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015.
siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. mail: finance@numericap.com ([email]mail%3Afinance@numericap.com[/email])
Centre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :04.42.73.88.52 
Back to top
rsmalick at gmail.com
Guest





PostPosted: Sun May 08, 2016 5:13 am    Post subject: [asterisk-users] Detecting sounds while recording Reply with quote

Hello bro,


Set maxduration equals to silence and then check if the recorded file exists with something like this :


GotoIf ( $["${STAT(e,/var/lib/asterisk/sounds/${RECORDED_FILE)}"="1"]?3:7 )




Best regards,





2016-05-07 19:19 GMT+02:00 Mamadou NGOM <ngom@numericap.com (ngom@numericap.com)>:
Quote:

Hello everyone,
I have just met a problem. When I record a sound with the following Record application :
record(filename.format [|silence] [|maxduration] [|option])
For example: record (filename:wav, 0, 5,)
How can I detect if there is a sound or not, because I want to do a condition gotoif (.....) if there is no sound  detected.
Is not the silence considered as a noise?
If somebody met once this problem to help me.
Best regards !!!
Mamadou NGOM
Ingénieur Télécommunications & Réseaux
Mobile: [url=tel:06%2072%2045%2023%2003]06 72 45 23 03[/url]
Skype: Mamadou Numericap
NumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015.
siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. mail: finance@numericap.com ([email]mail%3Afinance@numericap.com[/email])
Centre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :04.42.73.88.52 



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




--

Malick NDIAYE


VoIP Software Developer - Telecoms Engineer
[img]https://docs.google.com/uc?id=0ByDaCIbUJAhUWEJ3aDFmTVlPWE0&export=download[/img]
416 Avenue de la Division Leclerc,
92290 Châtenay-Malabry
 
Tel. +33 1 70 75 01 60
Mob. +33 7 55 77 27 94
mndiaye@coverapps.fr (mndiaye@coverapps.fr)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services