Answer the question
In order to leave comments, you need to log in
How to fix error in sox module?
I have tried many things and nothing helps.
Here is the error and code:
SoX could not be found!
If you do not have SoX, proceed here:
- - - http://sox.sourceforge.net/ - - -
If you do (or think that you should) have SoX, double-check your
path variables.
This install of SoX cannot process .wav files.
This install of SoX cannot process .wav files.
This install of SoX cannot process .wav files.
Input formats were only specified for 0 out of 2 files.The last 2 files will remain unformatted.
This install of SoX cannot process .wav files.
Traceback (most recent call last):
File "E:\2123123123\123.py", line 9, in <module>
cbn.build(
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\site-packages\sox\combine.py", line 80, in build
_validate_file_formats(input_filepath_list, combine_type)
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\site-packages\sox\combine.py", line 312, in _validate_file_formats
_validate_sample_rates(input_filepath_list, combine_type)
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\site-packages\sox\combine.py", line 321, in _validate_sample_rates
sample_rates = [
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\site-packages\sox\combine.py", line 322, in <listcomp>
file_info.sample_rate(f) for f in input_filepath_list
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\site-packages\sox\file_info.py", line 171, in sample_rate
output = soxi(input_filepath, 'r')
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\site-packages\sox\core.py", line 116, in soxi
shell_output = subprocess.check_output(
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Daniil\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Не удается найти указанный файл
from sox import *
# create combiner
cbn = Combiner()
# pitch shift combined audio up 3 semitones
cbn.pitch(3.0)
# convert output to 8000 Hz stereo
cbn.convert(samplerate=8000, n_channels=2)
# create the output file
cbn.build(
['1.wav', '2.wav'], 'output.wav', 'concatenate'
)
Answer the question
In order to leave comments, you need to log in
Written same - SoX not found! If you haven't installed it - go to sox.sourceforge.net If you have installed it - check your path variables, Twice!)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question