Commandline audio analysis utility? |
Commandline audio analysis utility? |
Nov 4 2012, 18:37
Post
#1
|
|
![]() Group: Members Posts: 89 Joined: 3-November 04 Member No.: 17971 |
Can anyone suggest a utility that takes an audio file as input, and can output to a text/CSV file various data (RMS, peaks, dominant frequencies, etc.) per each N ms of the input, for both time and frequency domains?
Windows is my main target, but *nix as well. It seems SoX has a few features in this direction, but not flexible enough (e.g., data per N ms, frequency domain resolution). |
|
|
|
![]() |
Nov 6 2012, 04:32
Post
#2
|
|
![]() Group: Members Posts: 89 Joined: 3-November 04 Member No.: 17971 |
Thanks for the suggestions.
So that’s less than half a minute for 78562 blocks. For a block length of 0.009 seconds (480101 blocks), it takes four minutes. The processor is a 1 GHz AMD 4850e, nothing extreme. Is that a realistic concern given how trivial the processing you are doing is? Interesting. I'm wonder if execution overhead is that trivial on a webhost, or at least, in terms of what they'd consider valid use. But then again, there's also the missing features with SoX. Your best bet is probably MATLAB or a MATLAB Clone Although I'd rather use something existing made for the specific job, rather than semi-program, I'll check this direction too.As a free alternative to MATLAB I'd suggest to try Python + Numpy/Scipy. I've never used it myself, but there is also a scikit for audio processing around. Sounds like this might need some customization, but I'll check it out. I wonder how well Python performs, but there are also potential advantages to Python for running on a shared webhost.
This post has been edited by sheh: Nov 6 2012, 04:49 |
|
|
|
Nov 6 2012, 13:00
Post
#3
|
|
![]() Group: Members Posts: 607 Joined: 16-January 09 Member No.: 65630 |
As a free alternative to MATLAB I'd suggest to try Python + Numpy/Scipy. I've never used it myself, but there is also a scikit for audio processing around. Sounds like this might need some customization, but I'll check it out. I wonder how well Python performs, but there are also potential advantages to Python for running on a shared webhost.In case you aren't aware, and for reference, NumPy/SciPy provide C level BLAS/LAPACK routines in Python interface, all around Numpy's multidimension (nd)array object. Many packages depend on it. Further performance boost on matrix manipulation, linear algebra and some other things, can be applied by compiling/installing (depending on platform) with Intel MKL or ATLAS libraries (roughly x30 boost, but that also is different from case to case) Then take performance test with other suggested/possible solutions For reading PCM WAV files, SciPy can do it. Audiolab scikit, provides additional formats through sndfile library, and was made as SciPy extension (like many others scikits) -------------------- Scripts (mainly foobar2000 related): http://goo.gl/yje3h
|
|
|
|
sheh Commandline audio analysis utility? Nov 4 2012, 18:37
chi QUOTE (sheh @ Nov 4 2012, 19:37) It seems... Nov 5 2012, 01:47
sheh It won't be efficient, executing it thousands ... Nov 5 2012, 20:03
saratoga QUOTE (sheh @ Nov 5 2012, 15:03) It won... Nov 5 2012, 21:11
chi QUOTE (sheh @ Nov 5 2012, 21:03) It won... Nov 5 2012, 22:38
phofman QUOTE (sheh @ Nov 5 2012, 21:03) It won... Nov 6 2012, 14:23
DVDdoug If you don't want to write an application your... Nov 5 2012, 21:25
rgtb QUOTE (DVDdoug @ Nov 5 2012, 21:25) If yo... Nov 5 2012, 22:49
Kohlrabi As a free alternative to MATLAB I'd suggest to... Nov 5 2012, 22:30
ojdo Another alternative might be Praat, that has basic... Nov 6 2012, 14:59
sheh No, I'm not aware of the specifics of SciPy/Nu... Nov 7 2012, 16:55![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 19:00 |