枚举 AsrConstant.VoiceFormat

java.lang.Object
java.lang.Enum<AsrConstant.VoiceFormat>
com.tencent.asr.constant.AsrConstant.VoiceFormat
所有已实现的接口:
java.io.Serializable, java.lang.Comparable<AsrConstant.VoiceFormat>, java.lang.constant.Constable
封闭类:
AsrConstant

public static enum AsrConstant.VoiceFormat
extends java.lang.Enum<AsrConstant.VoiceFormat>
声音类型 mp3仅仅16k_0模型支持,其它的则都能支持。
  • 嵌套类概要

    从类继承的嵌套类/接口 java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • 枚举常量概要

    枚举常量 
    枚举常量 说明
    mp3  
    silk  
    sp  
    wav  
  • 方法概要

    修饰符和类型 方法 说明
    int getFormatId()  
    int getFormatIdByName​(java.lang.String formatName)  
    java.lang.String getFormatName()  
    java.lang.String getFormatNameById​(int formatId)  
    static AsrConstant.VoiceFormat valueOf​(java.lang.String name)
    返回带有指定名称的该类型的枚举常量。
    static AsrConstant.VoiceFormat[] values()
    按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。

    从类继承的方法 java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    从类继承的方法 java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 枚举常量详细资料

  • 方法详细资料

    • values

      public static AsrConstant.VoiceFormat[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static AsrConstant.VoiceFormat valueOf​(java.lang.String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      java.lang.NullPointerException - 如果参数为空值
    • getFormatId

      public int getFormatId()
    • getFormatName

      public java.lang.String getFormatName()
    • getFormatIdByName

      public int getFormatIdByName​(java.lang.String formatName)
    • getFormatNameById

      public java.lang.String getFormatNameById​(int formatId)