[PR #145] [CLOSED] feat:add param instruction for tts interface #181

Closed
opened 2026-02-15 21:16:07 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/145
Author: @leslie2046
Created: 5/15/2025
Status: Closed

Base: mainHead: tts-instruction


📝 Commits (1)

  • 070ba2e feat:add param instruction for tts interface

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/openai_compatible/tts.py (+3 -0)

📄 Description

https://platform.openai.com/docs/api-reference/audio/createSpeech
https://www.modelscope.cn/studios/iic/CosyVoice2-0.5B
Since some advanced TTS models supporting instruction control, we should support instruction control in the SDK as optional param.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/145 **Author:** [@leslie2046](https://github.com/leslie2046) **Created:** 5/15/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tts-instruction` --- ### 📝 Commits (1) - [`070ba2e`](https://github.com/langgenius/dify-plugin-sdks/commit/070ba2e9b6149254375f6607f38e660679979650) feat:add param `instruction` for tts interface ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/openai_compatible/tts.py` (+3 -0) </details> ### 📄 Description https://platform.openai.com/docs/api-reference/audio/createSpeech https://www.modelscope.cn/studios/iic/CosyVoice2-0.5B Since some advanced TTS models supporting instruction control, we should support instruction control in the SDK as optional param. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:07 -05:00
yindo closed this issue 2026-02-15 21:16:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#181