auparse_normalize_object_primary - Linux
Overview
auparse_normalize_object_primary normalizes a primary object of an AU file. It removes all time references and handles loop points and sample durations to ensure proper playback.
Syntax
auparse_normalize_object_primary [options] <input> <output>
Options/Flags
- -h, –help: Display help information.
- -o, –output-format: Specify the output file format (
au
,wav
). Default:au
. - -r, –rate: Resample the output audio to the specified rate (Hz). Default: 44100.
- -c, –channels: Specify the number of channels in the output audio. Default: 2.
- -b, –bits: Specify the bit depth of the output audio. Default: 16.
- -l, –loop: Define the loop points in the output audio. Format:
start_time:end_time
. - -d, –duration: Specify the duration of the output audio in seconds.
Examples
Normalize a primary object to 44100 Hz with 16-bit depth and 2 channels:
auparse_normalize_object_primary -r 44100 -b 16 -c 2 input.au output.au
Normalize a primary object and set loop points:
auparse_normalize_object_primary -l 5:10 input.au output.au
Common Issues
- Incorrect output file format: Ensure the specified output format is supported (
au
orwav
). - Invalid loop points: Loop points must be within the duration of the primary object.
- Missing input or output files: Verify that both the input and output file names are correct.
Integration
Combine with sox
for advanced processing:
auparse_normalize_object_primary input.au | sox -t au - rate 48000 output.au
Related Commands
- auparse
- arecord
- aplay