question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question - About audio input resampling

See original GitHub issue

Hello, 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
f90commented, Dec 4, 2018

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

0reactions
loretoparisicommented, Dec 4, 2018

Thank you for your help! It makes sense to run everything in the same session! 💯

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found