Differences between version 4 and revision by previous author of RadioTuner.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Friday, April 30, 2004 8:28:01 am | by JohnMcPherson | Revert |
Older page: | version 3 | Last edited on Tuesday, April 20, 2004 12:35:15 am | by StuartYeates | Revert |
@@ -1,8 +1,9 @@
A piece of [Hardware] that allows you to pick up broadcast radio on your computer.
Many [TVTunerCards] have a radio tuner built in.
+!Tuning/Listening to the radio
You can use the "radio" application to tune and listen to radio stations. This is part of the xawtv package, but in [Debian] at least it is split into its own binary package:
apt-get install radio
Here is a sample __~/.radio__ configuration file for it (based on Hamilton frequencies):
@@ -17,7 +18,43 @@
2=101000000
Gnome Radio is a nice gui for [GTK2] that can store frequencies and record streams onto disk as Wav, [MP3] or OggVorbis.%%%
RedHat users with Dags repo set up on Apt or yum can install `gnomeradio`
+
+
+!Recording
+
+1. Use the Gnome Radio program as above.
+
+2. From the command line:
+
+Step 1 - (Make sure your sound card's mixer is set to record from the appropriate device - eg from Line In if you are using a loop-back cable).
+
+Step 2 - run the "radio" command or whatever program you use to get output to the sound card.
+
+Step 3 - run the following commands (or put them in a script and run that). Press Ctrl-C to finish.
+----
+ #!/bin/sh
+
+ # -c 1 for mono
+
+ # -s signed/-u unsigned, -w words (2byte samples)
+ datatype="-s -w"
+
+ # cd quality sample rate
+ rate="-r 44100"
+ # this is fine for voice recordings
+ rate="-r 22050"
+
+ # I like ogg.
+ encodecmd="oggenc - -o out.ogg"
+ #If you prefer mp3, you could install "gogo" and use
+ #encodecmd="gogo stdin out.mp3"
+
+ sox -t ossdsp /dev/dsp -t wav -c 1 $rate $datatype - | $encodecmd
+----
+Note that these commands aren't really radio-specific - they could be
+used for recording anything, although the settings here are ok for radio-quality audio. Also, if you use [ALSA] then you will need to have [OSS]-emulation drivers loaded.
+
----
[CategoryHardware]