Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Sound

Hierarchy

Index

Properties

formats

The formats and languages in which this sound is available.

id

id: string

Sounds identifier.

Optional text

text: string

Text description of the sound, usually the words spoken.

Methods

addListener

get

  • get(callback: (err: Error, sound: Sound) => void): void
  • get(): Promise<Sound>
  • Get a sounds details.

    Parameters

    • callback: (err: Error, sound: Sound) => void
        • (err: Error, sound: Sound): void
        • Parameters

          • err: Error
          • sound: Sound

          Returns void

    Returns void

  • Get a sounds details.

    Returns Promise<Sound>

list

  • list(params: { format?: string; lang?: string }, callback: (err: Error, sounds: Sound[]) => void): void
  • list(callback: (err: Error, sounds: Sound[]) => void): void
  • list(params?: { format?: string; lang?: string }): Promise<Sound[]>
  • List all sounds.

    Parameters

    • params: { format?: string; lang?: string }
      • Optional format?: string
      • Optional lang?: string
    • callback: (err: Error, sounds: Sound[]) => void
        • (err: Error, sounds: Sound[]): void
        • Parameters

          • err: Error
          • sounds: Sound[]

          Returns void

    Returns void

  • List all sounds.

    Parameters

    • callback: (err: Error, sounds: Sound[]) => void
        • (err: Error, sounds: Sound[]): void
        • Parameters

          • err: Error
          • sounds: Sound[]

          Returns void

    Returns void

  • List all sounds.

    Parameters

    • Optional params: { format?: string; lang?: string }
      • Optional format?: string
      • Optional lang?: string

    Returns Promise<Sound[]>

on

once

removeAllListeners

removeListener

  • removeListener(event: AnyEventType, handler: (...args: any[]) => void): void
  • Removes the event listener for the specified event type.

    Parameters

    • event: AnyEventType

      The event type.

    • handler: (...args: any[]) => void

      The event listener function.

        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

Generated using TypeDoc