Audio Format
Audio Format specifies encoding, sample representation, sample rate, channel count, and codec-specific recording parameters.
Properties
format
Specifies the audio encoding format.
linearpcm— Linear PCM audio.aac— AAC encoded audio.alac— Apple Lossless encoded audio.
sampleFormat
Specifies the sample representation used for linear PCM audio.
int16— 16-bit integer samples.int32— 32-bit integer samples.float32— 32-bit floating-point samples.float64— 64-bit floating-point samples.
sampleRate
Specifies the audio sample rate in samples per second. When omitted, Andamento automatically selects the sample rate.
16000— 16 kHz.22050— 22.05 kHz.32000— 32 kHz.44100— 44.1 kHz.48000— 48 kHz.
channelCount
Specifies the number of audio channels. When omitted, Andamento automatically selects the channel count.
1— Mono.2— Stereo.
bitsPerSample
Specifies the number of bits per audio sample when using Apple Lossless (alac) encoding. This property applies only when format is "alac".
16— 16 bits per sample.20— 20 bits per sample.24— 24 bits per sample.32— 32 bits per sample.
bitRate
Specifies the encoding bit rate, in bits per second, when using AAC encoding. This property applies only when format is "aac". When omitted, Andamento automatically selects the bit rate. The bit rate must be compatible with the selected audio configuration; an excessively high value can cause recording to fail.
"bitRate": 128000
Examples
Linear PCM format
{
"format": "linearpcm",
"sampleFormat": "float32",
"sampleRate": 44100,
"channelCount": 1
}