#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import wave

wr = wave.open("./test.wav", mode="rb")

print(wr.readframes(20))   # Read the 20 first frames

print("Num channels:", wr.getnchannels())
print("Sample width:", wr.getsampwidth())
print("Frame rate:", wr.getframerate())
print("Num frames:", wr.getnframes())

wr.close()

@@ -41,16 +41,116 @@
 -8 -*-%0A%0A
+# Read the content of an audio wave file (.wav)%0A# See: https://docs.python.org/3/library/wave.html%0A%0A
 import w

Add some comments.