k2-fsa / sherpa-onnx

Speech-to-text, text-to-speech, speaker recognition, 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

Home Page:https://k2-fsa.github.io/sherpa/onnx/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i enable cuda support for my C# project

kiraYuukiAsuna opened this issue · comments

Hi! I didn't see any pre-built nuget package. So if i want to use cuda in my C# project, i need to compile everything by myself, right?

Please search for existing issues.

You can.download prebuilt libs.

I searched but found nothing about it. I am using version 1.10.23. I tried to replace these files:
image
But when i run my C# program, i got a 0x00 handle:
image
I guess i need to replace the sherpa-onnx.dll, the binding to sherpa-onnx-c-api.dll. But i don't know how to generate it?

I guess i need to replace the sherpa-onnx.dll, the binding to sherpa-onnx-c-api.dll. But i don't know how to generate it?

Please have a look at
#1146

(You need to replace linux with windows)


The screenshot shows the Handle is 0x0, which means your config is not correct.

Please check the output logs in you console carefully and you will find which field in your config is wrong, e.g., some path does not exist, etc.