ttslearn.util.example_audio_file
- ttslearn.util.example_audio_file() str [source]
Get the path to an included audio example file.
Examples
import ttslearn from scipy.io import wavfile import matplotlib.pyplot as plt sr, x = wavfile.read(ttslearn.util.example_audio_file()) fig, ax = plt.subplots(figsize=(8,2)) librosa.display.waveshow(x.astype(np.float32), sr, ax=ax)