# 实时语音识别文字 **Repository Path**: lwlmfy/speech-to-text ## Basic Information - **Project Name**: 实时语音识别文字 - **Description**: 实时语音识别转换成文字 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-05-30 - **Last Updated**: 2025-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 音频捕获和语音识别 在Vue 3项目中实现语音实时转文字功能,可以使用Web Speech API。 ## 安装依赖包 ```sh npm install ``` ### 运行项目 ```sh npm run dev ``` ### 项目打包 ```sh npm run build ``` ## 识别效果展示 demo ## 语音识别原理 语音识别原理: 1. 录音:使用Web Speech API的`MediaRecorder`对象来录音。 2. 识别:使用Web Speech API的`SpeechRecognition`对象来识别。 3. 播放:使用`Audio`对象播放录音。