Giter VIP home page Giter VIP logo

pyaudiorestoration's Introduction

Python Audio Restoration Suite

A set of tools to restore audio quality from a variety of old analog sources, such as tape, cassettes, acetates and vinyl.

Features

  • Wow & Flutter Removal
  • Speed matching to hum frequency
  • EQ matching with differential EQ
  • Sub-sample accurate Spectral Temporal Alignment
  • Automatic Dropout Restoration
  • Spectral Expander / Decompressor

Installation

  1. You need to install a suitable version of Python first.

    • Recommended Python version:
      • at least 3.7+
      • tested on 3.79
      • 3.10 seems to support all dependencies; not tested
      • 3.11 does not support all dependencies as of 2023-04-21
    • Use 64-bit python as 32-bit python doesn't work for all dependencies.
    • Make sure you check Add Python to PATH during installation.
  2. Download pyaudiorestoration. To do so, click the <> Code button at the right, then Download ZIP. Unzip to a folder of your choice.

  3. Install the required Python modules using pip.

    • To do so, open a command prompt with admin rights inside the pyaudiorestoration folder you have unzipped.
    • Run python -m pip install --upgrade pip to make sure your pip is up to date.
    • Run pip install -r requirements.txt to install the dependencies.
  4. If you have a supported GPU, install pytorch with CUDA to massively speed up slow calculations by running them on the GPU.

  5. In some cases, you have to troubleshoot the installation of some dependencies. Here is a list of known issues:

    • freetype-py may have trouble to downloading freetype.dll. In that case, download it from FreeType and place it in a folder included in your system's path.

How to Use

See the wiki for detailed instructions for the individual tools.

pyaudiorestoration's People

Contributors

hendrix-zt2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyaudiorestoration's Issues

pyaudiorestoration suite

Hallo HENDRIX-ZT2

And a bucketload of thanks for giving the opportunity to install youer apps through python as much as a learning curve, didn't know until a couple of days ago that you could download python cased stuff via the command prompt as online, I interface mainly within Windows 10. Got a question and hoping you can help : So after installing the detail at https://github.com/HENDRIX-ZT2/pyaudiorestoration/wiki, I'm really very baffled as to how to open up any of the apps to use, am well particularly interested in the Automatic Dropout Restoration, Wow & Flutter Removal and Automatic Speed Matching Using Tape Hum apps but've no idea how to, for example open the Automatic Dropout Restoration as seen at https://github.com/HENDRIX-ZT2/pyaudiorestoration/wiki/Automatic-Dropout-Restoration, could you give an idea I"d very very grateful, thanks, nokkensnaut
2803211
2803212

Just saying hello

Thanks so much for your efforts on this. You appear to have written just the software I need for quite a hairy flutter issue within newly digitized NASA Apollo archival recordings. I'd like to discuss in more detail. Please contact me at [email protected] if you're interested.

Can't get waveform to display in GUI

Using MacOS with Python 3.6.6 installed. Have double checked all the dependencies listed have been installed.

When I open a file the waveform does not display. The audio file is def loaded as I can hear it play.
I've uploaded a text file of the errors I'm getting - any ideas as to my problem?

screenshot
errors.txt

[HELP] Installation problems (Windows/Linux)

Hi there, we would like to use the software to participate in an online restoration / declip competition finally, although we have followed all the instructions, we have not been able to make it work either on Windows or - even worst - on Linux.

Is it possible to implement a step-by-step guide (including all needed - working - components download links) to make it run?

Thanks in advance.

