Class CommonAudioFormat
java.lang.Object
de.xima.fc.prompt.service.support.CommonAudioFormat
Enumeration for common types of audio formats. Certain task types such as speech synthesis produce audio files. Some
prompt services allow the user to select the format of that audio file. Implementations are encouraged to use these
constants to increase interoperability between different prompt service implementations, but are not required to do
so.
- Since:
- 8.5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Advanced Audio Codec format, commonly known as "aac".static final StringThe Free Lossless Audio Codec format, commonly known as "flac".static final StringThe MPEG Audio Layer 3 format, commonly known as "mp3".static final StringThe Opus audio codec format, commonly known as "opus".static final StringThe Pulse-Code Modulation format, commonly known as "pcm".static final StringThe Waveform Audio File Format, commonly known as "wav" or "wave". -
Method Summary
Modifier and TypeMethodDescriptionstatic StringlocalizedDescription(Locale locale, String commonAudioFormat) Gets the localized description for the given common audio format.static StringlocalizedLabel(Locale locale, String commonAudioFormat) Gets the localized label for the given common audio format.
-
Field Details
-
ADVANCED_AUDIO_CODEC
The Advanced Audio Codec format, commonly known as "aac".- See Also:
-
FREE_LOSSLESS_AUDIO_CODEC
The Free Lossless Audio Codec format, commonly known as "flac".- See Also:
-
MPEG_AUDIO_LAYER_3
The MPEG Audio Layer 3 format, commonly known as "mp3".- See Also:
-
OPUS
-
PULSE_CODE_MODULATION
The Pulse-Code Modulation format, commonly known as "pcm".- See Also:
-
WAVEFORM
The Waveform Audio File Format, commonly known as "wav" or "wave".- See Also:
-
-
Method Details
-
localizedDescription
Gets the localized description for the given common audio format. The value should be one of the constants defined in this class. When an unknown value is given, returns an implementation-defined default description.- Parameters:
locale- The locale for which to localize the description.commonAudioFormat- The common audio format constant, must be one of the constants defined in this class.- Returns:
- The localized description for the given common audio format.
-
localizedLabel
Gets the localized label for the given common audio format. The value should be one of the constants defined in this class. When an unknown value is given, returns an implementation-defined default label.- Parameters:
locale- The locale for which to localize the label.commonAudioFormat- The common audio format constant, must be one of the constants defined in this class.- Returns:
- The localized label for the given common audio format.
-