Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Speaker

Index

Properties

Constructors

Methods

  • speak(text: string, options?: { duration?: number; environment?: string; voice?: string }): Promise<<internal>.RabbitMessage<unknown>>
  • Speak text.

    Parameters

    • text: string

      The text to speak out. You can also use SSML. See Watson TTS website.

    • options: { duration?: number; environment?: string; voice?: string } = {}
      • Optional duration?: number
      • Optional environment?: string
      • Optional voice?: string

    Returns Promise<<internal>.RabbitMessage<unknown>>

    Resolves to "succeeded" or "interrupted".

  • clearCache(): void
  • changeVolume(change: number): void
  • increaseVolume(change?: number): void
  • reduceVolume(change?: number): void

Generated using TypeDoc