note: we strongly suggest you to check out other Python-based projects (such as @cdgriffith 's FastFlix) to get an "inspiration" on how it should be released for different platforms.

Hope that inspires.

Cannot start pyrespeeder_gui.py

I'm on Debian 10. I've installed most of the modules from pip. Still getting this when trying to execute python3 pyrespeeder_cmd.py:

Traceback (most recent call last):
  File "pyrespeeder_gui.py", line 213, in <module>
    widgets.startup( MainWindow )
  File "/home/olaf/bin/pyaudiorestoration/util/widgets.py", line 19, in startup
    win = cls()
  File "pyrespeeder_gui.py", line 13, in __init__
    widgets.MainWindow.__init__(self, "pyrespeeder", widgets.ParamWidget, Canvas, 1)
  File "/home/olaf/bin/pyaudiorestoration/util/widgets.py", line 565, in __init__
    self.canvas = canvas_widget(parent=self)
  File "pyrespeeder_gui.py", line 36, in __init__
    spectrum.SpectrumCanvas.__init__(self, spectra_colors=(None,), y_axis='Octaves' )
  File "/home/olaf/bin/pyaudiorestoration/util/spectrum.py", line 213, in __init__
    self.spec_yaxis = vispy_ext.ExtAxisWidget(orientation='left', axis_label='Hz', axis_font_size=8, axis_label_margin=35, tick_label_margin=5, scale_type="logarithmic")
  File "/home/olaf/bin/pyaudiorestoration/util/vispy_ext.py", line 216, in __init__
    self.axis = ExtAxisVisual(**kwargs)
  File "/home/olaf/bin/pyaudiorestoration/util/vispy_ext.py", line 251, in __init__
    self.axis_color = axis_color
  File "/usr/local/lib/python3.7/dist-packages/vispy/util/frozen.py", line 17, in __setattr__
    object.__setattr__(self, key, value)
  File "/usr/local/lib/python3.7/dist-packages/vispy/visuals/axis.py", line 143, in axis_color
    self._line.set_data(color=value)
AttributeError: 'ExtAxisVisual' object has no attribute '_line'

Some module version mismatch?

Adjusting target frequency for the whole file

It would be great to have some kind of target frequency adjustment that affects all traces at once, not each trace separately in pyrespeeder. In other words, to have a way to pitch up and down the whole file.

Re-Installation?

Hey Mr. Hendrix,

THANK YOU so much for your continuing work to update the Pyaudiorestoration suite...I tried a few months ago to install and came close, but still couldn't get it to launch...I really want to get this working...

Do I need to un-install any previous components before trying your new updated code?

Or should I just re-install over what is there now? I have Python 3.8.5 installed on Win10.

Thanks for your help and for your work on these great set of tools!

Regards,
Mike

Memory issues with pyrespeeder

Hi! I've tried using pyrespeeder on some pretty big files, it worked surprisingly fast, though I believe that it's not flushing old FFT analysis results from the memory, since changing FFT settings for a couple of times (and waiting for pyrespeeder to reanalyze my file) quickly got me to memory usage of ~15GB.

Difficulties getting this to run, how about a container?

It seems to be very difficult to get this to run. I've been trying all day on Linux and a bit on Windows. I keep running up against all kinds of version incompatibilities between different libraries.

Could you make a proper distribution for this or perhaps a container image to make it quick and easy for people to get up and running?

Filtering Traces

Either via EQ to focus on desired wow/flutter freq range, or via moving average. EQ is probably better, but harder to implement. This could cooperate with the RPM selector.

Multiple Y pieces & mel transform

The mel transform must take the preceding (STT) transforms into account, so that the second Y piece is not treated as if it started at 0 Hz.

pyrespeeder_gui error at resampling

First, thanks for the software!

When trying to resample a file the following error appears:

File "util/resampling.py", line 124:
def speed_to_pos(sampletimes, speeds, num_imput_samples):

# we can fine tune it to find the exact output sample
end = out_ind + np.argmin(np.abs(sample_at-num_imput_samples))
^

During: lowering "$298binary_subtract.8 = sample_at - num_imput_samples" at /media/nacho/Seagate Expansion Drive/FING/Doctorado/Audio Restoration Tools/pyaudiorestoration-master/pyaudiorestoration/util/resampling.py (124)

Running...
Python: 3.8.10 (default, Sep 28 2021, 16:10:42)
[GCC 9.3.0]
Numpy: 1.19.1
Vispy: 0.6.4

GUI for batch operations

Essentially, run the GUI without a spectrum for really long files. Possibly merge the block resampler from batch mode into the main code, but first see that it is really up to par.

Can't get pyrespeeder to work

Hi, I've installed the package, and all the other tools run smoothly. But pyrespeeder throws an error and closes down when I either try to resample a file after drawing a speed curve on it, or reload a file that includes a previously saved speed curve. This is the error report in the cmd window:

C:\pyaudiorest\pyaudiorestoration>python pyrespeeder_gui.py
Running...
Python: 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit
(AMD64)]
Numpy: 1.20.3
Vispy: 0.6.6
Reading J:/Import/freqrange.wav
storing new fft ('J:/Import/freqrange.wav', 2048, 0, 512)
Reading speed data
Reading regression data
Retrieving FFT from processing thread
C:\pyaudiorest\pyaudiorestoration\util\markers.py:172: RuntimeWarning: Mean of e
mpty slice
mean_with_nans = np.nanmean(out, axis=1)
C:\pyaudiorest\pyaudiorestoration\util\markers.py:173: RuntimeWarning: Mean of e
mpty slice
offset = np.nanmean(mean_with_nans - self.speed)
C:\pyaudiorest\pyaudiorestoration\util\markers.py:380: RuntimeWarning: Mean of e
mpty slice
mean_with_nans = np.nanmean(out, axis=1)
Using measured speed
Resampling 'freqrange.wav'... Linear 50 [0]
WARNING: Traceback (most recent call last):
File "C:\pyaudiorest\pyaudiorestoration\util\qt_threads.py", line 17, in run
resampling.run(prog_sig=self, **self.settings)
File "C:\pyaudiorest\pyaudiorestoration\util\resampling.py", line 171, in run
sample_at = speed_to_pos(sampletimes, speeds, len(signal))
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\dispatcher.py", line 501, in _compile_for_args
raise e
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\dispatcher.py", line 434, in _compile_for_args
return_val = self.compile(tuple(argtypes))
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\dispatcher.py", line 979, in compile
cres = self._compiler.compile(args, return_type)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\dispatcher.py", line 141, in compile
status, retval = self._compile_cached(args, return_type)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\dispatcher.py", line 155, in _compile_cached
retval = self._compile_core(args, return_type)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\dispatcher.py", line 168, in _compile_core
cres = compiler.compile_extra(self.targetdescr.typing_context,
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 686, in compile_extra
return pipeline.compile_extra(func)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 428, in compile_extra
return self._compile_bytecode()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 492, in _compile_bytecode
return self._compile_core()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 471, in _compile_core
raise e
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 462, in _compile_core
pm.run(self.state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 343, in run
raise patched_exception
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 334, in run
self._runPass(idx, pass_inst, state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 289, in _runPass
mutated |= check(pss.run_pass, internal_state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 262, in check
mangled = func(compiler_state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\object_mode_passes.py", line 53, in run_pass
cres = self._frontend_looplift(state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\object_mode_passes.py", line 40, in _frontend_looplift
cres = compile_ir(state.typingctx, state.targetctx, main,
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 724, in compile_ir
norw_cres = compile_local(func_ir.copy(), norw_flags)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 720, in compile_local
return pipeline.compile_ir(func_ir=the_ir, lifted=lifted,
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 438, in compile_ir
return self._compile_ir()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 499, in _compile_ir
return self._compile_core()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 471, in _compile_core
raise e
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler.py", line 462, in _compile_core
pm.run(self.state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 343, in run
raise patched_exception
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 334, in run
self._runPass(idx, pass_inst, state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 289, in _runPass
mutated |= check(pss.run_pass, internal_state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\compiler_machinery.py", line 262, in check
mangled = func(compiler_state)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\object_mode_passes.py", line 120, in run_pass
lowered = backend_object_mode()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\object_mode_passes.py", line 115, in backend_object_mode
return self._py_lowering_stage(state.targetctx,
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\object_mode_passes.py", line 78, in _py_lowering_stage
lower.lower()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\lowering.py", line 138, in lower
self.lower_normal_function(self.fndesc)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\lowering.py", line 192, in lower_normal_function
entry_block_tail = self.lower_function_body()
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\lowering.py", line 221, in lower_function_body
self.lower_block(block)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\lowering.py", line 235, in lower_block
self.lower_inst(inst)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\pylowering.py", line 88, in lower_inst
value = self.lower_assign(inst)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\pylowering.py", line 191, in lower_assign
return self.lower_expr(value)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\pylowering.py", line 263, in lower_expr
return self.lower_binop(expr, expr.fn, inplace=False)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\pylowering.py", line 245, in lower_binop
lhs = self.loadvar(expr.lhs.name)
File "C:\Users\Win7 Pro x64\AppData\Local\Programs\Python\Python38\lib\site-pa
ckages\numba\core\pylowering.py", line 567, in loadvar
assert name in self._live_vars, name
AssertionError: Failed in object mode pipeline (step: object mode frontend)
Failed in object mode pipeline (step: object mode backend)
sample_at

Can you help me? From what I read it is clearly working for some people, so it must be something I am doing wrong....

Chris

SO CLOSE....Please HELP!!!

Dear Mr. Hendrix-ZT2,

I think I am closer than I have been before to installing this great software...I have installed Microsoft C++ 14.0230260....Is that close enough to 14.0? If you have time could you look at the CMD readout and tell me what I'm doing wrong....Thank you so much for any help you can provide!

Warmest Regards,

Mike

C:\PY>python setup.py install
running install
running bdist_egg
running egg_info
writing pyaudiorestoration.egg-info\PKG-INFO
writing dependency_links to pyaudiorestoration.egg-info\dependency_links.txt
writing requirements to pyaudiorestoration.egg-info\requires.txt
writing top-level names to pyaudiorestoration.egg-info\top_level.txt
package init file 'pyaudiorestoration_init_.py' not found (or not a regular file)
reading manifest file 'pyaudiorestoration.egg-info\SOURCES.txt'
writing manifest file 'pyaudiorestoration.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
creating build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\decompressor_cmd.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\difeq_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\dropouts_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\expander_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\hpss_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\humspeed_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\pypan_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\pyrespeeder_cmd.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\pyrespeeder_gui.py -> build\bdist.win32\egg\pyaudiorestoration
copying build\lib\pyaudiorestoration\pytapesynch_gui.py -> build\bdist.win32\egg\pyaudiorestoration
byte-compiling build\bdist.win32\egg\pyaudiorestoration\decompressor_cmd.py to decompressor_cmd.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\difeq_gui.py to difeq_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\dropouts_gui.py to dropouts_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\expander_gui.py to expander_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\hpss_gui.py to hpss_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\humspeed_gui.py to humspeed_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\pypan_gui.py to pypan_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\pyrespeeder_cmd.py to pyrespeeder_cmd.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\pyrespeeder_gui.py to pyrespeeder_gui.cpython-38.pyc
byte-compiling build\bdist.win32\egg\pyaudiorestoration\pytapesynch_gui.py to pytapesynch_gui.cpython-38.pyc
creating build\bdist.win32\egg\EGG-INFO
copying pyaudiorestoration.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying pyaudiorestoration.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying pyaudiorestoration.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying pyaudiorestoration.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying pyaudiorestoration.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\pyaudiorestoration-1.0-py3.8.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing pyaudiorestoration-1.0-py3.8.egg
Removing c:\py\lib\site-packages\pyaudiorestoration-1.0-py3.8.egg
Copying pyaudiorestoration-1.0-py3.8.egg to c:\py\lib\site-packages
pyaudiorestoration 1.0 is already the active version in easy-install.pth

Installed c:\py\lib\site-packages\pyaudiorestoration-1.0-py3.8.egg
Processing dependencies for pyaudiorestoration==1.0
Searching for pyfftw
Reading https://pypi.org/simple/pyfftw/
Downloading https://files.pythonhosted.org/packages/18/a1/5eb99c183af0a49bf632fed3260a6cad3f7978bb19fd661a573d3728a986/pyFFTW-0.13.0.tar.gz#sha256=da85102405c0bd95d57eb19e99b01a0729d8406cb204c3900894b873784253da
Best match: pyFFTW 0.13.0
Processing pyFFTW-0.13.0.tar.gz
Writing C:\Users\mike\AppData\Local\Temp\easy_install-t5md1op7\pyFFTW-0.13.0\setup.cfg
Running pyFFTW-0.13.0\setup.py -q bdist_egg --dist-dir C:\Users\mike\AppData\Local\Temp\easy_install-t5md1op7\pyFFTW-0.13.0\egg-dist-tmp-2aw8astm
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
warning: no files found matching 'CHANGELOG.md'
warning: no files found matching 'README.rst'
warning: no files found matching 'test*.py'
no previously-included directories found matching 'docs_build'
no previously-included directories found matching 'build'
no previously-included directories found matching '_pycache_'
warning: no previously-included files matching '
.py[cod]' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files matching '
.dll' found anywhere in distribution
warning: no previously-included files matching '.dylib' found anywhere in distribution
warning: no previously-included files matching '
~' found anywhere in distribution
warning: no previously-included files matching '.bak' found anywhere in distribution
warning: no previously-included files matching '
.swp' found anywhere in distribution
UPDATING build\lib.win32-3.8\pyfftw/_version.py
set build\lib.win32-3.8\pyfftw/_version.py to '0.13.0'
DEBUG:main:Link FFTW dynamically
DEBUG:main:Compiler include_dirs: ['C:\PY\include', 'C:\PY\include']
error: Setup script exited with error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

Cannot user pyrespeeder

Hi,

I used to use pyrespeeder successfully. That is an incredible tool.

But on my fresh new computer (with Python 3.9.6), when I try to resample a wav file (Ctrl+R), I get this error :
numba.core.errors.LoweringError: Failed in object mode pipeline (step: object mode fronted)
sample_at

File "util\resampling.py", line 118:
def speed_to_pos(sampletimes, speeds, num_input_samples):

During: lowering "$298binary_subtract.8 = sample_at - num_imput_samples" at C:\...\util\resampling.py (118)

Could you please help me to fix this issue ?

No Waveforms in Gui - Windows 10 - Run from pycharm after issues installing from cmd

hi there i have installed all requirements and have got setup.py to finally work after using Pycharm virtual env as a work around (another issue to do with windows/appdata acess levels not allowing changes..

but i still have no waveforms appearing in the gui?

I am reading this set of errors when I run which i assume is something to do with the lack of waveforms? - but I am unsure how to fix them? - i am a bit of a programming noob i'm afraid and required help just to get to this step

WARNING: Traceback (most recent call last):
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\pyaudiorestoration\pyrespeeder_gui.py", line 265, in
widgets.startup(MainWindow)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\pyaudiorestoration\util\widgets.py", line 31, in startup
win.show()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\app\backends_qt.py", line 567, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\app\backends_qt.py", line 567, in event
out = super(QtBaseCanvasBackend, self).event(ev)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\app\backends_qt.py", line 903, in paintGL
self._vispy_canvas.events.draw(region=None)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\util\event.py", line 453, in call
self._invoke_callback(cb, event)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
_handle_exception(self.ignore_callback_errors,
<< caught exception here: >>
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\util\event.py", line 469, in _invoke_callback
cb(event)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\canvas.py", line 218, in on_draw
self._draw_scene()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\canvas.py", line 277, in _draw_scene
self.draw_visual(self.scene)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\canvas.py", line 315, in draw_visual
node.draw()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\scene\visuals.py", line 103, in draw
self._visual_superclass.draw(self)
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\visuals\visual.py", line 605, in draw
v.draw()
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\visuals\visual.py", line 600, in draw
if self._prepare_draw(view=self) is False:
File "C:\Program Files\pyrestoration\pyaudiorestoration-master\venv\lib\site-packages\vispy\visuals\axis.py", line 257, in _prepare_draw
self._axis_label_vis.rotation = self._rotation_angle
AttributeError: 'ExtAxisVisual' object has no attribute '_axis_label_vis'
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2ad412e0e50>> for DrawEvent
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2ad412e0e50>> repeat 2
ERROR: Invoking <bound method SceneCanvas.on_draw of <Canvas (PyQt5) at 0x2ad412e0e50>> repeat 4

any help would be useful - many thanks

Audio playback

Probably with pyaudio. Allow playback of raw and resampled source. Add a playback cursor to the spectrum. Play/pause via spacebar.

Can't get pyaudiorestoration to function properly

Hello, I am pretty new to using Python (or programming languages in general) so apologies if my questions come off as "noobish", but I've been having trouble getting the various programs in the pyaudiorestoration suite to function and was hoping you could help.

To preface I'm using Windows 8.1 and Python 3.7.

I followed the instructions as best I could on the ReadMe, and did as follows:

Installed Python via custom install options to create an environmental variable for Python during install
Opened the Windows Command Prompt and changed directory from default to the folder Python was installed in (in my case it's C:\Users\REALNAME1_000\AppData\Local\Programs\Python\Python37-32), and then installed the various pip dependencies noted in the ReadMe, currently with the exception of pyFFTW. All installations (other than pyFFTW' I think it's still having problems with Python 3.7 like 3.6 but I have not tested it) were successful.
I then unzipped the latest version of pyaudiorestoration and left the folder in the place it was unzipped to (C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master)

However, I have not been successful in actually getting any of the programs to function properly
For pyrespeeder I tend to get this:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python pyrespeeder_gui.py
Warning: pyfftw is not installed. Run 'pip install pyfftw' to speed up spectrogram generation.
file has changed!
Reading E:/Music/Train #58 Test.wav
storing new fft 2048
Reading speed data
Reading regression data
Fallback to numpy fftpack!
Retrieving FFT from processing thread
INFO: Program has unset variables: {'texture2D_LUT'}
C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master\util\widgets.py:441: RuntimeWarning: divide by zero encountered in log2
  h = round(12*np.log2(freq/C0))
C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master\util\widgets.py:442: RuntimeWarning: invalid value encountered in double_scalars
  octave = int(h // 12)

For humspeed it crashes, however looking at cmd right before it does I get:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python humspeed_gui.py
Traceback (most recent call last):
  File “humspeed_gui.py”, line 12, in <module>
   from matplotlab.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
ModuleNotFoundError: No module named ‘matplotlib’

For dropouts it also crashes but again looking at the cmd right before it does I get:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python dropouts_gui.py
Traceback (most recent call last):
  File “dropouts_gui.py”, line 5, in <module>
   Import librosa
ModuleNotFoundError: No module named ‘librosa’

For difeq I get much the same as I did for humspeed, but here it is regardless:

C:\Users\REALNAME1_000\Documents\pyaudiorestoration-master\pyaudiorestoration-master>python difeq_gui.py
Traceback (most recent call last):
  File “difeq_gui.py”, line 7, in <module>
   from matplotlab.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
ModuleNotFoundError: No module named ‘matplotlib’

I am at a complete loss as to how I should proceed from here. Can you provide any assistance?

Thanks

Documentation for Spectral Temporal Alignment

Hi,

I really like your amazing set of tools, it is the most useful I ever used to restore old bootlegs records.
Thank you very much for sharing this!

I'm very interested in your Spectral Temporal Alignement tool but I don't understand how to use it and I didn't find any explanations on the wiki pages.
Could you please post some documentation?

Thank you again!

Add inspector label

Just to inform the user, have a label show the time and Hz the cursor is at.

Youtube instructional video?

It sure would be helpful in order to get an understanding of how to use this. Any chance there's one already out there?

Recommended working versions/dependencies ?

Hi, first of all congratulations on your project! As a long time user of Izotope RX* and Celemony Capstan it is good to see something different being worked on. I have spent several days now trying to create a working installation of pyaudiorestoration on my computer(s).

I was wondering if there is a more specific guide on the versions of python and the versions of the associated dependent packages that will/should work? All of my attempts to try the software have been on apple mac (intel and Silicon) and whilst I can get to the point where I can load an audio file and see the waveform, trace WOW etc, when it comes to resampling the file, python keeps crashing. There are also some problematic compatibility challenges I am finding with Vispy in particular and the only version I can seem to get working is 0.6.6 which then constrains my options in terms of python versions supported.

I know this is not a commercial product (yet!) so support is not something I would expect but any assistance to point me in the right direction in terms of supported environments would really help. If OSX/Mac is not really a runner that is fine too, I was just hoping I could get the project working to see how it copes with some of the restoration challenges I am facing at the minute.

I have attached a text file detailing the configurations I have tried on my computer to varying degrees of success hoping it may help possibly somebody else who may be hitting the same issues.

Again, congratulations on the project and kind regards,
Tom

pyaudiorestoration-testing.txt
.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.