sox

building libsox for iOS question

拈花ヽ惹草 提交于 2019-12-22 17:53:09
问题 I want to build libsox for iphone device but I havent got any luck doing so. I am just wondering if it is even possible to build this library for iphone.... 回答1: einsteinx already posted from my blog ;) but here both links again First post explains how you build libsox: http://uberblo.gs/2011/04/iosiphoneos-equalizer-with-libsox-making-it-a-framework The second explains how to use it: http://uberblo.gs/2011/04/iosiphoneos-equalizer-with-libsox-doing-effects please up the answer if it helped

Get a spectrum of frequencies from WAV/RIFF using linux command line

喜欢而已 提交于 2019-12-22 08:46:39
问题 How to generate file including spectrum of frequencies of wav/riff sound file? I would like to use linux command line. I know the cool sox function to generate png spectrograms sox sound.wav -n spectrogram But I do not need visual representation of the spectrum of frequencies. I just want to get spectrum of frequencies in data file so I can work on them. I believe that there must be an option using sox. Sox need to generate that data before plotting it. How to get this? Not sure, maybe the

check duration of audio files on the command-line

家住魔仙堡 提交于 2019-12-20 16:16:15
问题 I need to check the duration of a group of audio files. Is there a simple way to do this on the unix command-line? > duration * I have the amazing SoX app which has an option called stats that generates a set of audio info including duration. I am looking for a way to get only duration. I am flexible on output format, could be any of sample length, hh:mm:ss, or seconds. The latter would be my preference. 回答1: mp3info -p "%m:%02s\n" filename gives you the length of the specified file in mm:ss

check duration of audio files on the command-line

為{幸葍}努か 提交于 2019-12-20 16:15:31
问题 I need to check the duration of a group of audio files. Is there a simple way to do this on the unix command-line? > duration * I have the amazing SoX app which has an option called stats that generates a set of audio info including duration. I am looking for a way to get only duration. I am flexible on output format, could be any of sample length, hh:mm:ss, or seconds. The latter would be my preference. 回答1: mp3info -p "%m:%02s\n" filename gives you the length of the specified file in mm:ss

JPlayer Circle Player does not show circle first time around with wav files made from vox

妖精的绣舞 提交于 2019-12-20 07:39:38
问题 I have an application that is using the JPlayer Circle Player to play short audios for transcription purposes. Each of these audios originates as a .vox file that has been converted to .wav by SoX. When the Play button is pressed, the audio plays but the green circle does not display. Once the clip has played, pressing play again does show the green circle advancing. I assume that this is because either the original vox format or the wav format does not contain any length data so that player

play stat -freq What does the output mean?

僤鯓⒐⒋嵵緔 提交于 2019-12-14 03:23:05
问题 What does the output of play $file stat -freq mean? I recently ran the command, here's a sample of the output: $ play 44100Hz/3660/6517/3660-6517-0024.flac stat -freq 44100Hz/3660/6517/3660-6517-0024.flac: File Size: 214k Bit Rate: 325k Encoding: FLAC Info: Processed by SoX Channels: 1 @ 16-bit Samplerate: 44100Hz Replaygain: off Duration: 00:00:05.28 In:0.00% 00:00:00.00 [00:00:05.28] Out:0 [ | ] Clip:0 0.000000 0.412632 10.766602 0.430416 21.533203 0.750785 32.299805 0.839694 43.066406 0

Sox (sound exchange) on mac PPC 10.4 installation questions

别说谁变了你拦得住时间么 提交于 2019-12-13 19:49:03
问题 I am trying to get to grips with SOX on mac. I know how to program php. But i need to use sox to add audio water marks to mp3 files. I have been unable to find any ready made scipts for mac. So I suppose i will need to write one myself. Tho i dont know how to program any Ruby or python so i am not sure how hard it will be. The main problems i am having are. I downloaded sox for mac. My mac is a ppc G5. When i try to run SOX 14-4. It gives me a -bash cannot execute binary file message. Is this

Wait for external program to finish writing to file

人盡茶涼 提交于 2019-12-13 18:53:23
问题 I have a Python script that calls an external program ( sox to be precise). Now I have to do several things with sox , but always have to wait until one file is done writing so I can use it as an input file in my next command. subprocess.wait() doesn't work, because the execution of sox will be done, but the file won't be done writing. Here is the code I have: import tempfile import shlex file_url = '/some/file.wav' out_file = 'some/out.wav' tmp_file = tempfile.NamedTemporaryFile() pad_cmd =

What to do with *.h.cmake file

左心房为你撑大大i 提交于 2019-12-13 05:49:32
问题 I'm trying to build pysox (module to use SoX in Python). But mingw32-gcc show the error: "soxstdint.h: No such file". The SoX source code doesn't distribute a "soxstdint.h", only a "soxstdint.h.cmake". What do I have to do with it? I couldn't figure out whether CMake can help me. I need to get "soxstdint.h". Fine, if somebody can tell me some background information. 回答1: I just downloaded the pysox 0.3.6.alpha source from the link you provided, and the string soxstdint does not appear in any

Execute a linux terminal command in java?

老子叫甜甜 提交于 2019-12-12 07:07:14
问题 i'm trying to execute a SOX command from java, but unfortunately its returning an error everytime. Every other SOX commands are working perfectly though!! Here is the code : class Simple { public static void main(String args[]) throws IOException, Exception { Process p; BufferedReader br; String co = "sox speech_16.wav -p pad 0 2.5 | sox - -m speech_16.wav speech_output.wav"; p = Runtime.getRuntime().exec(co); br = new BufferedReader(new InputStreamReader(p.getInputStream())); int returnCode