I l@ve RuBoard |
9.7 The sunaudio ModuleThe 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 ModuleFile: sunaudio-example-1.py import sunaudio file = "samples/sample.au" print sunaudio.gethdr(open(file, "rb")) (6761, 1, 8012, 1, 'sample.au') |
I l@ve RuBoard |