Au file format
The Au file format is a simple audio file format introduced by Sun Microsystems, primarily utilized on NeXT systems and early web pages, and characterized by its straightforward header structure and support for various audio encodings.
History and Usage
The Au format was introduced by Sun Microsystems in the late 1980s for use on their SPARC workstations. It later became the standard audio format for the NeXTSTEP operating system and, consequently, early versions of Mac OS X. During the early days of the World Wide Web, the Au format was widely used for embedding short audio clips in web pages. This popularity was largely due to its support for μ-law (mu-law) encoding, which provided acceptable voice quality at a low bitrate (8-bit, 8000 Hz mono), making it suitable for the limited bandwidth of early internet connections. Over time, as bandwidth increased and more advanced compression algorithms were developed, the Au format was largely superseded by formats such as WAV, AIFF, MP3, and Ogg Vorbis. Despite its decline in mainstream use, it remains supported by numerous digital audio workstations, audio editors, and command-line utilities.
File Structure
An Au file consists of three main components: a file header, the audio data, and an optional annotation chunk.
Header
The header is typically 24 bytes long and contains the following fields, all stored as 32-bit unsigned integers:
- Magic Number: The file begins with the magic number
.snd(hexadecimal0x2e736e64), which identifies the file as an Au audio file. - Data Offset: This indicates the byte offset where the actual audio data begins. It is equal to the size of the header plus the size of any optional annotation. The minimum value is usually 24.
- Data Size: This specifies the size of the audio data in bytes. If the size is unknown (such as when streaming), this field is set to
0xFFFFFFFF. - Encoding Format: An integer that defines the audio encoding used in the data chunk (e.g., 1 for 8-bit ISDN μ-law, 3 for 16-bit linear PCM).
- Sample Rate: The number of samples per second (e.g., 8000, 22050, 44100).
- Channels: The number of interleaved audio channels (e.g., 1 for monaural, 2 for stereo).
Audio Data
The audio data immediately follows the header (and the optional annotation). The byte order of the audio data is traditionally big-endian, reflecting the big-endian architecture of the original Sun SPARC workstations. While some modern implementations may support little-endian variants, big-endian remains the standard for strict compliance.
Annotation
Between the header and the audio data, there may be an optional, null-terminated text string. This annotation can contain arbitrary information, such as the title of the recording, the author, or recording conditions. The length of this string must be a multiple of four bytes, padded with null characters if necessary, to maintain 32-bit alignment for the audio data.
Encoding Formats
The Au format supports a wide variety of audio encoding schemes, identified by the encoding format field in the header. Some of the most common encodings include:
- μ-law (G.711): 8-bit logarithmic compression, historically the most common format for web audio and telephony.
- Linear PCM: Uncompressed pulse-code modulation in 8-bit, 16-bit, 24-bit, and 32-bit integer formats.
- IEEE Float: 32-bit and 64-bit floating-point PCM, used for high-precision audio processing.
- A-law (G.711): 8-bit logarithmic compression, similar to μ-law but primarily used in European telecommunications.
- ADPCM: Adaptive differential pulse-code modulation, including CCITT G.721 and G.723 variants, which offer better compression ratios than standard PCM.
Technical Specifications and MIME Types
Because the Au format was heavily used in early web browsers, specific Multipurpose Internet Mail Extensions (MIME) types were assigned to it. The most historically significant MIME type is audio/basic, which was strictly defined by RFC 2046 to represent 8-bit μ-law encoded audio at an 8000 Hz sample rate in a single channel. For other encodings and variations within the Au container, the MIME type audio/x-au or audio/au is typically used.
Legacy and Modern Relevance
Today, the Au file format is considered a legacy format. Modern web standards and operating systems favor more versatile and efficiently compressed formats like MP3, AAC, and FLAC. However, the Au format's structural simplicity makes it highly reliable for raw audio data exchange in academic research, telecommunications, and low-level audio programming. It is fully supported by modern open-source audio processing tools such as SoX (Sound eXchange), FFmpeg, and Audacity, ensuring that legacy Au files can still be easily played, converted, and analyzed.
你感兴趣的百科
印度
印度(英语:India),全称印度共和国(Republic of India),是位于南亚的主权国家,也是世界上人口最多的国家,人口超过14亿。印度国土面积约328万平方公里,居世界第七位,南临印度洋,西南濒阿拉伯海,东南临孟加拉湾,陆地与...
DeepSeek(深度求索)
DeepSeek(深度求索),全称杭州深度求索人工智能基础技术研究有限公司,是一家总部位于中国杭州的人工智能研究公司,专注于大型语言模型及相关人工智能技术的研发,公司名称“深度求索”意即“深度探索”。该公司由企业家梁文锋于2023年创立,资...
OpenAI
OpenAI(开放人工智能公司)是一家总部位于美国加利福尼亚州旧金山的人工智能研究与发展公司。该公司成立于2015年12月,最初为非营利研究实验室,宣称的使命是确保人工通用智能(AGI)——即设想中能够匹配或超越人类能力的智能系统——造福全...
加拿大
加拿大(英语、法语:Canada),是位于北美洲北部的联邦议会制国家,由十个省和三个地区组成,国土东临大西洋,西濒太平洋,北抵北冰洋,总面积约998万平方千米,仅次于俄罗斯,居世界第二位。加拿大人口约4000万,以多元文化社会、议会民主制度...
评论区 (0)
还没有评论,来抢沙发!