the sample link is https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/quickstart/java/jre/text-to-speech
and the speech sdk info is :
<dependencies>
<dependency>
<groupId>com.microsoft.cognitiveservices.speech</groupId>
<artifactId>client-sdk</artifactId>
<version>1.19.0</version>
</dependency>
</dependencies>
Text Speech when SpeechConfig init got error
wwy
16
Reputation points
I follow the quickstart then here is my code
SpeechConfig speechConfig = SpeechConfig.fromSubscription("XXX", "eastasia");
but when debug, I got errors as follows:
Exception in thread "main" 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.<clinit>(SpeechConfig.java:77)
and then I download the demo code on github and run and get the same error.
2 answers
Sort by: Most helpful
-
wwy 16 Reputation points
2021-12-14T01:28:22.337+00:00 -
Ramr-msft 17,736 Reputation points
2021-12-14T06:15:32.377+00:00