Zalo Send Message icon

Zalo Send Message

Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie

Zalo Text To Speech → Convert Text to Speech

AI-generated

Overview

This node converts input text into speech using the Zalo Text To Speech (TTS) API. It supports selecting different voices, encoding formats, and playback speeds. The node is useful for applications that require generating audio from text, such as creating voice messages, accessibility features, or automated announcements.

Use Case Examples

  1. Convert a given text into an audio file URL using a selected voice and encoding format.
  2. Generate speech audio with customized playback speed for use in multimedia projects.

Properties

Name Meaning
Text The text to convert to speech, provided as a string input.
Voice (Giọng đọc) The voice to use for the speech synthesis, selectable from predefined voice options representing different genders and regions.
EnCode Output The audio encoding format for the output speech, selectable as WAV, MP3, or AAC.
Speed Playback speed of the generated speech, ranging from 0.8 to 1.2.

Output

JSON

  • data
    • url - URL of the generated speech audio file
  • error - Error message if the TTS API call fails
  • error_code - Error code returned by the TTS API
  • error_message - Detailed error message from the TTS API

Dependencies

  • Zalo TTS API key credential required for authentication

Troubleshooting

  • Ensure the Zalo TTS API credentials are correctly set and valid; missing or invalid API key will cause authentication errors.
  • Check the text input is not empty and properly encoded to avoid API request errors.
  • If the API returns an error, review the error_message field for details and adjust parameters accordingly.
  • Network issues or incorrect endpoint URL can cause request failures; verify connectivity and API endpoint correctness.

Discussion