Skip to content

tybian/riff_wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple RIFF WAVE IO Helper

This is a simple helper class to read RIFF WAVE files. It is written in Python and is intended to be used as a learning tool for understanding the RIFF WAVE file format. Most importantly, the main function is to parse the markers which is created by ocenaudio.

Usage

from riff_wave import WaveContainer

with open('test.wav', 'rb') as f:
    riff_wave = WaveContainer.from_stream(f)
    
print(f'{riff_wave.fmt = }')
print(f'{riff_wave.duration = }')

TODO

  • parse basic wave headers: fmt.
  • parse wave bytes to np.ndarray.
  • parse markers created by ocenaudio.
  • update markers and save to new .wav file.

References

About

a simple helper class to read RIFF WAVE files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages