sox Questions

20

Solved

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 tha...
Numidia asked 19/1, 2012 at 20:47

2

Solved

I'd like to create a custom voice in Mozilla TTS using audio samples I have recorded but am not sure how to get started. The Mozilla TTS project has documentation and tutorials, but I'm having trou...
Kayseri asked 21/2, 2021 at 22:0

3

Solved

I am looking for a fast, preferably standard library mechanism to determine the bit-depth of wav file e.g. '16-bit' or '24-bit'. I am using a subprocess call to Sox to get a plethora of audio meta...
Testes asked 13/9, 2017 at 17:59

4

I have around 20,000 .wav files (all voice lines) that I need to strip the silence from the start AND end of. The "silence" isn't pure silence, so I'll need to set a threshold. I'd also l...
sox
Sequoia asked 21/12, 2016 at 23:39

3

Solved

I am recording input microphone from a web page with WebRTC and process it through SoX. Problem is, Firefox recordings are in Opus Audio format (according to VLC media informations), in an Ogg con...
Dislocate asked 11/3, 2014 at 10:3

0

I have two stereo sounds, 1.wav and 2.wav, these sounds are less than 1 second long and list of timestamps (miliseconds from start of recording). Recording of pure video (recording.mp4) is several ...
Crupper asked 2/8, 2021 at 16:45

3

I have a bunch of audio files and need to split each files based on silence and using SOX. However, I realize that some files have very noisy background and some don't thus I can't use a single set...
Caudate asked 14/4, 2017 at 16:18

3

How to generate a file that contains the spectrum of frequencies of a WAV/RIFF sound file? I would like to use the Linux command line. I know the cool SoX function to generate PNG spectrograms: sox...
Nevers asked 13/2, 2014 at 13:54

6

I compiled libmad for sox. When I try to read an mp3 I get this message: sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer". Did I compile the project incorre...
Jutland asked 21/8, 2010 at 9:49

2

Solved

I'm trying to create a fade in and fade out for several wave files that I won't know the total time duration in seconds of. I read the manual but the example I see all looks like I need to know the...
Vivle asked 19/6, 2014 at 12:41

2

Solved

My server threw this error Sox::Error (sox FAIL formats: no handler for file extension `mp3' ) This person (https://superuser.com/questions/421153/how-to-add-a-mp3-handler-to-sox) had a similar ...
Ilo asked 24/4, 2014 at 19:16

4

Solved

I am trying to output the begin-timestamps of periods of silence (since there is background noise, by silence I mean a threshold) in a given audio file. Eventually, I want to split the audio file i...
Ploss asked 6/8, 2013 at 0:5

2

Solved

How do I have to call sox to transform an 2 second audio file into being speed up so that the resulting length of the file is 1.5 seconds (75%)? Do I have to pass an argument to do pitch correction...
sox
Erma asked 27/11, 2015 at 12:45

1

Solved

I've a couple of recordings where at the end of the track there's silence and the start of a new track (fraction). I tried to remove the start of the new track from the end of the file. My comman...
Mlle asked 27/10, 2018 at 7:4

9

Solved

I need to get the length of a .wav file. Using: sox output.wav -n stat Gives: Samples read: 449718 Length (seconds): 28.107375 Scaled by: 2147483647.0 Maximum amplitude: 0.999969 Minimum ampli...
Lunette asked 26/12, 2010 at 15:36

1

I have created, at the moment, a simple script that generates several beeps with synusoids and that after concatenates them, to have more complex sounds. I used a bash script to do that, as I...
Quattlebaum asked 5/9, 2017 at 14:10

1

Solved

I have tried to convert pcm files to wav, but keep getting a FAIL format error, no matter how many (or few) options I try. I am wondering what I need to do to get the file handler for pcm files. In...
Ceasar asked 11/7, 2018 at 19:16

2

Solved

So, I am writing a speech recognition program. To do that I downloaded 400MB of data from TIMIT. When I inteded to read the wav files (I tried two libraries) as follow: import scipy.io.wavfile as ...
Cocoon asked 18/11, 2017 at 19:29

1

Solved

I am building a simple GUI with Raspberry, TKinter, and sox, using python 3. I want to play a tone, generated on the fly, every time a button in the GUI is pressed. Here's the code: from Tkinter i...
Wacky asked 13/2, 2018 at 15:16

2

Solved

I have an audio file. I have a bunch of [start, end] time stamp segments. WHAT I WANT TO ACHIEVE: Say audio is 6:00 minutes long. Segments I have are : [[0.0,4.0], [8.0,12.0], [16.0,20.0], [24.0,...
Tatary asked 9/1, 2018 at 4:45

1

Solved

I found out that I can use SoX's play file.wav stat -freq to generate a table of levels against frequencies for a file. However, it seems to run in real time, i.e. takes as long to complete as ...
Viable asked 24/11, 2017 at 7:29

2

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...
Cowpox asked 23/11, 2017 at 10:12

2

I want to exchange 16kHz pcm --> 48kHz wav using sox. however, pcm file isn't applied in sox. so, I just changed pcm to raw, and then sox -r 16000 -e signed -b 16 -c 1 test.raw -r 48000 out.wav ...
Sign asked 8/4, 2014 at 10:35

1

Solved

I currently have a list of file for which I need to change the sample rate for. I'recently been aware that this is possible using sox But when I try do it, I keep on getting a error message that ...
Steeple asked 6/8, 2017 at 23:28

4

I have a directory with many folders containing hundreds of .SPH files. I need to convert all .SPH files into .wav format. I have adopted the following code: cd %~dp0 mkdir converted FOR %%A IN (...
Fescue asked 4/9, 2013 at 18:16

© 2022 - 2024 — McMap. All rights reserved.