Azure-Samples / cognitive-services-speech-sdk

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

com.microsoft.cognitiveservices.speech.util.SafeHandle.finalize() timed out after 60 seconds #2583

Open jieqiudede opened 2 months ago

jieqiudede commented 2 months ago
      Fatal Exception: java.util.concurrent.TimeoutException: com.microsoft.cognitiveservices.speech.util.SafeHandle.finalize() timed out after 60 seconds
   at com.microsoft.cognitiveservices.speech.util.SafeHandle.releasePropertyHandle()
   at com.microsoft.cognitiveservices.speech.util.SafeHandle.close(:55)
   at com.microsoft.cognitiveservices.speech.util.SafeHandle.finalize()
   at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:339)
   at java.lang.Daemons$FinalizerDaemon.processReference(Daemons.java:324)
   at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:300)
   at java.lang.Daemons$Daemon.run(Daemons.java:145)
   at java.lang.Thread.run(Thread.java:1012)

   And my code: 
  withContext(Dispatchers.IO) {
         SpeechSynthesizer synthesizer = new SpeechSynthesizer(speechConfig, audioConfig);
         SpeechSynthesisResult result = result = synthesizer.SpeakSsmlAsync(ssml).get();
         result.close();
  }
github-actions[bot] commented 1 month ago

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

jieqiudede commented 1 month ago

Can anyone help me?

github-actions[bot] commented 2 weeks ago

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