Voice

Voice

Represents the voice settings of a message element.

Constructor

new Voice(text)

Description:
  • Constructs a Voice object with the specified text.
Source:
Parameters:
Name Type Description
text string The text of the voice (required).

Methods

getLongText() → {string}

Description:
  • Gets the long text of the voice.
Source:
Returns:
The long text of the voice.
Type
string

getSoundUrl() → {string}

Description:
  • Gets the sound URL of the voice.
Source:
Returns:
The sound URL of the voice.
Type
string

getText() → {string}

Description:
  • Gets the text of the voice.
Source:
Returns:
The text of the voice.
Type
string

setLongText(longText) → {Voice}

Description:
  • Sets the long text of the voice.
Source:
Parameters:
Name Type Description
longText string The long text of the voice.
Returns:
This Voice instance.
Type
Voice

setSoundUrl(soundUrl) → {Voice}

Description:
  • Sets the sound URL of the voice.
Source:
Parameters:
Name Type Description
soundUrl string The sound URL of the voice.
Returns:
This Voice instance.
Type
Voice

setText(text) → {Voice}

Description:
  • Sets the text of the voice.
Source:
Parameters:
Name Type Description
text string The text of the voice.
Returns:
This Voice instance.
Type
Voice