|
|
爱搭讪的猴子 · Copilot とエージェント管理者の設定 ...· 2 月前 · |
|
|
个性的鸡蛋 · Copilot Studio | 従量課金制の価格· 2 月前 · |
|
|
勤奋的长颈鹿 · C#.net Core ...· 1 年前 · |
|
|
开朗的卡布奇诺 · 使用maven管理多模块项目并启动调试_ma ...· 2 年前 · |
|
|
幸福的番茄 · Pycharm的相关配置:改字体样式和大小、 ...· 3 年前 · |
|
|
开朗的烤红薯 · 解决Exception in thread ...· 3 年前 · |
我正在尝试使用Azure认知服务,并试图将“文本转换为语言”。我能够在本地机器上成功地将文本转换为语音。只有当我使用"App“将应用程序部署到Azure云时,这个问题才会发生。当我的代码试图创建SpeechConfig (例如: SpeechConfig config = SpeechConfig(mySubscriptionKey,服务区域))时,我得到了以下错误/异常
异常: UnsatisfiedLinkError
我在Azure云上使用以下技术栈: Spring使用的 SpringBoot2.6.7Linux (Tomcat容器)。client-Ja-SDK1.14.0 (com.microsoft.cognitiveservices.speech)
我是 ,而不是像本例中的Kubernetes那样使用任何容器或容器服务的 。它是一个简单的webapp,使用部署到Azure。
备注1:请注意,我也尝试使用微软认知服务客户端-sdk (1.21.0),但我也得到了同样的例外。我在谷歌上发现,其他人也面临着同样的问题,但没有给出令人满意的答案。
备注2:请注意,我是而不是,使用免费订阅,资源组区域是eastus。
备注3:我尝试并部署了许多代码示例(从文本到演讲),提供了我的微软和其他人在互联网上的服务,但我在Azure平台ONLY上也遇到了同样的问题。
异常快照: 下面是异常快照
异常详细信息: 2022-05-14T18:17:32.734458231Z 2022-05-14 18:17:32.733错误164 -- p-nio-80-exec-7 o.a.c.c.[.[./. dispatcherServlet : Servlet.service() for servlet dispatcherServlet for servlet dispatcherServlet in path [] 抛出异常处理程序分派失败;嵌套的例外是java.lang.UnsatisfiedLinkError:'long com.microsoft.cognitiveservices.speech.SpeechConfig.fromSubscription(com.microsoft.cognitiveservices.speech.util.IntRef,java.lang.String,java.lang.String‘,其根本原因是2022-05-14T18:17:32.734496431Z 2022-05-14T18:17:32.734502131Z java.lang.UnsatisfiedLinkError:'long com.microsoft.cognitiveservices.speech.SpeechConfig.fromSubscription(com.microsoft.cognitiveservices.speech.util.IntRef,java.lang.String,( com.microsoft.cognitiveservices.speech.SpeechConfig.fromSubscription(Native方法的 2022-05-14T18:17:32.734506931Z )~client-jar-SDK1.14.0.jar!/:na 2022-05-14T18:17:32.734511832Z at com.microsoft.cognitiveservices.speech.SpeechConfig.fromSubscription(SpeechConfig.java:103) ~client-jar-1.14.0.jar!/:na 2022-05-14T18:17:32.734516232Z.callAzureToTransformTextToSpeech(AzureTextToSpeechHelper.java:24) ~classes!/:0.0.1-快照2022-05-14T18:17:32.734520732Z在com.namepronunciation.service.NamePronunciationService.pronunce(NamePronunciationService.java:28) ~classes!/:0.0.1-快照2022-05-14T18:17:32.734524832Z在com.namepronunciation.controller.NamePronunciationController.pronunce(NamePronunciationController.java:81) ~classes!!/:0.0.1-快照2022-05-14T18:17:32.734529232Z在java.base/jdk.内在。NativeMethodAccessorImpl.invoke0(本地方法) ~na:na 2022-05-14T18:17:32.734533332Z
谢谢!曼苏尔
发布于 2022-05-27 03:56:22
https://stackoverflow.com/questions/72244594
复制相似问题
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2023 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
|
|
个性的鸡蛋 · Copilot Studio | 従量課金制の価格 2 月前 |