Best way to speed match two different audio sources?

Get help or discuss anything relating to audio/video software & hardware
User avatar
steepien
Posts: 127
Joined: Tue Apr 20, 2021 5:38 pm
Location: Pennsylvania, USA
Has thanked: 243 times
Been thanked: 226 times

Re: Best way to speed match two different audio sources?

Post by steepien »

Thank you all, csnyfan's tool should be what I'm looking for. :)
Tex wrote: Sun Oct 27, 2024 2:42 am I find a common starting point between both wav files and split both files at that point. Then I slide the remaining part around until I find a common point near the end of file and split the wavs there. That gives me two section that represent the same content but slightly different lengths. Then I write down the sample length of one and resample the other to that same length. Then I resample the other bits and butt them back together and there you have it. I usually export that work to a new speed corrected file.
That's what I usually do as well, it does work most of the time but the issue is when one of the tracks fluctuates in speed. That's the issue I had with syncing Nagra tapes, I had a track where I was trying to sync vocals from the Nagra to stereo multitrack backing, and the vocals were drifting in and out of sync just enough that it was noticable upon listening.
Tex wrote: Sun Oct 27, 2024 2:42 am How i find the common is just listening with one file panned left and one panned right through earphones and shift the audio back and forth until something common sounds centered. I also look at the waveform and match the exact peaks.
This is a good idea thank you, I usually go purely by visual but listening for something centered is smart.
Lord Reith wrote: Tue Oct 29, 2024 10:54 pm I would add that I only use this tool as a last resort. The normal way I line up two sources is:

- line them up roughly in audacity
- zoom in to seconds resolution and find a point towards the beginning where they appear to correspond
- zoom in to the millisecond level and find a point where they match exactly, and align at that point
- mark that spot by pressing Cntrl + I
- highlight that section and use "adjust speed" to get a similar point near the end to line up, using Cntrl + Z to undo each time until I get it right
- undo and apply that speed change to the whole track and align it at the point described in step 3
Ah, that's what I used to do too, but I actually found there is an easier way! Instead of using trial and error with the change speed tool you can Ctrl+I a common point at the end of the song as well, then highlight the clip to see it's length. Then in the change speed tool you can input your desired length, it'll tell you the percentage change, and then copy that number and apply it to the whole track. You can also input the desired length in samples as well for extreme precision, but that doesn't work properly in versions of Audacity later than 3.2 unfortunately. Not a big deal most of the time but it can be an issue depending on what you're doing.
- alex (she/her)
peace and love peace and love <3
User avatar
Lord Reith
Posts: 5505
Joined: Thu Feb 18, 2021 8:22 am
Location: BBC House
Has thanked: 260 times
Been thanked: 6714 times

Re: Best way to speed match two different audio sources?

Post by Lord Reith »

steepien wrote: Wed Oct 30, 2024 12:32 am Ah, that's what I used to do too, but I actually found there is an easier way! Instead of using trial and error with the change speed tool you can Ctrl+I a common point at the end of the song as well, then highlight the clip to see it's length. Then in the change speed tool you can input your desired length, it'll tell you the percentage change, and then copy that number and apply it to the whole track. You can also input the desired length in samples as well for extreme precision
Duh. Wish someone had told me that ten years ago!

In other news, an AI centre extract has just shown up on MVSEPdotcom. I gave it a test and it works better than traditional centre extractors.
Women there don't treat you mean, in Abilene
nickotina
Posts: 119
Joined: Fri Jan 28, 2022 8:08 am
Has thanked: 70 times
Been thanked: 28 times

Re: Best way to speed match two different audio sources?

Post by nickotina »

Lord Reith wrote: Wed Oct 30, 2024 4:50 am an AI centre extract has just shown up on MVSEPdotcom.
Oh wow, thanks for pointing out!
I am trying out every possible way to do this, without ever being satisfied. Wondering how in the world you managed to do this for your excellent Bowl remixes, all those years ago...
(And I expect you to protect your trickeries as any magician would do :mrgreen: )
Bambam34
Posts: 216
Joined: Sat Dec 30, 2023 9:31 am
Has thanked: 1 time
Been thanked: 270 times

Re: Best way to speed match two different audio sources?

Post by Bambam34 »

I Can't Get pyaudiorestroation To Install properly As It Keeps Asking to Install Freetype.dll But I Downloaded The DLL But Cannot Find Where to put it To be Recognised.
harrylime
Posts: 470
Joined: Sat Feb 19, 2022 4:56 pm
Has thanked: 164 times
Been thanked: 153 times

