Re: [asterisk-users] Asterisk - Soundcard - Recording?
On Tuesday 28 May 2013, Tim Nelson wrote: Greetings- I've got a curious project that I could use some input on. I'd like to use Asterisk to record some audio channels via USB 'soundcard'. When audio passes through the soundcard, Asterisk should grab that audio channel (CONSOLE?), and write it to a wav file. I'm perfectly competent with the dialplan portion of the recording, but I don't know about the following: -How does Asterisk know a new audio stream/source is beginning/ending? -Can I have more than one CONSOLE device -Is ALSA or OSS the preferred audio system with Asterisk these days (Asterisk 11 presumably) Any thoughts? Or, do you have any alternative ideas that would work better than using Asterisk for this? Do you need to use Asterisk for this? What's wrong with using the rec command? $ rec -b8 -r8k -c1 file01.wav Also, please -- and don't take this too personally, because you are by no means the only guilty party; this applies to other users as well, and they know who they are -- when asking questions on this list, please try not to come across sounding furtive or evasive. Not only is it easier to answer a question with too much information than too little, but a question asked with such an air of secrecy about it actually dissuades people from offering help. It looks as though you are deliberately concealing information because you don't trust us not to steal an idea for which you are about to take the full credit. This is contrary to the very spirit of the mailing list, which is all about sharing information, and people will naturally close ranks to squeeze out that sort of behaviour. -- AJS Answers come *after* questions. -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
- Original Message - On Tuesday 28 May 2013, Tim Nelson wrote: Greetings- I've got a curious project that I could use some input on. I'd like to use Asterisk to record some audio channels via USB 'soundcard'. When audio passes through the soundcard, Asterisk should grab that audio channel (CONSOLE?), and write it to a wav file. I'm perfectly competent with the dialplan portion of the recording, but I don't know about the following: -How does Asterisk know a new audio stream/source is beginning/ending? -Can I have more than one CONSOLE device -Is ALSA or OSS the preferred audio system with Asterisk these days (Asterisk 11 presumably) Any thoughts? Or, do you have any alternative ideas that would work better than using Asterisk for this? Do you need to use Asterisk for this? What's wrong with using the rec command? $ rec -b8 -r8k -c1 file01.wav That is a good suggestion, but of course I'd need to add some 'magic' for control of the recording at various intervals, after silences, etc. Also, please -- and don't take this too personally, because you are by no means the only guilty party; this applies to other users as well, and they know who they are -- when asking questions on this list, please try not to come across sounding furtive or evasive. Not only is it easier to answer a question with too much information than too little, but a question asked with such an air of secrecy about it actually dissuades people from offering help. It was not my intent to come across this way. To be honest, the project I'm working on isn't even completely fleshed out, and I too am slightly 'in the dark' on details. I was simply doing some preemptive investigative work into the software side of things. It looks as though you are deliberately concealing information because you don't trust us not to steal an idea for which you are about to take the full credit. This is contrary to the very spirit of the mailing list, which is all about sharing information, and people will naturally close ranks to squeeze out that sort of behaviour. Your position is understood, but incorrect in this case. And, again, there is no deliberate concealment, only a lack of details on my part. :/ --Tim -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
- Original Message - You are still being a bit evasive but should I understand that you want to run a headless machine with open microphones that records what ever it hears? What do you want to do with each sound bite? How long does the silence have to be before you close the recording and dispose of it (save, e-mail, upload, whatever). Sounds like a security monitoring package (minus the video) should do the job? Thanks for the info, I will have a look at those. A little Googleing shows up these. http://oreka.sourceforge.net/about/ http://www.ubuntugeek.com/how-to-recording-internal-audio-in-ubuntu.html What else do you want it to do? No idea at this point. I'm just doing some preemptive legwork for a project coming down the pipe. --Tim -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
- Original Message - I'll take a stab, since you said no GUI and also USB based mic. Raspberry Pi project? I'm interested in this vein as well, Nope, the RPi is not a component. BUT, a good suggestion for a small board. I'll keep it in mind. especially after the recent post about voice recognition. I was thinking that Raspberry Pi's with mics could live around my house and all have dedicated always-open channels to a conference bridge in the main asterisk box. I was planning on using ALSA and a USB mic on a local Raspberry Pi asterisk instance. Very interesting. You could use the CONSOLE for the audio device and at the same time get the ability to make/take calls via Asterisk CLI or .call files. So given that we know basically what you are trying to do, the original question was OSS versus ALSA for USB mic, correct? Has anyone had any thoughts on that? I thought ALSA was built in to the kernel and OSS required some hacks. But that is a pretty fuzzy recollection. I think it depends on the kernel being used. Research is needed, but IIRC, you are correct, ALSA is included or at least fully supported whereas other sound systems are 'less than stellar'. --Tim -- _ -- 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
[asterisk-users] Asterisk - Soundcard - Recording?
Greetings- I've got a curious project that I could use some input on. I'd like to use Asterisk to record some audio channels via USB 'soundcard'. When audio passes through the soundcard, Asterisk should grab that audio channel (CONSOLE?), and write it to a wav file. I'm perfectly competent with the dialplan portion of the recording, but I don't know about the following: -How does Asterisk know a new audio stream/source is beginning/ending? -Can I have more than one CONSOLE device -Is ALSA or OSS the preferred audio system with Asterisk these days (Asterisk 11 presumably) Any thoughts? Or, do you have any alternative ideas that would work better than using Asterisk for this? Thanks! --Tim -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
What are you trying to accomplish? What is the USB 'sound card' attached to? Your description is too cryptic for someone to propose a solution. Ron On 28/05/2013 12:45 PM, Tim Nelson wrote: Greetings- I've got a curious project that I could use some input on. I'd like to use Asterisk to record some audio channels via USB 'soundcard'. When audio passes through the soundcard, Asterisk should grab that audio channel (CONSOLE?), and write it to a wav file. I'm perfectly competent with the dialplan portion of the recording, but I don't know about the following: -How does Asterisk know a new audio stream/source is beginning/ending? -Can I have more than one CONSOLE device -Is ALSA or OSS the preferred audio system with Asterisk these days (Asterisk 11 presumably) Any thoughts? Or, do you have any alternative ideas that would work better than using Asterisk for this? Thanks! --Tim -- _ -- 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 -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
- Original Message - What are you trying to accomplish? What is the USB 'sound card' attached to? Your description is too cryptic for someone to propose a solution. The target use is to record mic level audio from various devices (could be an omnidirectional room mike, phone handset, etc). --Tim -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
On 28/05/2013 1:23 PM, Tim Nelson wrote: - Original Message - What are you trying to accomplish? What is the USB 'sound card' attached to? Your description is too cryptic for someone to propose a solution. The target use is to record mic level audio from various devices (could be an omnidirectional room mike, phone handset, etc). --Tim -- _ -- 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 -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
Sorry for the blank message. Fingers pressed send while brain was disenaged. Would Audacity be a better choice? http://wiki.audacityteam.org/wiki/Multichannel_Recording Ron On 28/05/2013 1:23 PM, Tim Nelson wrote: - Original Message - What are you trying to accomplish? What is the USB 'sound card' attached to? Your description is too cryptic for someone to propose a solution. The target use is to record mic level audio from various devices (could be an omnidirectional room mike, phone handset, etc). --Tim -- _ -- 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 -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
- Original Message - Sorry for the blank message. Fingers pressed send while brain was disenaged. Would Audacity be a better choice? http://wiki.audacityteam.org/wiki/Multichannel_Recording It would absolutely be a better solution. However, the recording is to be automated on a small system with no GUI, only console/SSH access. As such, running a full featured audio recording/mixing application in realtime (with user control) is not an option. :/ --Tim -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
You are still being a bit evasive but should I understand that you want to run a headless machine with open microphones that records what ever it hears? What do you want to do with each sound bite? How long does the silence have to be before you close the recording and dispose of it (save, e-mail, upload, whatever). Sounds like a security monitoring package (minus the video) should do the job? A little Googleing shows up these. http://oreka.sourceforge.net/about/ http://www.ubuntugeek.com/how-to-recording-internal-audio-in-ubuntu.html What else do you want it to do? Ron On 28/05/2013 2:23 PM, Tim Nelson wrote: - Original Message - Sorry for the blank message. Fingers pressed send while brain was disenaged. Would Audacity be a better choice? http://wiki.audacityteam.org/wiki/Multichannel_Recording It would absolutely be a better solution. However, the recording is to be automated on a small system with no GUI, only console/SSH access. As such, running a full featured audio recording/mixing application in realtime (with user control) is not an option. :/ --Tim -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
I'll take a stab, since you said no GUI and also USB based mic. Raspberry Pi project? I'm interested in this vein as well, especially after the recent post about voice recognition. I was thinking that Raspberry Pi's with mics could live around my house and all have dedicated always-open channels to a conference bridge in the main asterisk box. I was planning on using ALSA and a USB mic on a local Raspberry Pi asterisk instance. So given that we know basically what you are trying to do, the original question was OSS versus ALSA for USB mic, correct? Has anyone had any thoughts on that? I thought ALSA was built in to the kernel and OSS required some hacks. But that is a pretty fuzzy recollection. j On 05/28/2013 03:10 PM, Ron Wheeler wrote: You are still being a bit evasive but should I understand that you want to run a headless machine with open microphones that records what ever it hears? What do you want to do with each sound bite? How long does the silence have to be before you close the recording and dispose of it (save, e-mail, upload, whatever). Sounds like a security monitoring package (minus the video) should do the job? A little Googleing shows up these. http://oreka.sourceforge.net/about/ http://www.ubuntugeek.com/how-to-recording-internal-audio-in-ubuntu.html What else do you want it to do? Ron On 28/05/2013 2:23 PM, Tim Nelson wrote: - Original Message - Sorry for the blank message. Fingers pressed send while brain was disenaged. Would Audacity be a better choice? http://wiki.audacityteam.org/wiki/Multichannel_Recording It would absolutely be a better solution. However, the recording is to be automated on a small system with no GUI, only console/SSH access. As such, running a full featured audio recording/mixing application in realtime (with user control) is not an option. :/ --Tim -- _ -- 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
Re: [asterisk-users] Asterisk - Soundcard - Recording?
So what is the fix for it? It was working all fine, all of a sudden it stopped working. Regards Jitesh Gala Director Fantasia Business Park, Nano Wing, S-10, Sector-30A, Vashi, Navi Mumbai - 400705 Cell No: +91 9769144905 Skype ID: jitesh_gala www.hubrisbpo.com -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jeff LaCoursiere Sent: Wednesday, May 29, 2013 1:50 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Asterisk - Soundcard - Recording? I'll take a stab, since you said no GUI and also USB based mic. Raspberry Pi project? I'm interested in this vein as well, especially after the recent post about voice recognition. I was thinking that Raspberry Pi's with mics could live around my house and all have dedicated always-open channels to a conference bridge in the main asterisk box. I was planning on using ALSA and a USB mic on a local Raspberry Pi asterisk instance. So given that we know basically what you are trying to do, the original question was OSS versus ALSA for USB mic, correct? Has anyone had any thoughts on that? I thought ALSA was built in to the kernel and OSS required some hacks. But that is a pretty fuzzy recollection. j On 05/28/2013 03:10 PM, Ron Wheeler wrote: You are still being a bit evasive but should I understand that you want to run a headless machine with open microphones that records what ever it hears? What do you want to do with each sound bite? How long does the silence have to be before you close the recording and dispose of it (save, e-mail, upload, whatever). Sounds like a security monitoring package (minus the video) should do the job? A little Googleing shows up these. http://oreka.sourceforge.net/about/ http://www.ubuntugeek.com/how-to-recording-internal-audio-in-ubuntu.html What else do you want it to do? Ron On 28/05/2013 2:23 PM, Tim Nelson wrote: - Original Message - Sorry for the blank message. Fingers pressed send while brain was disenaged. Would Audacity be a better choice? http://wiki.audacityteam.org/wiki/Multichannel_Recording It would absolutely be a better solution. However, the recording is to be automated on a small system with no GUI, only console/SSH access. As such, running a full featured audio recording/mixing application in realtime (with user control) is not an option. :/ --Tim -- _ -- 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 -- _ -- 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