feat: 语言转文字默认语言设置为英文
This commit is contained in:
@@ -208,7 +208,7 @@ const startRecording = () => {
|
||||
// 配置参数
|
||||
speechRecognition.continuous = true
|
||||
speechRecognition.interimResults = true
|
||||
speechRecognition.lang = 'zh-CN' // 设置为中文
|
||||
speechRecognition.lang = 'en-US' // 设置为英文
|
||||
}
|
||||
|
||||
// 识别开始
|
||||
|
||||
Reference in New Issue
Block a user