Options
All
  • Public
  • Public/Protected
  • All
Menu

Prompt builder class that simplifies building prompts for playPrompt action.

Hierarchy

  • Prompt

Implements

Index

Constructors

constructor

Methods

culture

  • culture(locale: string): Prompt
  • The Language enum value to use for Text-To-Speech. Only applicable if value is text. The default value is “en-US”. Note, currently en-US is the only supported language.

    Parameters

    • locale: string

    Returns Prompt

emphasize

  • emphasize(flag: boolean): Prompt
  • Indicates whether to emphasize when tts'ing out. It's applicable only if value is text. The default value is false.

    Parameters

    • flag: boolean

    Returns Prompt

fileUri

  • fileUri(uri: string): Prompt
  • HTTP of played media file. Supported formats are WMA or WAV. The file is limited to 512kb in size and cached by Skype Bot Platform for Calling. Either value or fileUri must be specified.

    Parameters

    • uri: string

    Returns Prompt

sayAs

  • The SayAs enum value indicates whether to customize pronunciation during tts. It's applicable only if value is text.

    Parameters

    • type: string

    Returns Prompt

silenceLengthInMilliseconds

  • silenceLengthInMilliseconds(time: number): Prompt

toPrompt

value

  • value(text: string | string[], ...args: any[]): Prompt
  • Text-To-Speech text to be played to Skype user. Either value or fileUri must be specified.

    Parameters

    • text: string | string[]
    • Rest ...args: any[]

    Returns Prompt

voice

  • voice(gender: string): Prompt
  • VoiceGender enum value. The default value is “female”.

    Parameters

    • gender: string

    Returns Prompt

Static file

Static silence

Static text

  • Creates a text prompt that will be spoken to the user using TTS.

    Parameters

    • session: CallSession
    • text: string | string[]
    • Rest ...args: any[]

    Returns Prompt

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method