Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A little snippet...

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1474
Location: Loughborough

PostPosted: Sun Feb 27, 2011 11:35 pm    Post subject: A little snippet... Reply with quote

Hi guys...

This might be of interest to some of you out there...

'/dev/audio' IS needed for this to work...

If '/dev/audio' does not exist then install oss-compat from your distro`s
repository.

Recording and playing back a short, simple sample from the command
line. This is easiest on a laptop/notebook/netbook with a builtin mic`.

1) Assume that you are already booted up into a Linux OS of your flavour.
2) Assume you know how to open up a terminal.
3) Assume you know how to create a new folder/drawer/directory.
4) Open up a Terminal/CLI.
5) you might need to be in root mode for this to work but in my case on
this Debian 6.0.0 it worked without "su" mode.
6) Use a temporary folder/drawer/directory to save to and "cd" to it.
7) In my case /home/wisecracker/TMP...

Now from the CLI to record, type:-

cat /dev/audio > sometestfile[RETURN/ENTER]

Immedaitely after ENTERing, start talking loudly into the mic for about
four seconds. Press Ctrl-C to exit the command at the end of the four
seconds.

The file "sometestfile" should be autosaved to the temporary drawer
and will be NO GREATER than 32768 bytes in size. It may be smaller
but NOT greater.

Now to replay the recorded audio type:-

cat sometestfile > /dev/audio[RETURN/ENTER]

And your dulcet tones will be heard in the speakers.

Good eh!... ;o)
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast