Class for compiling information about audio

Constructors

  • Classes for handling audios

    Parameters

    • name: string

      Audio name

    • Optionalcv:
          | "EN"
          | "KR"
          | "JP"
          | "CHS"

      Audio cv

    • OptionalcharacterId: number

      Character ID

    Returns AudioAssets

Properties

audioBaseURL: string

Audio base URL

characterId?: number

Character ID

cv?:
    | "EN"
    | "KR"
    | "JP"
    | "CHS"

Audio cv

mihoyoURL: string

Audio URL of mihoyo

name: string

Audio name

url: string

Audio URL

Methods

  • Fetch audio buffer

    Returns Promise<Buffer>

    Audio buffer

  • Fetch audio stream

    Parameters

    • OptionalhighWaterMark: number

      HighWaterMark

    Returns Promise<ReadStream>

    Audio stream

  • Classes for handling audios

    Parameters

    Returns void