VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ngom at numericap.com Guest
|
Posted: Sat May 07, 2016 12:20 pm Post subject: [asterisk-users] Detecting sounds while recording |
|
|
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
|
Posted: Sun May 08, 2016 5:13 am Post subject: [asterisk-users] Detecting sounds while recording |
|
|
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 |
|
|
|
|
|
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
|