LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-16-2009, 10:10 AM   #1
Agustina
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
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!!!!
 
Old 07-16-2009, 11:30 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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?
 
Old 07-16-2009, 12:21 PM   #3
Agustina
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
That when I set those parameters (8000 hz not 16000hz)it doesnīt work with oss.
 
Old 07-16-2009, 12:24 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,054

Rep: Reputation: 83
Quote:
Originally Posted by Agustina View Post
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.
 
Old 07-16-2009, 12:28 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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).
 
Old 07-16-2009, 12:31 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
Look through your function codes. Asterisk...
Asterisk ???
I thought we were discussing Audacity. They both begin with "A" though
 
Old 07-16-2009, 12:34 PM   #7
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
recording

open a terminal and enter the following command,
arecord -vv -c 1 -f S16_LE -r8000 nameofyour file.wav
 
Old 07-16-2009, 06:13 PM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,054

Rep: Reputation: 83
Quote:
Originally Posted by tredegar View Post
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.
 
Old 07-16-2009, 06:23 PM   #9
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,054

Rep: Reputation: 83
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
voice recording program needed for Asterisk audio file Agustina Linux - Software 2 07-16-2009 11:02 PM
converting a voice recording wav into mp3 Matz Linux - General 9 10-20-2007 12:23 PM
Sound recording: can record my voice once wordx Linux - Laptop and Netbook 2 08-16-2007 02:04 AM
LXer: Digium is The Voice of Asterisk LXer Syndicated Linux News 0 06-06-2006 03:54 PM
LXer: Create your own Voice-over-IP PBX using Asterisk LXer Syndicated Linux News 0 02-21-2006 10:31 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration