kaldi icon indicating copy to clipboard operation
kaldi copied to clipboard

Building on Windows

Open peterkronenberg opened this issue 3 years ago • 12 comments

Sorry if this isn't the right place for this. Wondering if there is any progress on building Kaldi on Windows? I'm want to be able to use Vosk and following the general procedure they have at https://alphacephei.com/vosk/install. Not having much luck. I've tried doing it under Msys.

Searching the web, it seems that many people have attempted this, but haven't seen anyone yet who has it working. Any suggestions? I'll try any environment or tool on Windows that I need to. I'm an experienced Java developer, but don't know much of the nitty-gritty around gcc and associated tools on Linux (although I can find my way around a Linux system)

Any help would be appreciated

peterkronenberg avatar Feb 02 '21 17:02 peterkronenberg

Depends what you need Kaldi for. We do have some resources for building on Windows- see windows/-- but not all parts of Kaldi build. It's possible to get it working for inference (although you'll have to do some messing around with BLAS libraries probably), but not really for training. It's hard to keep things working on Windows because they change the format of the build files too often.

On Wed, Feb 3, 2021 at 1:44 AM Peter Kronenberg [email protected] wrote:

Sorry if this isn't the right place for this. Wondering if there is any progress on building Kaldi on Windows? I'm want to be able to use Vosk and following the general procedure they have at https://alphacephei.com/vosk/install. Not having much luck. I've tried doing it under Msys.

Searching the web, it seems that many people have attempted this, but haven't seen anyone yet who has it working. Any suggestions? I'll try any environment or tool on Windows that I need to. I'm an experienced Java developer, but don't know much of the nitty-gritty around gcc and associated tools on Linux (although I can find my way around a Linux system)

Any help would be appreciated

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLO3DZE2VPX7ILUEVXZTS5A2Y5ANCNFSM4W7FLXJA .

danpovey avatar Feb 03 '21 02:02 danpovey

@danpovey is there a plan to develop a .NETcore wrapper for c# developer. Currently I am using .NETCore DeepSpeech. However, it seems kaldi for german is making more progress than deepspeech for German. I urge Kaldi to consider a .NETcore wrapper.

GeorgeS2019 avatar Feb 16 '21 09:02 GeorgeS2019

I'm afraid not. Right now I am focusing on the "next generation" of Kaldi, which is separate projects (k2/lhotse/snowfall)...

On Tue, Feb 16, 2021 at 5:13 PM GeorgeS2019 [email protected] wrote:

@danpovey https://github.com/danpovey is there a plan to develop a .NETcore wrapper for c# developer. Currently I am using .NETCore DeepSpeech. However, it seems kaldi for german is making more progress than deepspeech for German. I urge Kaldi to consider a .NETcore wrapper.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4445#issuecomment-779695811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLOYVZHFKZ2V6LORXK5TS7IZM5ANCNFSM4W7FLXJA .

danpovey avatar Feb 16 '21 09:02 danpovey

@danpovey after further effort, just realized how to do that using dotnetCore. Great work for Kaldi!

GeorgeS2019 avatar Feb 16 '21 20:02 GeorgeS2019

Since this issue has higher visibility worth to note that we successfully build Kaldi for Win32 and Win64 with MINGW, the docker for build is here:

https://github.com/alphacep/vosk-api/blob/master/travis/Dockerfile.win

the prebuilt binaries for dotnet are available here for example:

https://www.nuget.org/packages/Vosk/

Windows and Linux are supported, probably Mac too.

nshmyrev avatar Feb 16 '21 20:02 nshmyrev

@nshmyrev Kaldi Visual Studio Solution generated by cmake

GeorgeS2019 avatar Feb 16 '21 20:02 GeorgeS2019

@danpovey after further effort, just realized how to do that using dotnetCore. Great work for Kaldi!

Hey mate, can you please share info or at least the source where you figured out how to set up everything for .NET please?

marekCs avatar Sep 04 '23 06:09 marekCs

@marekCs

Will you consider Next-gen Kaldi?

Both sherpa-onnx and sherpa-ncnn support .Net, tested on Linux, macOS, and Windows.

csukuangfj avatar Sep 04 '23 06:09 csukuangfj

Wow, will check it all thx.

Sent from Proton Mail for iOS

V po, zář 4, 2023 v 08:20, Fangjun Kuang @.***(mailto:V po, zář 4, 2023 v 08:20, Fangjun Kuang < napsal/a:

@.***(https://github.com/marekCs)

Will you consider Next-gen Kaldi?

Both sherpa-onnx and sherpa-ncnn support .Net, tested on Linux, macOS, and Windows.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

marekCs avatar Sep 04 '23 06:09 marekCs

Please see the documentation at https://k2-fsa.github.io/sherpa/onnx/csharp-api/index.html

csukuangfj avatar Sep 04 '23 06:09 csukuangfj

Thank you so much. Just for clarifying. Streaming/unstreamed (online/offline) doesn't depend on me using it on an INTERNET online/offline machine, right? It's a live voice or already stored recorded voice, am I right?

Sent from Proton Mail for iOS

V po, zář 4, 2023 v 08:33, Fangjun Kuang @.***(mailto:V po, zář 4, 2023 v 08:33, Fangjun Kuang < napsal/a:

Please see the documentation at https://k2-fsa.github.io/sherpa/onnx/csharp-api/index.html

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

marekCs avatar Sep 04 '23 06:09 marekCs

Streaming/unstreamed (online/offline) doesn't depend on me using it on an INTERNET online/offline machine

Yes, you are right. online/offline has nothing to do with computer networks here.

It's a live voice or already stored recorded voice, am I right?

Yes, you are right.

csukuangfj avatar Sep 04 '23 06:09 csukuangfj