Skip to content

Commit b7c9a5b

Browse files
perf: mobile voice input (#4437)
* update:Mobile voice interaction (#4362) * Add files via upload * Add files via upload * Update ollama.md * Update ollama.md * Add files via upload * Update useSpeech.ts * Update ChatInput.tsx * Update useSpeech.ts * Update ChatInput.tsx * Update useSpeech.ts * Update constants.ts * Add files via upload * Update ChatInput.tsx * Update useSpeech.ts * Update useSpeech.ts * Update useSpeech.ts * Update ChatInput.tsx * Add files via upload * Update common.json * Update VoiceInput.tsx * Update ChatInput.tsx * Update VoiceInput.tsx * Update useSpeech.ts * Update useSpeech.ts * Update common.json * Update common.json * Update common.json * Update VoiceInput.tsx * Update VoiceInput.tsx * Update ChatInput.tsx * Update VoiceInput.tsx * Update ChatInput.tsx * Update VoiceInput.tsx * Update ChatInput.tsx * Update useSpeech.ts * Update common.json * Update chat.json * Update common.json * Update chat.json * Update common.json * Update chat.json * Update VoiceInput.tsx * Update ChatInput.tsx * Update useSpeech.ts * Update VoiceInput.tsx * speech ui * 优化语音输入组件,调整输入框显示逻辑,修复语音输入遮罩层样式,更新画布背景透明度,增强用户交互体验。 (#4435) * perf: mobil voice input --------- Co-authored-by: dreamer6680 <1468683855@qq.com>
1 parent d27c8eb commit b7c9a5b

File tree

8 files changed

+675
-323
lines changed

8 files changed

+675
-323
lines changed

Diff for: packages/web/components/common/Icon/constants.ts

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export const iconPaths = {
183183
'core/chat/feedback/goodLight': () => import('./icons/core/chat/feedback/goodLight.svg'),
184184
'core/chat/fileSelect': () => import('./icons/core/chat/fileSelect.svg'),
185185
'core/chat/finishSpeak': () => import('./icons/core/chat/finishSpeak.svg'),
186+
'core/chat/backText':() => import('./icons/core/chat/backText.svg'),
186187
'core/chat/imgSelect': () => import('./icons/core/chat/imgSelect.svg'),
187188
'core/chat/quoteFill': () => import('./icons/core/chat/quoteFill.svg'),
188189
'core/chat/quoteSign': () => import('./icons/core/chat/quoteSign.svg'),
Loading

Diff for: packages/web/i18n/en/chat.json

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"Delete_all": "Clear All Lexicon",
44
"LLM_model_response_empty": "The model flow response is empty, please check whether the model flow output is normal.",
55
"ai_reasoning": "Thinking process",
6+
"back_to_text": "Text input",
67
"chat.quote.No Data": "The file cannot be found",
78
"chat.quote.deleted": "This data has been deleted ~",
89
"chat_history": "Conversation History",
@@ -16,6 +17,8 @@
1617
"content_empty": "No Content",
1718
"contextual": "{{num}} Contexts",
1819
"contextual_preview": "Contextual Preview {{num}} Items",
20+
"core.chat.moveCancel": "Swipe to Cancel",
21+
"core.chat.shortSpeak": "Speaking Time is Too Short",
1922
"csv_input_lexicon_tip": "Only CSV batch import is supported, click to download the template",
2023
"custom_input_guide_url": "Custom Lexicon URL",
2124
"data_source": "Source Dataset: {{name}}",
@@ -41,11 +44,14 @@
4144
"not_query": "Missing query content",
4245
"not_select_file": "No file selected",
4346
"plugins_output": "Plugin Output",
47+
"press_to_speak": "Hold down to speak",
4448
"query_extension_IO_tokens": "Problem Optimization Input/Output Tokens",
4549
"query_extension_result": "Problem optimization results",
4650
"question_tip": "From top to bottom, the response order of each module",
4751
"read_raw_source": "Open the original text",
4852
"reasoning_text": "Thinking process",
53+
"release_cancel": "Release Cancel",
54+
"release_send": "Release send, slide up to cancel",
4955
"response.child total points": "Sub-workflow point consumption",
5056
"response.dataset_concat_length": "Combined total",
5157
"response.node_inputs": "Node Inputs",

Diff for: packages/web/i18n/zh-CN/chat.json

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"Delete_all": "清空词库",
44
"LLM_model_response_empty": "模型流响应为空,请检查模型流输出是否正常",
55
"ai_reasoning": "思考过程",
6+
"back_to_text": "返回输入",
67
"chat.quote.No Data": "找不到该文件",
78
"chat.quote.deleted": "该数据已被删除~",
89
"chat_history": "聊天记录",
@@ -16,6 +17,8 @@
1617
"content_empty": "内容为空",
1718
"contextual": "{{num}}条上下文",
1819
"contextual_preview": "上下文预览 {{num}} 条",
20+
"core.chat.moveCancel": "上滑取消",
21+
"core.chat.shortSpeak": "说话时间太短",
1922
"csv_input_lexicon_tip": "仅支持 CSV 批量导入,点击下载模板",
2023
"custom_input_guide_url": "自定义词库地址",
2124
"data_source": "来源知识库: {{name}}",
@@ -41,11 +44,14 @@
4144
"not_query": "缺少查询内容",
4245
"not_select_file": "未选择文件",
4346
"plugins_output": "插件输出",
47+
"press_to_speak": "按住说话",
4448
"query_extension_IO_tokens": "问题优化输入/输出 Tokens",
4549
"query_extension_result": "问题优化结果",
4650
"question_tip": "从上到下,为各个模块的响应顺序",
4751
"read_raw_source": "打开原文",
4852
"reasoning_text": "思考过程",
53+
"release_cancel": "松开取消",
54+
"release_send": "松开发送,上滑取消",
4955
"response.child total points": "子工作流积分消耗",
5056
"response.dataset_concat_length": "合并后总数",
5157
"response.node_inputs": "节点输入",

Diff for: packages/web/i18n/zh-Hant/chat.json

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"Delete_all": "清除所有詞彙",
44
"LLM_model_response_empty": "模型流程回應為空,請檢查模型流程輸出是否正常",
55
"ai_reasoning": "思考過程",
6+
"back_to_text": "返回輸入",
67
"chat.quote.No Data": "找不到該文件",
78
"chat.quote.deleted": "該數據已被刪除~",
89
"chat_history": "對話紀錄",
@@ -35,16 +36,20 @@
3536
"is_chatting": "對話進行中...請稍候",
3637
"items": "",
3738
"module_runtime_and": "模組執行總時間",
39+
"moveCancel": "上滑取消",
3840
"multiple_AI_conversations": "多組 AI 對話",
3941
"new_input_guide_lexicon": "新增詞彙庫",
4042
"no_workflow_response": "無工作流程資料",
4143
"not_query": "缺少查詢內容",
4244
"not_select_file": "尚未選取檔案",
4345
"plugins_output": "外掛程式輸出",
46+
"press_to_speak": "按住說話",
4447
"query_extension_IO_tokens": "問題優化輸入/輸出 Tokens",
4548
"question_tip": "由上至下,各個模組的回應順序",
4649
"read_raw_source": "打開原文",
4750
"reasoning_text": "思考過程",
51+
"release_cancel": "鬆開取消",
52+
"release_send": "鬆開發送,上滑取消",
4853
"response.child total points": "子工作流程點數消耗",
4954
"response.dataset_concat_length": "合併總數",
5055
"response.node_inputs": "節點輸入",
@@ -53,6 +58,7 @@
5358
"select_file": "上傳檔案",
5459
"select_file_img": "上傳檔案 / 圖片",
5560
"select_img": "上傳圖片",
61+
"shortSpeak ": "說話時間太短",
5662
"source_cronJob": "定時執行",
5763
"stream_output": "串流輸出",
5864
"to_dataset": "前往知識庫",

0 commit comments

Comments
 (0)