SpeechTilesAndamento Docs
Get started
Configuration Reference

Audio Format

JSON property audioFormat

JSON type object

Used in Speech Synthesis Recording, Audio Recording Output

Audio Format specifies encoding, sample representation, sample rate, channel count, and codec-specific recording parameters.

JSON form
object

Properties

format

stringOptionalDefault: linearpcm

Specifies the audio encoding format.

Allowed values
  • linearpcm — Linear PCM audio.
  • aac — AAC encoded audio.
  • alac — Apple Lossless encoded audio.
Runtime fields: Supported

sampleFormat

stringOptionalDefault: float32

Specifies the sample representation used for linear PCM audio.

Allowed values
  • int16 — 16-bit integer samples.
  • int32 — 32-bit integer samples.
  • float32 — 32-bit floating-point samples.
  • float64 — 64-bit floating-point samples.
Runtime fields: Supported

sampleRate

integerOptional

Specifies the audio sample rate in samples per second. When omitted, Andamento automatically selects the sample rate.

Allowed values
  • 16000 — 16 kHz.
  • 22050 — 22.05 kHz.
  • 32000 — 32 kHz.
  • 44100 — 44.1 kHz.
  • 48000 — 48 kHz.
Runtime fields: Supported

channelCount

integerOptional

Specifies the number of audio channels. When omitted, Andamento automatically selects the channel count.

Allowed values
  • 1 — Mono.
  • 2 — Stereo.
Runtime fields: Supported

bitsPerSample

integerOptionalDefault: 32

Specifies the number of bits per audio sample when using Apple Lossless (alac) encoding. This property applies only when format is "alac".

Allowed values
  • 16 — 16 bits per sample.
  • 20 — 20 bits per sample.
  • 24 — 24 bits per sample.
  • 32 — 32 bits per sample.
Runtime fields: Supported

bitRate

integerOptional

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.

Runtime fields: Supported
Example AAC bit rate
"bitRate": 128000

Examples

Linear PCM format

{
"format": "linearpcm",
"sampleFormat": "float32",
"sampleRate": 44100,
"channelCount": 1
}