Enum PronunciationAssessmentGranularity
- java.lang.Object
-
- java.lang.Enum<PronunciationAssessmentGranularity>
-
- com.microsoft.cognitiveservices.speech.PronunciationAssessmentGranularity
-
- All Implemented Interfaces:
Serializable,Comparable<PronunciationAssessmentGranularity>
public enum PronunciationAssessmentGranularity extends Enum<PronunciationAssessmentGranularity>
Defines the pronunciation evaluation granularity; default value is Phoneme. Added in version 1.14.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the value of pronunciation assessment granularitystatic PronunciationAssessmentGranularityvalueOf(String name)Returns the enum constant of this type with the specified name.static PronunciationAssessmentGranularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Phoneme
public static final PronunciationAssessmentGranularity Phoneme
Shows the score on the full text, word and phoneme level
-
Word
public static final PronunciationAssessmentGranularity Word
Shows the score on the full text and word level
-
FullText
public static final PronunciationAssessmentGranularity FullText
Shows the score on the full text level only
-
-
Method Detail
-
values
public static PronunciationAssessmentGranularity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PronunciationAssessmentGranularity c : PronunciationAssessmentGranularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PronunciationAssessmentGranularity valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
Returns the value of pronunciation assessment granularity- Returns:
- the granularity id value
-
-