Actions20
- Zalo Send Message Actions
- Gửi tin nhắn
- Gửi trạng thái tin nhắn
- Lấy danh sách sticker
- Lấy chi tiết sticker
- Gửi sticker
- Thả Reaction
- Gửi tin nhắn thoại
- Gửi danh thiếp
- Gửi Video
- Gửi Link
- Chuyển Tiếp Tin Nhắn
- Thêm Tin Nhắn Nhanh
- Lấy Danh Sách Tin Nhắn Nhanh
- Cập Nhật Tin Nhắn Nhanh
- Xóa Tin Nhắn Nhanh
- Đánh Dấu Chưa Đọc
- Bỏ Đánh Dấu Chưa Đọc
- Lấy Danh Sách Đánh Dấu Chưa Đọc
- Zalo Text To Speech Actions
Zalo Text To Speech → Send TTS Message
AI-generatedOverview
This node converts text to speech using the Zalo Text To Speech (TTS) API and sends the resulting audio as a voice message to a specified Zalo user or group thread. It is useful for automating voice message sending in Zalo conversations, such as sending notifications, alerts, or personalized voice messages.
Use Case Examples
- Send a voice message to a user by converting a text notification to speech.
- Send a voice message to a group chat with a custom message using a selected voice and audio encoding.
Properties
| Name | Meaning |
|---|---|
| Thread ID | ID of the user or group to send the message to, required for sending the TTS message. |
| Type | The type of the thread, either User (0) or Group (1), to specify the recipient type. |
| Text | The text content to convert to speech, required for TTS conversion. |
| Voice (Giọng đọc) | The voice to use for speech synthesis, with options for different male and female voices from different regions. |
| EnCode Output | The audio encoding format for the output speech file, such as WAV, MP3, or AAC. |
| Speed | Playback speed of the speech synthesis, ranging from 0.8 to 1.2. |
Output
JSON
success- Indicates if the TTS message was sent successfully.message- Confirmation message indicating the TTS voice message was sent.response- The response object from the Zalo API after sending the voice message.threadId- The ID of the thread (user or group) to which the message was sent.threadType- The type of the thread, either user or group.ttsUrl- The URL of the generated TTS audio file sent as the voice message.
Dependencies
- Zalo API credentials with cookie, IMEI, and user agent for authentication
- Zalo TTS API key credential for accessing the TTS service
Troubleshooting
- Ensure Zalo API credentials are correctly set and valid, including cookie, IMEI, and user agent, to avoid login errors.
- Verify that the Zalo TTS API key credential is provided and valid to prevent API errors.
- Check that the text to convert is not empty and the thread ID is correctly specified.
- Common error messages include 'Failed to initialize Zalo API' indicating credential issues, and 'Zalo TTS API error' indicating problems with the TTS service response.
- If the audio URL is missing in the TTS API response, the node will throw an error indicating failure to get the audio URL.