Re: Best way to speed match two different audio sources?

Post by harrylime »

Bambam34 wrote: Wed Oct 30, 2024 8:11 am I Can't Get pyaudiorestroation To Install properly As It Keeps Asking to Install Freetype.dll But I Downloaded The DLL But Cannot Find Where to put it To be Recognised.
Assuming you have Windows installed in C:\Windows, place it in C:\WINDOWS\system32
Bambam34
Posts: 216
Joined: Sat Dec 30, 2023 9:31 am
Has thanked: 1 time
Been thanked: 270 times

Re: Best way to speed match two different audio sources?

Post by Bambam34 »

oh Ok
Bambam34
Posts: 216
Joined: Sat Dec 30, 2023 9:31 am
Has thanked: 1 time
Been thanked: 270 times

Re: Best way to speed match two different audio sources?

Post by Bambam34 »

It Still Didn't Work
User avatar
Tex
Posts: 1632
Joined: Fri Feb 19, 2021 1:12 am
Location: Texas
Has thanked: 8 times
Been thanked: 1111 times

Re: Best way to speed match two different audio sources?

Post by Tex »

Lord Reith wrote: Wed Oct 30, 2024 4:50 am
In other news, an AI centre extract has just shown up on MVSEPdotcom. I gave it a test and it works better than traditional centre extractors.
<Tex intensifies>
Bambam34
Posts: 216
Joined: Sat Dec 30, 2023 9:31 am
Has thanked: 1 time
Been thanked: 270 times

Re: Best way to speed match two different audio sources?

Post by Bambam34 »

harrylime wrote: Wed Oct 30, 2024 9:15 am
Bambam34 wrote: Wed Oct 30, 2024 8:11 am I Can't Get pyaudiorestroation To Install properly As It Keeps Asking to Install Freetype.dll But I Downloaded The DLL But Cannot Find Where to put it To be Recognised.
Assuming you have Windows installed in C:\Windows, place it in C:\WINDOWS\system32
This Is the Error From it
Collecting pyqt5 (from -r requirements.txt (line 1))
Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
Collecting soundfile (from -r requirements.txt (line 2))
Using cached soundfile-0.12.1-py2.py3-none-win_amd64.whl.metadata (14 kB)
Collecting matplotlib==2.2.5 (from -r requirements.txt (line 3))
Using cached matplotlib-2.2.5.tar.gz (36.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [83 lines of output]
<string>:9: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

********************************************************************************
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

By 2024-Nov-15, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
********************************************************************************

!!
<string>:24: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

********************************************************************************
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

By 2024-Nov-15, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
********************************************************************************

!!
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [2.2.5]
python: yes [3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023,
17:20:36) [MSC v.1929 64 bit (AMD64)]]
platform: yes [win32]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [not found. pip may install it below.]
install_requires: yes [handled by setuptools]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype
(freetype2\ft2build.h) could not be found. You may
need to install the development package.]
png: no [The C/C++ header for png (png.h) could not be
found. You may need to install the development
package.]
qhull: yes [pkg-config information for 'libqhull' could not
be found. Using local copy.]

OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: no [PySide2 not found; PyQt5 not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairocffi or pycairo not found]
windowing: yes [installing]

OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: no
latex: no
pdftops: no

OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]

============================================================================
* The following required packages can not be built:
* freetype, png
* Please check http://gnuwin32.sourceforge.net/packa
* ges/freetype.htm for instructions to install
* freetype
* Please check http://gnuwin32.sourceforge.net/packa
* ges/libpng.htm for instructions to install png
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
UPDATE: I Got It Working By Changing The Python Version To Version 3.7.9
harrylime
Posts: 470
Joined: Sat Feb 19, 2022 4:56 pm
Has thanked: 164 times
Been thanked: 153 times

Re: Best way to speed match two different audio sources?

Post by harrylime »

Bambam34 wrote: Wed Oct 30, 2024 4:30 pm UPDATE: I Got It Working By Changing The Python Version To Version 3.7.9
This comes from matplotlib being built instead of plugged in, which requires a ready-to-use release, which doesn't exist yet for Python 3.13 so I'm guessing you were already using that newest version. Mind you that Python 3.7 is already 6 years old, so I would advise to find a more recent version that will still work, foremost that would be 3.12 (released a year ago).
Post Reply