Botnoi Voice icon

Botnoi Voice

Generate speech using Botnoi Voice API

Voice → Generate

AI-generated

Overview

This node generates speech audio from input text using the Botnoi Voice API. It supports two versions of speaker voices (V1 and V2) and allows customization of language, volume, speaking speed, and output audio format (MP3 or WAV). Users can choose whether to save the audio file server-side and whether to receive a simplified response. This node is useful for converting text into natural-sounding speech for applications like voice assistants, automated announcements, or multimedia content creation.

Use Case Examples

  1. Convert a welcome message text into speech using a selected speaker voice and language.
  2. Generate an audio file from a text input with customized volume and speed settings.
  3. Create speech audio in different languages and save the file on the server for later use.

Properties

Name Meaning
Speaker Version Version of speakers to use (V1 or V2). Determines which set of speaker voices is available.
Text The text string to convert into speech. This is a required input.
Speaker (V1) The specific voice to use from the V1 speaker set.
Speaker (V2) The specific voice to use from the V2 speaker set.
Language Language of the input text to be converted to speech.
Volume Output volume level, ranging from 0 to 2.
Speed Speaking speed, ranging from 0 to 2.
Media Type Output audio format, either MP3 or WAV.
Save File Whether to let the API store the audio file server-side (true or false).
Simplify Whether to return a simplified version of the API response instead of the raw data (true or false).
Options.Timeout Request timeout in milliseconds (default 60000).

Output

JSON

  • text - The input text that was converted to speech.
  • audioUrl - URL to the generated audio file.
  • pointsUsed - Points used for the API request.
  • monthlyPoint - User's monthly point balance.

Dependencies

  • Botnoi Voice API
  • an API key credential for authentication

Troubleshooting

  • Ensure the 'Text' input is provided and not empty, as it is required for generating speech.
  • Verify that the API key credential is valid and has access to the Botnoi Voice API endpoint.
  • Check network connectivity and API endpoint availability if requests time out or fail.
  • If the node throws an error about unsupported resource or operation, confirm that the resource is 'voice' and operation is 'generate'.
  • If the response is not as expected, try disabling the 'Simplify' option to see the full raw API response for debugging.

Links

Discussion