The sunaudio Module

The sunaudio module, shown in Example 9-6, identifies Sun AU audio files and extracts basic information about the file contents. The sunau module provides more complete support for Sun AU files.

Example 9-6. Using the sunaudio Module


import sunaudio

file = "samples/"

print sunaudio.gethdr(open(file, "rb"))

(6761, 1, 8012, 1, '')

Core Modules

More Standard Modules

Threads and Processes

Data Representation

File Formats

Mail and News Message Processing

Network Protocols


Multimedia Modules

Data Storage

Tools and Utilities

Platform-Specific Modules

Implementation Support Modules

Other Modules

Python Standard Library
Python Standard Library (Nutshell Handbooks) with
ISBN: 0596000960
EAN: 2147483647
Year: 2000
Pages: 252
Authors: Fredrik Lundh © 2008-2020.
If you may any questions please contact us: