k2-fsa / sherpa-onnx

Speech-to-text, text-to-speech, speaker diarization, and VAD using next-gen Kaldi with onnxruntime without Internet connection. Support embedded systems, Android, iOS, Raspberry Pi, RISC-V, x86_64 servers, websocket server/client, C/C++, Python, Kotlin, C#, Go, NodeJS, Java, Swift, Dart, JavaScript, Flutter, Object Pascal, Lazarus, Rust
https://k2-fsa.github.io/sherpa/onnx/index.html
Apache License 2.0
3.41k stars 408 forks source link

windows上运行speaker-identification-with-vad.py,提示sherpa_onnx没有SpeakerEmbeddingExtractor成员 #537

Closed zhoulei007 closed 9 months ago

zhoulei007 commented 9 months ago

(py3_8) PS D:\gamefiles\Kaldi\cp2\sherpa-onnx> .\go.bat

D:\gamefiles\Kaldi\cp2\sherpa-onnx>python D:\gamefiles\Kaldi\cp2\sherpa-onnx\python-api-examples\speaker-identification-with-vad.py --silero-vad-model=D:\gamefiles\Kaldi\silero_vad.onnx --speaker-file speaker.txt --model wespeaker_zh_cnceleb_resnet34.onnx Traceback (most recent call last): File "D:\gamefiles\Kaldi\cp2\sherpa-onnx\python-api-examples\speaker-identification-with-vad.py", line 169, in extractor: sherpa_onnx.SpeakerEmbeddingExtractor, AttributeError: module 'sherpa_onnx' has no attribute 'SpeakerEmbeddingExtractor'

D:\gamefiles\Kaldi\cp2\sherpa-onnx>pause 请按任意键继续. . .

csukuangfj commented 9 months ago

https://k2-fsa.github.io/sherpa/onnx/python/install.html# 请从源码编译。还没有发布新版本

等把说话人识别的安卓demo写好了,再发布新版本

zhoulei007 commented 9 months ago

好,静候佳音

csukuangfj commented 9 months ago

已发布新版本。 请使用

pip install -U sherpa-onnx