MCPcopy Create free account
hub / github.com/NVIDIA/DALI / create_test_files

Function create_test_files

dali/test/python/decoder/test_audio.py:34–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def create_test_files():
35 for i in range(len(names)):
36 wave = generate_waveforms(lengths[i], freqs[i])
37 wave = (wave * 32767).round().astype(np.int16)
38 scipy.io.wavfile.write(names[i], rates[i], wave)
39
40
41create_test_files()

Callers 1

test_audio.pyFile · 0.85

Calls 2

generate_waveformsFunction · 0.90
roundMethod · 0.80

Tested by

no test coverage detected