alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.37k stars 1.04k forks source link

Unable to find libvosk.lib or libvosk.a library file. in my VOSK API repository. #1485

Closed Taher0321 closed 6 months ago

Taher0321 commented 6 months ago

Hi, In my VOSK API repository I couldn't find the libvosk.lib or libvosk.a library file. Same for my portaudio API where I couldn't find the libportaudio.a library file so could you guys tell me from where I could download the file or is there any vosk repository or portaudio repository where I could find this files.

And we are developing this in C language.

Looking forward for your help,

nshmyrev commented 6 months ago

https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-win64-0.3.45.zip

Taher0321 commented 6 months ago

Thank you for sending the zip. But the zip doesn't have 'libportaudio.a' or libportaudio.lib'

We still need this files: 'libportaudio.a' or libportaudio.lib'

kindly help us with this.

nshmyrev commented 6 months ago

Something like https://github.com/shivang51/portaudio probably

Taher0321 commented 6 months ago

IMG-20231227-WA0004

I have provided all the necessary path for vosk API and portaudio API in code .jason file e.g "-I/C:/portaudio/include","-I/C:/vosk/include","-L/C:/portaudio/lib","-L/C:/vosk/lib" it still showing the error as shown in below image is there any solution to run the code in windows? Or you could direct us to solve this error? @nshmyrev kindly help.

nshmyrev commented 6 months ago

You need to link the library itself with -lportaudio, /L only specifies the path.

Taher0321 commented 6 months ago

You need to link the library itself with -lportaudio, /L only specifies the path.

We followed this process and still getting the same error. We executed this in following way: g++ speech.cpp -o speech.exe C:/portaudio/lib/portaudio.lib specified the library and tried to link using the g++ still showing the below error cc1plus.exe: fatal error: speech.cpp: No such file or directory also tried to solve using changing the path in task.json and properties.json as shown below but still showing the error shown in an image. do you have any way resolve this issue?

kindly help @nshmyrev

Screenshot is attached for your reference. IMG-20231228-WA0003 IMG-20231228-WA0004

Taher0321 commented 6 months ago

You need to link the library itself with -lportaudio, /L only specifies the path.

We used this line to link the library with -lportaudio using this command: gcc speech.cpp -o speech.exe -LC:/path/to/vosk/lib -lvosk -LC:/path/to/portaudio/lib -lportaudio

But the errors still persists. See the screenshot WhatsApp Image 2023-12-30 at 10 19 03 PM

nshmyrev commented 6 months ago

and what files are in C:/portaudio/lib