LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   voice recording program needed to record .wav for asterisk (https://www.linuxquestions.org/questions/linux-software-2/voice-recording-program-needed-to-record-wav-for-asterisk-740559/)

Agustina 07-16-2009 10:10 AM

voice recording program needed to record .wav for asterisk
 
Anyone knows any program in Linux that can record an audio file:
8000 Hz, 16 bits, Mono?

Because Iīve been trying Audacity and I canīt record with that characeristics.

I have DreamLinux 3.0.

Thanks in advance!!!!

tredegar 07-16-2009 11:30 AM

Quote:

Because Iīve been trying Audacity and I canīt record with that characeristics.
I set it up like this:

Audacity -> Edit -> Preferences -> Quality -> Select 16000Hz [OK]
Audacity -> Edit -> Preferences -> Audio I/O -> Select Recording, Channels 1 (Mono) [OK]

What exactly, is your problem?

Agustina 07-16-2009 12:21 PM

That when I set those parameters (8000 hz not 16000hz)it doesnīt work with oss.

jstephens84 07-16-2009 12:24 PM

Quote:

Originally Posted by Agustina (Post 3609650)
Anyone knows any program in Linux that can record an audio file:
8000 Hz, 16 bits, Mono?

Because Iīve been trying Audacity and I canīt record with that characeristics.

I have DreamLinux 3.0.

Thanks in advance!!!!

Look through your function codes. Asterisk has a call back where it will ring the extension of your choice and allow you to create the voice recording. Or you may have to create the function code.

tredegar 07-16-2009 12:28 PM

Works just fine with alsa. Maybe try alsa ?

I'm pretty sure most distros support alsa. Give it a try.

I am not familiar with DreamLinux but your sound system configuration will probably be somewhere under "System, Settings"

Also, if audacity will not work with oss it suggests that other applications won't either (because the "backend" isn't capable of dealing with whatever).

tredegar 07-16-2009 12:31 PM

Quote:

Look through your function codes. Asterisk...
Asterisk ???
I thought we were discussing Audacity. They both begin with "A" though ;)

hoodooman 07-16-2009 12:34 PM

recording
 
open a terminal and enter the following command,
arecord -vv -c 1 -f S16_LE -r8000 nameofyour file.wav

jstephens84 07-16-2009 06:13 PM

Quote:

Originally Posted by tredegar (Post 3609760)
Asterisk ???
I thought we were discussing Audacity. They both begin with "A" though ;)

After you said that I had to go back and add a second look also. Damn those A words. At quick glance they do look alike.

However I think he should stick with using audacity. That is what we used to record our IVR prompts with.

@Agustina -- I post back when I have the feature code that will ring your phone.

jstephens84 07-16-2009 06:23 PM

Ok I got it. What you need to do is make a dialplan that will call the Record() function. This function takes in the following.

Record(filename.format[,silence [,maxduration[,options]]])

format - specifies the file type to be recorded
silence - # of seconds of silence before ending the recording
maxduration - maximum recording time

here is an example usage use # if you are done before max time.

Code:

exten => 123, 1, Playback(pls-rcrd-name-at-tone)
 exten => 123, n, Record(/tmp/name.gsm,3,30)
 exten => 123, n, Playback(/tmp/name)



All times are GMT -5. The time now is 01:34 PM.