Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement I/O functions #195

Open
2 of 3 tasks
tky823 opened this issue Dec 8, 2022 · 0 comments
Open
2 of 3 tasks

Implement I/O functions #195

tky823 opened this issue Dec 8, 2022 · 0 comments

Comments

@tky823
Copy link
Owner

tky823 commented Dec 8, 2022

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

  • soundfile
  • wavfile
@tky823 tky823 mentioned this issue Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant