Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.82k stars 1.83k forks source link

Ubuntu 22.04.4 -java.lang.UnsatisfiedLinkError: 'void com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(java.lang.String)' #2453

Closed songlinyu-hub closed 2 weeks ago

songlinyu-hub commented 2 months ago

java.lang.UnsatisfiedLinkError: com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(Ljava/lang/String;)V at com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(Native Method) at com.microsoft.cognitiveservices.speech.SpeechConfig.(Unknown Source) I use the voice service demo locally and it runs normally. When I deploy it on Ubuntu, I get an error: java.lang.UnsatisfiedLinkError: com.microsoft.cognitiveservices.speech.SpeechConfig.setTempDirectory(Ljava/lang/String;)V. I also downloaded SpeechSDK and configured the environment. , this problem has not been solved yet, does anyone have relevant experience to offer? grateful

songlinyu-hub commented 2 months ago

Deployment on centos7 is no problem, but error is still reported on Ubuntu

github-actions[bot] commented 2 months ago

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

pankopon commented 1 month ago

Please re-test with the Speech SDK 1.40.0 release out now: https://learn.microsoft.com/azure/ai-services/speech-service/releasenotes?tabs=speech-sdk Ensure that you have installed all required dependencies: https://learn.microsoft.com/azure/ai-services/speech-service/quickstarts/setup-platform?tabs=linux&pivots=programming-language-java#platform-requirements If you still get an error, post the full console output.

pankopon commented 2 weeks ago

Closed since no updates and not repro.