create_audio_files()

audformat.testing.create_audio_files(db, *, sample_generator=None, sampling_rate=16000, channels=1, file_duration='60s')[source]

Create audio files for a database.

By default, empty files are created. A sample generator function can be passed to generate the samples. The function gets as input a time stamp and should create a sample in the amplitude range [-1..1].

Parameters
Raises