How to Use HyperVoice Text-to-Speech in N8N

With the HyperVoice TTS API, you can convert text to realistic speech directly in your N8N workflows. Follow these steps to set it up:

🛠️ Step-by-Step Setup in N8N

1. Create a New HTTP Request Node

  • Drag in an HTTP Request node into your workflow.

2. Configure the Request

  • Method: GET
  • Endpoint: https://taskagi.net/api/hypervoice/text-to-speech

3. Authentication

  • Authentication: Generic Credential Type
  • Generic Auth Type: Header Auth
  • Select or create your Header Auth credential and insert your API key. Set name to Authorization, value “Bearer YOUR-API-KEY” as seen in the image below.

4. Send Body

  • Toggle Send Body to ON
  • Body Content Type: JSON
  • Specify Body: Using Fields Below

5. Set the Body Parameters

Add the following fields:

  • gen_text: Your desired text (e.g. This is your text)
  • actor: Choose a voice actor.

6. Run the Node

Click Test Step to trigger the request.

✅ Output

If successful, you’ll receive a JSON response like this:





{
"message": "TTS generated successfully.",
"audio_url": "https://taskagi.net/public/storage/resources/audio/output.wav"
}

Copy the audio_url to stream or download the generated audio.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *