Wiro - Generate Speech icon

Wiro - Generate Speech

Converts text to speech using Wiro AI

Overview

This node converts a given text prompt into speech audio using the Wiro AI text-to-speech service. It is useful for automating voice generation tasks such as creating audio narrations, voiceovers, or spoken responses in various languages and voice styles. For example, you can input marketing copy or chatbot replies and generate corresponding speech files to enhance user engagement or accessibility.

Properties

Name Meaning
Prompt The text prompt to convert into speech audio.
Voice Choose a voice character for the generated speech. Options: Alloy, Heart, Jessica, Nova, Santa.
Language Select the language variant for the spoken output. Options: American English, Brazilian Portuguese, British English, French, Hindi, Italian, Spanish.

Output

The node outputs a JSON object with the following structure:

  • taskid: The unique identifier of the speech generation task.
  • url: The URL where the generated speech audio can be accessed once the task completes.
  • status: The status of the task, which can be:
    • "completed" when the audio is ready,
    • "failed" if the task did not complete successfully.

The node does not directly output binary audio data but provides a URL to access the generated speech file.

Dependencies

  • Requires an API key credential for the Wiro AI service.
  • Makes HTTP POST requests to the Wiro AI API endpoint for text-to-speech conversion.
  • Uses authentication headers generated from the provided API key and secret.
  • Polls the Wiro AI service until the speech generation task completes or fails.

Troubleshooting

  • Missing or invalid API credentials: Ensure that the API key and secret are correctly configured in the node credentials.
  • API response missing task ID or socket token: This indicates an issue with the request or the API service. Check the prompt and parameters for correctness and verify service availability.
  • Task status "failed": The speech generation did not succeed. Review the input parameters and try again.
  • Network or timeout errors during polling: Verify network connectivity and API service status.

Links and References

Discussion