src/jarvis_proto/audio.proto -------------------------------------------------- .. cpp:enum:: enum AudioEncoding AudioEncoding specifies the encoding of the audio bytes in the encapsulating message. .. cpp:enumerator:: ENCODING_UNSPECIFIED = 0 Not specified. .. cpp:enumerator:: LINEAR_PCM = 1 Uncompressed 16-bit signed little-endian samples (Linear PCM). .. cpp:enumerator:: FLAC = 2 `FLAC` (Free Lossless Audio Codec) is the recommended encoding because it is lossless--therefore recognition is not compromised--and requires only about half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and 24-bit samples, however, not all fields in `STREAMINFO` are supported. .. cpp:enumerator:: MULAW = 3 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. .. cpp:enumerator:: ALAW = 20 8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.