Set VoiceText parameters. Parameters can be set later without having to specify them in the constructor. However, be sure to specify the API key here.
This method is used to fetch the synthesized voice.
Objects of VoiceText parameters.
{Promise
This method is used to initialize VoiceText.
Objects of VoiceText parameters.
This method is used to determine if a speaker has an emotion.
Objects of VoiceText parameters.
{params is VoiceTextParamsHasEmotion}
Fetches the buffer of synthesized voice.
{Promise
Sets the emotion level of the speaker.
Specify among 1, 2, 3, and 4. If not specified in the constructor, the default level is 2.
{this}
Sets the pitch of the synthesized voice.
Specify between 50 and 200. If not specified in the constructor, the default pitch is 100.
{this}
Sets the speed of the synthesized voice.
Specify between 50 and 400. If not specified in the constructor, the default speed is 100.
{this}
Sets the text to be synthesized.
Text to be synthesized.
{this}
Sets the volume percentage of the synthesized voice.
Specify between 50 and 200. If not specified in the constructor, the default volume is 100.
{this}
Return the synthesized voice as a readable stream. For example, if you are using it with a discord bot, use this instead of fetchBuffer.
Generated using TypeDoc
Creates an instance of VoiceText. Be sure to set the API key. You can get an API key from https://cloud.voicetext.jp/webapi
VoiceText