-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not initialize class com.microsoft.cognitiveservices.speech.SpeechConfig #2340
Comments
@yangman92 Your screenshots show errors while trying to build gcc 7.5.0 and runtimes, therefore newer C/C++ runtime libraries required by the Speech SDK were not installed. Looks like you may have already tried to run a build before the screenshots, so it's best to start anew with a clean build. I just verified that instructions in https://learn.microsoft.com/azure/ai-services/speech-service/how-to-configure-rhel-centos-7#cc-compiler-and-runtime-libraries still work on an up-to-date CentOS 7.9.2009 system. Please do not run any commands blindly - check and verify that they complete successfully, otherwise investigate why they failed. For Java on CentOS 7, see #1769 for an earlier similar question. (Regarding the Speech SDK version used in the example, note that the current latest is 1.37.0.) Please note that CentOS 7 will reach end of life on June 30, 2024: https://www.redhat.com/en/topics/linux/centos-linux-eol |
@pankopon Hi. This time I am sure that I correctly done the 2 steps.
These commands were executed successfully. The info was so long to print. I can provide more information you want to see. |
@yangman92 Here's a command-line example from scratch, presuming you have all dependencies already in place. Verify that the new compiler (and therefore also the updated C/C++ runtime libraries) is indeed installed:
Clone and prepare the Speech SDK sample repository:
Try for example the case with wav file input. In the following,
You can use Java 8 or newer, but make sure both
Now build, verify that the correct Speech SDK version is used, and run the sample:
If this really doesn't work for you then it seems your CentOS 7 installation/environment is somehow different from what it should be. |
It is not easy to deploy on a centos system. Install the Speech SDK My friend helped me today to deploy. It worked now. |
Thank you for the update. I will close the issue now since it seems like the discussion reached its conclusion. Feel free to open this issue again if there is some more questions related to this topic. |
Install the Speech SDK
Configure RHEL/CentOS 7
All the steps above the two links I've done and I was seeking the same issues on github all of them i've been try to but all of them didn't work on me.
I've been trying to solve this problem for almost 2 days.
On my local server it worked but It didn't work on centos 7 server.
Could you please tell me which step i was doing wrong.
Tanks a lot.
I attacked files below.
system: CentOS 7.9.2009 x86_64(Py3.7.9)
error:
The text was updated successfully, but these errors were encountered: