Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

請問如何更換為粵語模型? #127

Open
Stanley121236 opened this issue May 15, 2024 · 2 comments
Open

請問如何更換為粵語模型? #127

Stanley121236 opened this issue May 15, 2024 · 2 comments

Comments

@Stanley121236
Copy link

本來曾經尚嘗試更換模型為粵語模型(csukuangfj/sherpa-onnx-paraformer-trilingual-zh-cantonese-en)及其他模型,能成功運行但不能識別出結果,請問是什麼問題?是要重新打包嗎?

@hsh778205
Copy link

试试从.py文件启动这个程序?或者看看.py里面需要更换模型地址?

@MiaChaos
Copy link

MiaChaos commented Aug 20, 2024

我都有同樣問題呢,嘗試直接用cmd運行core_server.py也就做到這個程度
image
image

但神奇的是如果直接運行start_server.exe,server這邊的內容又不同
image
image

儲存的音頻文件名稱都不同呢
image

文件則是簡單地這樣改了下config.py
#paraformer_path = Path() / 'models' / 'paraformer-offline-zh' / 'model.int8.onnx'
#tokens_path = Path() / 'models' / 'paraformer-offline-zh' / 'tokens.txt'
paraformer_path = Path() / 'models' / 'sherpa-onnx-paraformer-trilingual-zh-cantonese-en' / 'model.int8.onnx'
tokens_path = Path() / 'models' / 'sherpa-onnx-paraformer-trilingual-zh-cantonese-en' / 'tokens.txt'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants