all()

all(iterable) Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to: def all(iterable): for element in iterable: if not element: return False return True

aifc.aifc.tell()

aifc.tell() Return the current frame number.

aifc.aifc.writeframes()

aifc.writeframes(data) Write data to the output file. This method can only be called after the audio file parameters have been set. Changed in version 3.4: Any bytes-like object is now accepted.

aifc.aifc.writeframesraw()

aifc.writeframesraw(data) Like writeframes(), except that the header of the audio file is not updated. Changed in version 3.4: Any bytes-like object is now accepted.

aifc.aifc.setparams()

aifc.setparams(nchannels, sampwidth, framerate, comptype, compname) Set all the above parameters at once. The argument is a tuple consisting of the various parameters. This means that it is possible to use the result of a getparams() call as argument to setparams().

aifc.aifc.setmark()

aifc.setmark(id, pos, name) Add a mark with the given id (larger than 0), and the given name at the given position. This method can be called at any time before close().

aifc.aifc.setframerate()

aifc.setframerate(rate) Specify the sampling frequency in frames per second.

aifc.aifc.setnframes()

aifc.setnframes(nframes) Specify the number of frames that are to be written to the audio file. If this parameter is not set, or not set correctly, the file needs to support seeking.

aifc.aifc.setpos()

aifc.setpos(pos) Seek to the specified frame number.

aifc.aifc.setcomptype()

aifc.setcomptype(type, name) Specify the compression type. If not specified, the audio data will not be compressed. In AIFF files, compression is not possible. The name parameter should be a human-readable description of the compression type as a bytes array, the type parameter should be a bytes array of length 4. Currently the following compression types are supported: b'NONE', b'ULAW', b'ALAW', b'G722'.