Skip to content

Implement I/O functions #195

@tky823

Description

@tky823

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions