Interface AddAudioOptions.ContainedContentType
- Enclosing class:
- AddAudioOptions
public static interface AddAudioOptions.ContainedContentType
_For an archive-type resource_, specify the format of the audio files that are contained in the
archive file if they are of type `audio/alaw`, `audio/basic`, `audio/l16`, or `audio/mulaw`.
Include the `rate`, `channels`, and `endianness` parameters where necessary. In this case, all
audio files that are contained in the archive file must be of the indicated type.
For all other audio formats, you can omit the header. In this case, the audio files can be of multiple types as long as they are not of the types listed in the previous paragraph.
The parameter accepts all of the audio formats that are supported for use with speech recognition. For more information, see **Content types for audio-type resources** in the method description.
_For an audio-type resource_, omit the header.
-
Field Summary
Fields Modifier and Type Field Description static StringAUDIO_ALAWaudio/alaw.static StringAUDIO_BASICaudio/basic.static StringAUDIO_FLACaudio/flac.static StringAUDIO_G729audio/g729.static StringAUDIO_L16audio/l16.static StringAUDIO_MP3audio/mp3.static StringAUDIO_MPEGaudio/mpeg.static StringAUDIO_MULAWaudio/mulaw.static StringAUDIO_OGGaudio/ogg.static StringAUDIO_OGG_CODECS_OPUSaudio/ogg;codecs=opus.static StringAUDIO_OGG_CODECS_VORBISaudio/ogg;codecs=vorbis.static StringAUDIO_WAVaudio/wav.static StringAUDIO_WEBMaudio/webm.static StringAUDIO_WEBM_CODECS_OPUSaudio/webm;codecs=opus.static StringAUDIO_WEBM_CODECS_VORBISaudio/webm;codecs=vorbis.
-
Field Details
-
AUDIO_ALAW
audio/alaw.- See Also:
- Constant Field Values
-
AUDIO_BASIC
audio/basic.- See Also:
- Constant Field Values
-
AUDIO_FLAC
audio/flac.- See Also:
- Constant Field Values
-
AUDIO_G729
audio/g729.- See Also:
- Constant Field Values
-
AUDIO_L16
audio/l16.- See Also:
- Constant Field Values
-
AUDIO_MP3
audio/mp3.- See Also:
- Constant Field Values
-
AUDIO_MPEG
audio/mpeg.- See Also:
- Constant Field Values
-
AUDIO_MULAW
audio/mulaw.- See Also:
- Constant Field Values
-
AUDIO_OGG
audio/ogg.- See Also:
- Constant Field Values
-
AUDIO_OGG_CODECS_OPUS
audio/ogg;codecs=opus.- See Also:
- Constant Field Values
-
AUDIO_OGG_CODECS_VORBIS
audio/ogg;codecs=vorbis.- See Also:
- Constant Field Values
-
AUDIO_WAV
audio/wav.- See Also:
- Constant Field Values
-
AUDIO_WEBM
audio/webm.- See Also:
- Constant Field Values
-
AUDIO_WEBM_CODECS_OPUS
audio/webm;codecs=opus.- See Also:
- Constant Field Values
-
AUDIO_WEBM_CODECS_VORBIS
audio/webm;codecs=vorbis.- See Also:
- Constant Field Values
-