Beautiful Audio ToolS for interactive data exploration.
It's like pandas for audio.
from bats import AudioView
av = AudioView.from_file('test_wav.wav')
# Describe the per-channel statistics.
av.describe()
# Plot the power of the waveform.
av.plot_power()
# Display an audio player for the span of 3.5 to 7 seconds.
av[3.5:7.0].display()
# Scale the signal and display the audio player.
(av * 0.5).display()
# Get a numpy array of the data with channels last.
array = av[3.5:3.6].data()