wave.Wave_write.writeframes()
wave.Wave_write.writeframes() is a Python method in the Wave Module category. Writes audio frames to the file. The syntax is Wave_write.writeframes(data). Returns: None. A typical example: import struct
frames = struct.pack("wave.open(), which opens a WAV audio file for reading or writing. A close sibling is wave.Wave_read.readframes(), which reads and returns up to n frames of audio data as bytes. A close sibling is wave.Wave_write.setparams(), which sets audio parameters: (nchannels, sampwidth, framerate, nframes, comptype, compname). More about this category: WAV audio file handling — open, readframes, writeframes, getparams. Related Wave Module entries: wave.open(), wave.Wave_read.readframes(), wave.Wave_write.setparams(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try wave.Wave_write.writeframes() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.