feat(engine): 优化 Vosk 字幕引擎支持

- 实现文件夹选择功能,用于选择 Vosk 模型路径
- 在 EngineControl 组件中添加模型路径选择按钮和相关提示
- 在 EngineStatus 组件中增加对空模型路径的检查和错误提示
This commit is contained in:
himeditator
2025-07-10 11:22:39 +08:00
parent 1c29fd5adc
commit d354a6fefa
11 changed files with 109 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ def resampleRawChunk(chunk, channels, orig_sr, target_sr, mode="sinc_best"):
def resampleMonoChunk(chunk, orig_sr, target_sr, mode="sinc_best"):
"""
将当前单通道进行重采样
将当前单通道音频块进行重采样
Args:
chunk: (bytes)单通道音频数据块