Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found a very effective audio sync tool #6

Open
TiankangXie opened this issue Jan 13, 2023 · 0 comments
Open

Found a very effective audio sync tool #6

TiankangXie opened this issue Jan 13, 2023 · 0 comments

Comments

@TiankangXie
Copy link

TiankangXie commented Jan 13, 2023

Just wanted to share with you and the lab about this useful python toolbox on audio sync: https://github.com/benfmiller/audalign
Very effective on my FNL alignment tasks.

import audalign as ad

fingerprint_rec = ad.FingerprintRecognizer()
correlation_rec = ad.CorrelationRecognizer()
cor_spec_rec = ad.CorrelationSpectrogramRecognizer()
visual_rec = ad.VisualRecognizer()

fingerprint_rec.config.set_accuracy(3)

# we want to align the two audio files: s18_chunk7.wav with s18_audio.wav 
results = ad.align_files("/Storage/Projects/iEEG/aligning_folder/s18_chunk7.wav", "/Storage/Projects/iEEG/aligning_folder/s18_audio.wav", recognizer=fingerprint_rec)

# results can then be sent to fine_align
fine_results = ad.fine_align(
    results,
    recognizer=cor_spec_rec,
)

print(fine_results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant