Question - About audio input resampling
See original GitHub issueHello, according to the util.load method https://github.com/f90/Wave-U-Net/blob/1dd50fdce39edb68c43c85413835a608432070d9/Utils.py#L110
you are loading the audio file through librosa.load but not doing any resampling here, while running a resampling by defaults of sr=22050 with scypy. resample_poly method.
I’m using produce_source_estimates where the audio is loaded like
audio, sr = Utils.load(input_path, sr=None, mono=False)
so it’s not using any resampling by defaults. Any reason for that? In my CNN I have a resampling of 12KHz of the input, so can I do apply this resampling?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How problematic is resampling audio from 44.1 to 48 kHz?
The question thus arises -- if we play a 44.1 kHz audio stream using a 48 kHz DAC, is there any loss of...
Read more >Question about ESS DAC "resample"...
The resampling refers to Asynchronous Sample Rate Conversion or ASRC in short. Yes, it does manipulate the data as in it can no...
Read more >Reading, resampling and writing audio files - MATLAB Answers
I have say, 10 different files in one folder. I need to read them one by one automatically, resample each one and write...
Read more >How to Use Ableton: Resampling - YouTube
https://multiplier. audio - Audio samples for electronic music.How I Make Money in the Music Industry: ...
Read more >Does resampling to low number of samples lead to loss in ...
If I resample the audio, I think that I will lose the high-frequency content. Is my thinking correct?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ah OK, so the classifier is also a Tensorflow model and you want to run it all in one session? In that case you want to keep everything as is, except modify
https://github.com/f90/Wave-U-Net/blob/master/Evaluate.py#L73
where the Wave-U-Net output gets resampled - you can change that so it always gets resampled to 12KHz, and then feed it into your model. Note that the code here actually starts a new TF session each time though - which if you are training your own model seems unnecessary, so you might want to remove that stuff too so both models are in the same persistent session
Thank you for your help! It makes sense to run everything in the same session! 💯