HydrogenAudio

Lossy Audio Compression => Speech Codecs => Topic started by: N00berd on 2007-06-07 14:01:21

Title: Speex batch decoding
Post by: N00berd on 2007-06-07 14:01:21
Hi,

I need a programm that can batch decode speex files. It should be able to decode all speex files in a directory to wav files and it should be free and a commandline programm because I want to run it from an installer.

I've heard speexdec.exe is able to batch convert files: http://lists.xiph.org/pipermail/speex-dev/...ary/005227.html (http://lists.xiph.org/pipermail/speex-dev/2007-January/005227.html) but it did'nt work.

What's wrong?

Hallo,

ich suche ein Programm, das mehrere Speex-Dateien in einem Verzeichnis auf einmal in Wav-Dateien umwandeln kann. Es sollte ein Commandline-Programm sein, weil ich es aus einem Installer heraus ausrufen möchte (wird eine Mod für ein Computerspiel, das aber nur .wav-Dateien annimt, die sind mir aber zu groß).

Ich habe gehört, dass es mit speexdec.exe möglich sei: http://lists.xiph.org/pipermail/speex-dev/...ary/005227.html (http://lists.xiph.org/pipermail/speex-dev/2007-January/005227.html) Aber das funktioniert nicht.

Was mache ich falsch?
Title: Speex batch decoding
Post by: Polar on 2007-06-07 14:46:53
Hate to break the fun, but it seems to me
http://www.hydrogenaudio.org/forums/index....showtopic=23120 (http://www.hydrogenaudio.org/forums/index.php?showtopic=23120)
http://www.hydrogenaudio.org/forums/index....amp;s=&f=31 (http://www.hydrogenaudio.org/forums/index.php?act=SF&s=&f=31)
might be interesting reading for you.

Another hint: Foobar ;)
Title: Speex batch decoding
Post by: Synthetic Soul on 2007-06-07 16:54:37
Thread moved.

Save the text below as speex-decode.bat, first editing the path to SPEEXDEC.EXE, and then drag the folder containing the SPX files onto the file icon.

Code: [Select]
@FOR /R %1 %%G IN (*.spx) DO "C:\Path To\SPEEXDEC.EXE" "%%G" "%%~dpnG.wav"


Edit: Just noticed that you want to run this from an installer.  If you can run the command from the installer the syntax should be:

Code: [Select]
FOR /R %1 %G IN (*.spx) DO "C:\Path To\SPEEXDEC.EXE" "%G" "%~dpnG.wav"

The alternative is to use the batch file, and call it passing the folder as a parameter, i.e.:

Code: [Select]
speex-decode "C:\Path\To\My Wave Files"
Title: Speex batch decoding
Post by: N00berd on 2007-06-07 20:49:34
Thx it works! 

But I can hear many loud clicks in the speex files that weren't in the original file except I choose quality 8-10 but the general quality is good (not that metallic as vorbis aO tuv b5  ). Is this a problem with speex or what's wrong?

I'm using speexenc.exe and speexdec.exe both v. 1.2 beta2