Actions9
- Instrumental Actions
- Lyric Actions
- Song Actions
- Text To Speech Actions
Text To Speech → Create Speech
AI-generatedOverview
This node interacts with the Mureka API to generate speech audio from input text. Specifically, the "Text To Speech" resource with the "Create Speech" operation converts provided text into spoken audio using selectable voices or a custom voice ID. This is useful for automating voice generation in applications such as voice assistants, audiobooks, accessibility tools, or any scenario requiring dynamic text-to-audio conversion.
For example, you can input a greeting text and select a voice like "Luna" to produce an audio file of that greeting spoken aloud. Alternatively, you can specify a custom voice by its ID to use a unique voice model.
Properties
| Name | Meaning |
|---|---|
| Text | The text string to be converted into speech audio. |
| Voice | The voice to use for generating the audio. Options: Emma, Ethan, Jake, Luna, Victoria, or "Use Voice ID". |
| Voice ID | A string identifier to specify a custom voice for audio generation. Only one of Voice or Voice ID should be provided. |
Output
The node outputs a JSON array where each item contains the response from the Mureka API for the speech generation request. This typically includes metadata about the generated audio and a URL or reference to the audio file.
If the node supports binary data output (not explicitly shown here), it would represent the generated audio content itself, but based on the code, the output is JSON with links or references to the generated speech audio.
Dependencies
- Requires an API key credential for authenticating requests to the Mureka API.
- The node makes HTTP POST requests to
https://api.mureka.ai/v1/tts/generateendpoint. - Proper network access to the Mureka API service is necessary.
- No additional environment variables are indicated beyond the API authentication credential.
Troubleshooting
Error: "The voice or voice_id parameter must be entered."
This error occurs if neither a voice nor a voice ID is provided, or if both are provided simultaneously. To fix this, provide exactly one of these parameters.API Request Failures
Network issues, invalid API keys, or exceeding rate limits may cause request failures. Verify your API credentials and network connectivity.Invalid Voice ID
If a custom voice ID is used, ensure it is valid and recognized by the Mureka API.Empty Text Input
Providing empty text will likely result in an error or no audio generated. Ensure the "Text" property is not empty.
Links and References
- Mureka API Documentation (assumed official docs for more details)
- n8n documentation on Creating Custom Nodes