[Klug-general] Linux Sound Programming

Peter Childs peterachilds at gmail.com
Tue Mar 16 16:36:08 UTC 2010


On 16 March 2010 16:13, Graham Todd <grahamtodd2 at googlemail.com> wrote:
> On Tue, 16 Mar 2010 11:27:25 +0000
> Peter Childs <pchilds at bcs.org> uttered these words:
>
>> I'm currently trying to write a small program that records, writes
>> does what what it records and archives in into 15 minute time
>> segments. (so MP3 or ogg encoding would be handy too) (This small
>> program can be written in anything, it does not really need to link
>> into the main Qt program....)
> [snipped]
>
> How about using Gramofile?
>
> http://www.opensourcepartners.nl/~costar/gramofile/
>
> It was originally written to record whole sides of vinyl L.P.s, then
> split them into tracks, and finally take all the pops, cracks, etc,
> out of the finished recordings.  With later versions you can specify
> length of recorded sound.
>
> It is a command line program, so doesn't have a GUI as such, but it is
> well-documented.  The file output is .wav, but this can easily be
> converted to .mp3 or .ogg by small scripts:
>
> To .mp3:
>
> Put all your .wav files (that you want to convert) into a folder and
> execute the following script from within this folder, make sure to make
> this script executable (chmod 777 wav2mp3.sh)
>
> #!/bin/sh
> # name of this script: wav2mp3.sh
> # wav to mp3
>
> for i in *.wav; do
>  if [ -e "$i" ]; then
>   file=`basename "$i" .wav`
>   lame -h -b 192 "$i" "$file.mp3"
>  fi
> done
>
> Dependencies
>
> faad2 and lame
>
> [this from
> http://linuxpoison.blogspot.com/2008/02/script-to-convert-wav-to-mp3.html]
>
> #!/bin/sh
> #Convert .wav to .ogg (quality 7/10 and 128kbps).
>
> oggenc -b 128 -q 7 onefile.wav
>
> Normalize:
>
> normalize-ogg *.ogg
>
> [this from http://snippets.dzone.com/posts/show/4008 ]
>
> There is also a GNOME application, soundconverter, to convert audio
> files to other formats and (what is presume to be) a KDE front end to
> it called soundkonverter).
>
> HTH
> --
> Graham Todd
>
>
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>

Looks good, I was thinking of adding extra features with time. but
that's quick and dirty method.

I'm currently trying to work out how to use Pulse Directly.

Maybe tiresome but it keeps me busy.

Peter.



More information about the Kent mailing list