Enum Class MrcpResourceType

java.lang.Object
java.lang.Enum<MrcpResourceType>
com.bytedesk.call.mrcp4j.common.MrcpResourceType
All Implemented Interfaces:
Serializable, Comparable<MrcpResourceType>, Constable

public enum MrcpResourceType extends Enum<MrcpResourceType>
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 Constants
    Enum Constant
    Description
    A 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
    Modifier and Type
    Field
    Description
    private String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromChannelID(String channelID)
    Parses an MRCP channel ID to extract the resource type of the channel as the appropriate MRCP4J enum value.
    Converts an MRCP resource type in string format to the appropriate MRCP4J enum value.
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SPEECHRECOG

      public static final MrcpResourceType SPEECHRECOG
      A full speech recognition resource that is capable of receiving a media stream containing audio and interpreting it to recognition results.
    • DTMFRECOG

      public static final MrcpResourceType DTMFRECOG
      A recognition resource capable of extracting and interpreting DTMF digits in a media stream and matching them against a supplied digit grammar.
    • SPEECHSYNTH

      public static final MrcpResourceType SPEECHSYNTH
      A full capability speech synthesis resource capable of rendering speech from text.
    • BASICSYNTH

      public static final MrcpResourceType BASICSYNTH
      A speech synthesizer resource with very limited capabilities that can generate its media stream exclusively from concatenated audio clips.
    • SPEAKVERIFY

      public static final MrcpResourceType 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

      public static final MrcpResourceType RECORDER
      A resource capable of recording audio and saving it to a URI.
  • Field Details

    • _name

      private String _name
  • Constructor Details

    • MrcpResourceType

      private MrcpResourceType(String name)
  • Method Details

    • values

      public static MrcpResourceType[] 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

      public static MrcpResourceType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MrcpResourceType>
    • fromString

      public static MrcpResourceType fromString(String str) throws IllegalArgumentException
      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

      public static MrcpResourceType fromChannelID(String channelID)
      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.