diff --git a/chat-client/src/api/chat.ts b/chat-client/src/api/chat.ts
index 6c91a8b..a29efaa 100644
--- a/chat-client/src/api/chat.ts
+++ b/chat-client/src/api/chat.ts
@@ -1,6 +1,7 @@
import request from '@/utils/request'
import requestStream from '@/utils/requestStream'
+import { fileUploadRequest } from '@/utils/request'
// 聊天消息相关接口定义
@@ -84,4 +85,12 @@ export const stopMessagesStream = (chatType: Number,taskId: string, userId: stri
userId
}
})
-}
\ No newline at end of file
+}
+
+export const voiceToText = (data: FormData) => {
+ return fileUploadRequest({
+ url: '/brichat-service/chat/voiceToText',
+ method: 'post',
+ data
+ })
+}
diff --git a/chat-client/src/views/chatweb/components/InputArea.vue b/chat-client/src/views/chatweb/components/InputArea.vue
index 5aa212e..722ed92 100644
--- a/chat-client/src/views/chatweb/components/InputArea.vue
+++ b/chat-client/src/views/chatweb/components/InputArea.vue
@@ -24,6 +24,32 @@
:autosize="{ minRows: 1, maxRows: 4 }"
>
+
+
+