Package io.rong.common

## Class AudioInfoUtils

- All Implemented Interfaces:

      public class AudioInfoUtils

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static String` | `KEY_CHANNELS` |
    `public final static String` | `KEY_SAMPLE_RATE` |
    `public final static String` | `KEY_FORMAT` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AudioInfoUtils()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static Map<String, String>` | `getAudioInfo(Context context, Uri uri)` | * 获取音频文件信息

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AudioInfoUtils

          AudioInfoUtils()

  - ### Method Detail

    - #### getAudioInfo

           static Map<String, String> getAudioInfo(Context context, Uri uri)

      * 获取音频文件信息

      Parameters:
        `context` - 上下文
        `uri` - 音频文件Uri
      Returns:

        包含音频信息的Map，键值包括： * "channels" - 声道数 "sampleRate" - 采样率 "format" - 编码格式