Overview
This node converts input text into speech audio using the EdgeTTS service. It supports selecting different voices, adjusting pitch, rate, and volume of the speech output. The node is useful for automating text-to-speech tasks such as generating audio content, voice notifications, or accessibility features in workflows.
Use Case Examples
- Converting a text message into an audio file for playback in a customer support system.
- Generating voice narration for e-learning content by specifying the desired voice and speech parameters.
- Creating audio alerts in a monitoring system by converting alert text into speech with customized pitch and volume.
Properties
| Name | Meaning |
|---|---|
| Text | The text string to be converted into speech audio. This is a required input. |
| Voice | The voice to use for speech synthesis. Multiple language and voice options are available to customize the speech output. |
| Pitch | Adjusts the pitch of the synthesized speech. Accepts a string representing percentage change (e.g., '0%'). |
| Rate | Adjusts the speaking rate of the synthesized speech. Accepts a string representing percentage change (e.g., '0%'). |
| Volume | Adjusts the volume of the synthesized speech. Accepts a string representing percentage change (e.g., '0%'). |
Output
Binary
The node outputs the synthesized speech audio as binary data in MP3 format. The binary output includes the audio data, MIME type 'audio/mpeg', and a generated filename with a '.mp3' extension.
Dependencies
- Uses the 'node-edge-tts' library to perform text-to-speech conversion via the EdgeTTS service.
- Requires file system access to read and delete temporary audio files.
Troubleshooting
- Ensure the input text is not empty as it is required for speech synthesis.
- Verify that the selected voice is supported and correctly specified.
- Check file system permissions to allow reading and deleting temporary audio files.
- If the node fails to generate audio, confirm that the 'node-edge-tts' library is properly installed and accessible.
- Network connectivity is required for the EdgeTTS service; ensure the environment has internet access.