-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Summary
Assume we load part of an audio file (e.g. .wav). In this case, we must load complete data using scipy.io.wavfile.read and then clip using the slice operation.
from scipy.io import wavfile
start, end = 0, 100
sample_rate, waveform = wavfile.read("audio.wav")
waveform = waveform[start: end]Loading full audio is time-consuming, so implement I/O functions.
- Load
.wav - Write
.wav - Load other format files.
Alternatives
soundfilewavfile
Metadata
Metadata
Assignees
Labels
No labels