Package com.bytedesk.call.mrcp4j.common
Enum Class MrcpResourceType
- All Implemented Interfaces:
Serializable,Comparable<MrcpResourceType>,Constable
Defines the resource types that are valid for MRCPv2.
- Author:
- Niels Godfredsen <ngodfredsen@users.sourceforge.net>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA speech synthesizer resource with very limited capabilities that can generate its media stream exclusively from concatenated audio clips.A recognition resource capable of extracting and interpreting DTMF digits in a media stream and matching them against a supplied digit grammar.A resource capable of recording audio and saving it to a URI.A resource capable of verifying the authenticity of a claimed identity by matching a media stream containing a voice to a pre-existing voice-print.A full speech recognition resource that is capable of receiving a media stream containing audio and interpreting it to recognition results.A full capability speech synthesis resource capable of rendering speech from text. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MrcpResourceTypefromChannelID(String channelID) Parses an MRCP channel ID to extract the resource type of the channel as the appropriate MRCP4J enum value.static MrcpResourceTypefromString(String str) Converts an MRCP resource type in string format to the appropriate MRCP4J enum value.toString()static MrcpResourceTypeReturns the enum constant of this class with the specified name.static MrcpResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPEECHRECOG
A full speech recognition resource that is capable of receiving a media stream containing audio and interpreting it to recognition results. -
DTMFRECOG
A recognition resource capable of extracting and interpreting DTMF digits in a media stream and matching them against a supplied digit grammar. -
SPEECHSYNTH
A full capability speech synthesis resource capable of rendering speech from text. -
BASICSYNTH
A speech synthesizer resource with very limited capabilities that can generate its media stream exclusively from concatenated audio clips. -
SPEAKVERIFY
A resource capable of verifying the authenticity of a claimed identity by matching a media stream containing a voice to a pre-existing voice-print. -
RECORDER
A resource capable of recording audio and saving it to a URI.
-
-
Field Details
-
_name
-
-
Constructor Details
-
MrcpResourceType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<MrcpResourceType>
-
fromString
Converts an MRCP resource type in string format to the appropriate MRCP4J enum value.- Parameters:
str- MRCP resource type.- Returns:
- the resource type enum instance corresponding to the string value specified.
- Throws:
IllegalArgumentException- if the string value specified does not correspond to an existing MRCP resource type.
-
fromChannelID
Parses an MRCP channel ID to extract the resource type of the channel as the appropriate MRCP4J enum value.- Parameters:
channelID- ID of the channel for which the resource type needs to be determined.- Returns:
- the resource type enum instance corresponding to the string value contained in the specified channel ID.
- Throws:
IllegalArgumentException- if the channel ID is not correctly formatted.
-