sandrohanea / whisper.net

Whisper.net. Speech to text made simple using Whisper Models
MIT License
534 stars 82 forks source link

netstandard2.0 dll is not installed #38

Closed rakib33 closed 1 year ago

rakib33 commented 1 year ago

I will run this project in visual studio 2022 ,all dll is installed but netstandard2.0 is not installed . I installed .Net Core 2 and Desktop Development C++ library but still this error remain. netstandard2 0

drasticactions commented 1 year ago

Because you need to install .net 6 or above and those workloads.

Install .NET 6 or above, and run dotnet workload install macos ios maccatalyst android

e: Note that you don't need to do that if you're using the Nuget, just if you're trying to build the local repo.

sandrohanea commented 1 year ago

Hello @rakib33 , Did you manage to run the demo with the instructions provided by @drasticactions ?

rakib33 commented 1 year ago

issue Dear @sandrohanea , Still not working .After install some library .Net Framework 4 to 4.6 or visual studio 17 .NetSatndard 2 issue is resolved but some others library not found after run dotnet workload install macos ios maccatalyst android command . Now I create a fresh project in VS 2019 install nuget package Whisper.Net . Now can't understand your program.cs code from Whisper.net.Demo project. I need to do speech to text using tiny model .Would you please share me some sample.

drasticactions commented 1 year ago

Okay, that's your issue: You can't compile this in VS 2019, you need VS 2022.

VS 2019, as far as I'm aware, has limited compatibility with dotnet 5+ projects, and most likely it can't compile with these workloads. You need VS 2022 to compile the solution in Visual Studio.

That said, as you saw, you can still reference and use this project in .NET Framework. If you take the example code and put it into a .net framework console project, it should load.

IMO, I would upgrade to VS 2022 though.

e: I may have misread your response since your initial issue says you tried this in VS 2022. Did you try restoring from CLI dotnet restore?

Again, you don't need to compile this repo, you just need the nuget in your project.

sandrohanea commented 1 year ago

Maybe it will be good to add some simpler examples in a new SLN for easier understanding of the usage.

sandrohanea commented 1 year ago

Added https://github.com/sandrohanea/whisper.net/tree/main/examples/SimpleWhisperExample