Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

docs: Add text_to_speech left out in the API response (#19862)

yeyunwena287da9ccd82
diff --git a/web/app/components/develop/template/template_advanced_chat.en.mdx b/web/app/components/develop/template/template_advanced_chat.en.mdx
index f46094978d3..ea671888cae 100644
--- a/web/app/components/develop/template/template_advanced_chat.en.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.en.mdx
@@ -1165,6 +1165,13 @@ Chat applications support session persistence, allowing previous chat history to
- `enabled` (bool) Whether it is enabled
- `speech_to_text` (object) Speech to text
- `enabled` (bool) Whether it is enabled
+ - `text_to_speech` (object) Text to speech
+ - `enabled` (bool) Whether it is enabled
+ - `voice` (string) Voice type
+ - `language` (string) Language
+ - `autoPlay` (string) Auto play
+ - `enabled` Enabled
+ - `disabled` Disabled
- `retriever_resource` (object) Citation and Attribution
- `enabled` (bool) Whether it is enabled
- `annotation_reply` (object) Annotation reply
@@ -1220,6 +1227,12 @@ Chat applications support session persistence, allowing previous chat history to
"speech_to_text": {
"enabled": true
},
+ "text_to_speech": {
+ "enabled": true,
+ "voice": "sambert-zhinan-v1",
+ "language": "zh-Hans",
+ "autoPlay": "disabled"
+ },
"retriever_resource": {
"enabled": true
},
diff --git a/web/app/components/develop/template/template_advanced_chat.ja.mdx b/web/app/components/develop/template/template_advanced_chat.ja.mdx
index 75c69a4deee..96e23f41c1f 100644
--- a/web/app/components/develop/template/template_advanced_chat.ja.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.ja.mdx
@@ -1165,6 +1165,13 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
- `enabled` (bool) 有効かどうか
- `speech_to_text` (object) 音声からテキストへ
- `enabled` (bool) 有効かどうか
+ - `text_to_speech` (object) テキストから音声へ
+ - `enabled` (bool) 有効かどうか
+ - `voice` (string) 音声タイプ
+ - `language` (string) 言語
+ - `autoPlay` (string) 自動再生
+ - `enabled` 有効
+ - `disabled` 無効
- `retriever_resource` (object) 引用と帰属
- `enabled` (bool) 有効かどうか
- `annotation_reply` (object) 注釈返信
@@ -1220,6 +1227,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
"speech_to_text": {
"enabled": true
},
+ "text_to_speech": {
+ "enabled": true,
+ "voice": "sambert-zhinan-v1",
+ "language": "zh-Hans",
+ "autoPlay": "disabled"
+ },
"retriever_resource": {
"enabled": true
},
diff --git a/web/app/components/develop/template/template_advanced_chat.zh.mdx b/web/app/components/develop/template/template_advanced_chat.zh.mdx
index 9077f5492f4..b2ec875be58 100755
--- a/web/app/components/develop/template/template_advanced_chat.zh.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.zh.mdx
@@ -1199,6 +1199,13 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- `enabled` (bool) 是否开启
- `speech_to_text` (object) 语音转文本
- `enabled` (bool) 是否开启
+ - `text_to_speech` (object) 文本转语音
+ - `enabled` (bool) 是否开启
+ - `voice` (string) 语音类型
+ - `language` (string) 语言
+ - `autoPlay` (string) 自动播放
+ - `enabled` 开启
+ - `disabled` 关闭
- `retriever_resource` (object) 引用和归属
- `enabled` (bool) 是否开启
- `annotation_reply` (object) 标记回复
diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx
index c45a803cb2c..54052507355 100644
--- a/web/app/components/develop/template/template_chat.en.mdx
+++ b/web/app/components/develop/template/template_chat.en.mdx
@@ -1201,6 +1201,13 @@ Chat applications support session persistence, allowing previous chat history to
- `enabled` (bool) Whether it is enabled
- `speech_to_text` (object) Speech to text
- `enabled` (bool) Whether it is enabled
+ - `text_to_speech` (object) Text to speech
+ - `enabled` (bool) Whether it is enabled
+ - `voice` (string) Voice type
+ - `language` (string) Language
+ - `autoPlay` (string) Auto play
+ - `enabled` Enabled
+ - `disabled` Disabled
- `retriever_resource` (object) Citation and Attribution
- `enabled` (bool) Whether it is enabled
- `annotation_reply` (object) Annotation reply
@@ -1256,6 +1263,12 @@ Chat applications support session persistence, allowing previous chat history to
"speech_to_text": {
"enabled": true
},
+ "text_to_speech": {
+ "enabled": true,
+ "voice": "sambert-zhinan-v1",
+ "language": "zh-Hans",
+ "autoPlay": "disabled"
+ },
"retriever_resource": {
"enabled": true
},
diff --git a/web/app/components/develop/template/template_chat.ja.mdx b/web/app/components/develop/template/template_chat.ja.mdx
index 81385ed3f5c..9d9376a6e26 100644
--- a/web/app/components/develop/template/template_chat.ja.mdx
+++ b/web/app/components/develop/template/template_chat.ja.mdx
@@ -1192,6 +1192,13 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
- `enabled` (bool) 有効かどうか
- `speech_to_text` (object) 音声からテキストへ
- `enabled` (bool) 有効かどうか
+ - `text_to_speech` (object) テキストから音声へ
+ - `enabled` (bool) 有効かどうか
+ - `voice` (string) 音声タイプ
+ - `language` (string) 言語
+ - `autoPlay` (string) 自動再生
+ - `enabled` 有効
+ - `disabled` 無効
- `retriever_resource` (object) 引用と帰属
- `enabled` (bool) 有効かどうか
- `annotation_reply` (object) 注釈返信
@@ -1247,6 +1254,12 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
"speech_to_text": {
"enabled": true
},
+ "text_to_speech": {
+ "enabled": true,
+ "voice": "sambert-zhinan-v1",
+ "language": "zh-Hans",
+ "autoPlay": "disabled"
+ },
"retriever_resource": {
"enabled": true
},
diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx
index 866170027f8..d5b4e459ff4 100644
--- a/web/app/components/develop/template/template_chat.zh.mdx
+++ b/web/app/components/develop/template/template_chat.zh.mdx
@@ -1204,6 +1204,13 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- `enabled` (bool) 是否开启
- `speech_to_text` (object) 语音转文本
- `enabled` (bool) 是否开启
+ - `text_to_speech` (object) 文本转语音
+ - `enabled` (bool) 是否开启
+ - `voice` (string) 语音类型
+ - `language` (string) 语言
+ - `autoPlay` (string) 自动播放
+ - `enabled` 开启
+ - `disabled` 关闭
- `retriever_resource` (object) 引用和归属
- `enabled` (bool) 是否开启
- `annotation_reply` (object) 标记回复