feat(chat): add SiliconFlow ASR for agent voice input
Replace Web Speech API with MediaRecorder upload to POST /api/speech/transcribe, calling SenseVoice via the existing GJL API credentials. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
445763e144
commit
8f69131872
9 files changed
+350
-215
No files matched your search
@@ -1267,6 +1267,9 @@ const messages = {
|
||||
voiceNetworkError: 'Voice recognition network error',
|
||||
voiceServiceNotAllowed: 'Voice recognition service is not allowed',
|
||||
voiceRecognitionFailed: 'Voice recognition failed. Please try again',
|
||||
voiceTranscribing: 'Transcribing...',
|
||||
voiceRecordTooShort: 'Recording too short or no speech detected',
|
||||
voiceTranscriptionFailed: 'Speech recognition failed. Please try again',
|
||||
collapseBrowser: 'Collapse Browser',
|
||||
openBrowser: 'Open Browser',
|
||||
kb: {
|
||||
@@ -2737,6 +2740,9 @@ const messages = {
|
||||
voiceNetworkError: '语音识别网络错误',
|
||||
voiceServiceNotAllowed: '不允许使用语音识别服务',
|
||||
voiceRecognitionFailed: '语音识别失败,请重试',
|
||||
voiceTranscribing: '正在识别…',
|
||||
voiceRecordTooShort: '录音太短或未检测到语音',
|
||||
voiceTranscriptionFailed: '语音识别失败,请重试',
|
||||
collapseBrowser: '收起浏览器',
|
||||
openBrowser: '打开浏览器',
|
||||
kb: {
|
||||
@@ -4066,6 +4072,9 @@ const messages = {
|
||||
voiceNetworkError: '語音辨識網路錯誤',
|
||||
voiceServiceNotAllowed: '不允許使用語音辨識服務',
|
||||
voiceRecognitionFailed: '語音辨識失敗,請重試',
|
||||
voiceTranscribing: '正在辨識…',
|
||||
voiceRecordTooShort: '錄音太短或未偵測到語音',
|
||||
voiceTranscriptionFailed: '語音辨識失敗,請重試',
|
||||
collapseBrowser: '收起瀏覽器',
|
||||
openBrowser: '打開瀏覽器',
|
||||
kb: {
|
||||
@@ -5312,6 +5321,9 @@ const messages = {
|
||||
voiceNetworkError: 'เกิดข้อผิดพลาดเครือข่ายในการรู้จำเสียง',
|
||||
voiceServiceNotAllowed: 'ไม่อนุญาตให้ใช้บริการรู้จำเสียง',
|
||||
voiceRecognitionFailed: 'การรู้จำเสียงล้มเหลว โปรดลองอีกครั้ง',
|
||||
voiceTranscribing: 'กำลังแปลงเสียง...',
|
||||
voiceRecordTooShort: 'การบันทึกสั้นเกินไปหรือไม่พบเสียงพูด',
|
||||
voiceTranscriptionFailed: 'การรู้จำเสียงล้มเหลว โปรดลองอีกครั้ง',
|
||||
collapseBrowser: 'ย่อเบราว์เซอร์',
|
||||
openBrowser: 'เปิดเบราว์เซอร์',
|
||||
kb: {
|
||||
|
||||
Reference in new issue
Block a user