ChatiumFor developersPlaygroundPricing
Sign in

getAudioInfo

Retrieves information about an audio file.

Parameters

  • ctx: RichUgcCtx
    The application context that provides access to various components and settings.

  • hash: string
    The hash of the audio file used to identify the desired audio file in the system.

Return Value

  • Promise<AudioInfo>
    The return value is an AudioInfo object containing information about the audio file.

AudioInfo Properties

  • hash: string
    The hash of the audio file.

  • duration: number
    The duration of the audio file in seconds.

  • format: string
    The format of the audio file (e.g., MP3, WAV).

  • bitRate: number
    The bitrate of the audio file in kilobits per second (Kbps).

  • samplingRate: number
    The sampling rate of the audio file in hertz (Hz).