03-28-2013
(This could be homework.)
I am not sure i am understanding you correctly but I assume you want the sounds to be like morse code...
This will generate a single tone.
https://www.unix.com/shell-programmin...ator-demo.html
It is up to you to work out morse code with it which is not difficult...
Alternatively if it as voice you want the look at "cat" and use it to record raw voice data directly to disk, as <number>.raw using a laptop's internal mic for ease of use...
This assumes that you have /dev/dsp as a device.
Not sure why you need <number>.wav but if that is a requirement then look at SOX for doing all of the above...
This User Gave Thanks to wisecracker For This Post:
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi all,
How do I set up my cdrom to play some regular audio cd (not cd-r or cd-rw). I know that my cdrom has been mounted as it does pop up the file manager if I put in, e.g., the office52 cd.
Thanks in advance.
Andre (3 Replies)
Discussion started by: andrec
3 Replies
2. UNIX for Advanced & Expert Users
I posted this question in the dummies forums, but I would like to get a more expert opinion... I am looking for a new OS to play with. I have a celron 450 running slackware linux, a powermac G4 450 running Mac OS X (Which by the way has 81 days of uptime as of this moment), a PowerBook G3 running... (5 Replies)
Discussion started by: dewhite04
5 Replies
3. UNIX for Dummies Questions & Answers
HI
I AM A FRESH NEW USER ...I MEAN I JUST GOT A COMPUTER ALMOST FOR FREE AND IT RUNS UNIX WHICH I DIDN'T EXPECT
AND DONT KNOW HOW TO WORK ON IT
I THOUGHT IT'LL BE WITH WINDOWS ..YOU KNOW
SO HOW DO I PLAY A CD IN IT.
REMEMBER I KNOW NOTHING ABOUT UNIX , BUT I THINK I'LL GET OVER IT... (1 Reply)
Discussion started by: IMOTEB
1 Replies
4. UNIX for Advanced & Expert Users
dear friends,
i have linux system . can i play songs in linux system.
like winamp player in windows.
let me know. (2 Replies)
Discussion started by: rajan_ka1
2 Replies
5. Linux
can some1 tell me how to start playing? (2 Replies)
Discussion started by: 123456
2 Replies
6. Linux
Hi All,
Recently I installed Linux RHEL5 on my machine. It seems that I can not play sound on RHEL5. I have real player installed along with RHEL5 but, when I try to play any song, the error message comes up saying "Can not open the audio device.Another application may be using it."
Does any... (2 Replies)
Discussion started by: gydave
2 Replies
7. Slackware
I am having problems using soundes. Until a few moments ago
the following commands produced errors and no sound:
cat /usr/share/apps/kolf/sounds/blackhole.wav/ > /dev/dsp yielded:
/dev/dsp: Invalid argument
cat /usr/share/apps/kolf/sounds/blackhole.wav > /dev/audio yelded:
/dev/audio:... (3 Replies)
Discussion started by: slak0
3 Replies
8. Shell Programming and Scripting
approximately the same question as the last time, but unfortunately I didn't get
a working answer.
I made a script with bash and gtkdialog that create a play-list. The output is for example :
gtk-media-pause | CB60471-05 - Gilbert, Brantley - Country Must Be Country Wide.zip | 28897 |... (3 Replies)
Discussion started by: jkfloris
3 Replies
convert(1) General Commands Manual convert(1)
NAME
convert - convert an audio file
SYNOPSIS
[source_file] [target_file] [] []
[] [] []
[] []
DESCRIPTION
This command converts audio files from one supported file format, data format, sampling rate, and number of channels to another. The
unconverted file is retained as a source file.
are the file formats for the source and destination files.
Each format can be one of these:
Sun file format
NeXT file format
Microsoft RIFF Waveform file format
MuLaw format
ALaw
linear 16-bit format
offset (unsigned) linear 8-bit format
linear 8-bit format
If you omit uses the header or filename extension in the source file. You can omit if you supply a filename extension for the des-
tination file.
is the data type for the destination files.
data_type can be one of these:
MuLaw
ALaw
linear 16-bit
offset (unsigned) linear 8-bit data
linear 8-bit data
If you omit uses an appropriate data type, normally the data type of the source file.
are the number of samples per second for the source and
destination file. Typical sampling rates range from 8 to 11k (for voice quality) to 44,100 (for CD quality). You can use to indi-
cate thousands. For example, means 8,000 samples per second.
If you omit uses a rate defined by the source file header or its filename extension. For a raw file with no extension, 8,000 is
used. By playing the file, you can determine if 8,000 samples is too fast or too slow.
If you omit uses a sampling rate appropriate for the destination file format; if possible, it matches the sampling rate of the
source file.
are the number of channels in the source and destination files.
Use for mono; for stereo. If is omitted, uses the information in the header; for raw data files, it uses mono.
If is omitted, matches what was used for the source file (through the header or option); for raw data files, it uses mono.
EXAMPLES
Convert a raw data file to a headered file.
Convert a raw data file to a headered file when the source has no extension, was sampled at 11,025 per second, and has stereo data.
To save disk space, convert an audio file with CD quality sound to voice quality sound.
AUTHOR
was developed by HP.
Sun is a trademark of Sun MicroSystems, Inc.
NeXT is a trademark of NeXT Computers, Inc.
Microsoft is a trademark of Microsoft Corporation.
SEE ALSO
audio(5), asecure(1M), aserver(1M), attributes(1), send_sound(1).
convert(1)