[PR #5286] Fixed wrong /text-to-audio curl example #24857

Closed
opened 2026-02-21 20:23:49 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/5286

State: closed
Merged: Yes


Description

The API Access example for /text-to-audio is not correct.

It takes JSON data, but the example

  • is missing closing single quotation.
  • uses name-value pairs. It should post JSON data instead.
  • should output mp3 file for preview.

Fixes https://github.com/langgenius/dify/issues/5285

Type of Change

Please delete options that are not relevant.

  • Documentation Issue

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/5286 **State:** closed **Merged:** Yes --- # Description The API Access example for /text-to-audio is not correct. It takes JSON data, but the example - is missing closing single quotation. - uses name-value pairs. It should post JSON data instead. - should output mp3 file for preview. Fixes https://github.com/langgenius/dify/issues/5285 ## Type of Change Please delete options that are not relevant. - [x] Documentation Issue # How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration - [x] I have performed a self-review of my own code - [x] My changes generate no new warnings - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:23:49 -05:00
yindo closed this issue 2026-02-21 20:23:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24857