当所有扩展都被禁用时,是否会出现这个问题?:是
- VS Code 版本:1.87.0(用户设置)
提交:019f4d1
日期:2024-02-27T23:41:44.469Z
Electron:27.3.2
ElectronBuildId:26836302
Chromium:118.0.5993.159
Node.js:18.17.1
V8:11.8.172.18-electron.0
- OS 版本:Windows_NT x64 10.0.19045
重现步骤:
我正在使用 Windows 10 波兰界面,但是在设置 -> Speech 中配置了英语 (US),并在设置 -> Language (Anglish 和 Polish)中安装了两种语言。
当尝试使用 Speech 扩展时,我遇到了这个错误:
2024-02-29 08:58:45.594 [trace] [vscode-speech-0] starting speech-to-text session (language: en-US, model: Microsoft Speech Recognizer en-US FP Model V8.1)
2024-02-29 08:58:45.699 [error] [vscode-speech-0] error: Invalid argument exception: Cannot find an embedded speech recognition model by name "Microsoft Speech Recognizer en-US FP Model V8.1". Check that the arguments for FromPath or FromPaths are valid model paths and SetSpeechRecognitionModel is called with a valid model name.
[CALL STACK BEGIN]
> recognizer_create_speech_recognizer_from_config
- recognizer_create_speech_recognizer_from_config
- 00007FFE65676B44 (SymFromAddr() error: Próbowano uzyskać dostęp do nieprawidłowego adresu.)
- 00007FFE656781A4 (SymFromAddr() error: Próbowano uzyskać dostęp do nieprawidłowego adresu.)
- 00007FFE65680E1B (SymFromAddr() error: Próbowano uzyskać dostęp do nieprawidłowego adresu.)
- 00007FFE656735F5 (SymFromAddr() error: Próbowano uzyskać dostęp do nieprawidłowego adresu.)
- uv_dlerror
- uv_dlerror
- uv_cancel
- uv_thread_create_ex
- Cr_z_adler32
- BaseThreadInitThunk
- RtlUserThreadStart
[CALL STACK END]
2024-02-29 08:58:45.704 [trace] [vscode-speech-0] disposed speech-to-text session
2024-02-29 08:59:02.906 [trace] [vscode-speech-0] disposing speech-to-text session
6条答案
按热度按时间z4bn682m1#
你能尝试使用我们的夜间内部构建来复现吗?你可以从以下地址尝试我们的预览版本:https://code.visualstudio.com/insiders/
然后,请也安装预发布语音扩展。
wpcxdonn2#
遗憾的是,在VS Code Insiders发布和预发布版本的VS Code语音扩展(v0.7.2024022820(预发布版))中也出现了相同的结果:
我注意到在控制面板中的Speech属性中显示的语言版本有点不同:
v8.0 vs预期的v8.1,但我不知道这是否重要。
jutyujz03#
@RafalSkorka what is your extensions folder, can you "Open Extensions Folder" command:
Is that maybe a network share or UNC path? That is where we would load the model from, specifically from here:
PS: that Windows setting seems unrelated to the speech extension in VS Code, we ship our own model for speech recognition.
sf6xfgos4#
我的扩展文件夹路径是(隐藏)
C:\Users\Some polish name with spaces and ń\.vscode-insiders\extensions
我按照你的提示在
c:\code\
文件夹中安装了Code Insiders,但这并没有帮助,因为扩展仍然在上面的文件夹中。然而,显然有
--extensions-dir
命令行,当使用它时,允许我成功地使用语音扩展:缺点是,
--extensions-dir
参数似乎不会永久更改路径,所以我需要每次运行代码时都指定它,或者找到一种让它始终生效的方法。无论如何,感谢你的帮助!
zzwlnbp85#
感谢,我可以复制并作为上游报告:Azure-Samples/cognitive-services-speech-sdk#2288
k2arahey6#
这个问题还没有解决吗?因为我更新了扩展,但它仍然存在。