Speech Encoding#

Encodings used by the Google Cloud Speech API.

class google.cloud.speech.encoding.Encoding[source]#

Bases: object

Audio encoding types.

See: https://cloud.google.com/speech/reference/rest/v1/RecognitionConfig#AudioEncoding

AMR = 'AMR'#

AMR encoding type.

AMR_WB = 'AMR_WB'#

AMR_WB encoding type.

FLAC = 'FLAC'#

FLAC encoding type.

LINEAR16 = 'LINEAR16'#

LINEAR16 encoding type.

MULAW = 'MULAW'#

MULAW encoding type.

OGG_OPUS = 'OGG_OPUS'#

OGG_OPUS encoding type.

SPEEX_WITH_HEADER_BYTE = 'SPEEX_WITH_HEADER_BYTE'#

SPEEX_WITH_HEADER_BYTE encoding type.