pseeth

Results 68 comments of pseeth
trafficstars

Yeah it will. Using SoundFile should get rid of off by one errors that this function is a kludge for.

This looks somewhat related to the changes in #53, if you want to take a look at that. Instead of hard-coding defaults for source_time, you can pass in something like...

Can repro. I added some stuff to the script to make it a bit more obvious if anyone else is having a go at this issue: ``` import scaper import...

It seems that type of audio file for the Jackhammer is different from all of the others in an adversarial fashion. ``` before ./soundscape_events/foreground12_jackhammer.wav samplerate: 16000 Hz channels: 1 duration:...

The bug seems to literally be here: https://github.com/justinsalamon/scaper/blob/d0431ec7b091d49709dfce25d149f6dfd0e982c8/scaper/audio.py#L150 The shape of that audio data array is 64000 when writing to the audio file. But then when we write it to...

Tiny demo showing that it's in Soundfile: ``` import soundfile as sf import numpy as np import tempfile _format = 'WAV' _subtype = 'MS_ADPCM' sr = 16000 for l in...

If you look at the current test for ``match_sample_length``, you can see the formats and subtypes that we actually test on (it's not all of them): https://github.com/justinsalamon/scaper/blob/d0431ec7b091d49709dfce25d149f6dfd0e982c8/tests/test_audio.py#L55-L71 So while `WAV`...

After some offline discussion with @jtcramer, I wanted to note for the record that the anomalous files described here *are in UrbanSound8k*. So if you are using UrbanSound8k and Scaper...

Yeah, I'll put in a PR. Can we discuss where the warning should go? Should it go into ``match_sample_length``? It could be predictive, where we check the subtype and format...

Should we do this at init or in a separate function? ``scaper.check_source_material(fg_directory, bg_directory)``. One issue I see with doing it at init is that when I'm generating soundscapes in parallel,...