c#版使用报错
327068 发布于2017-07 浏览:1521 回复:1
0
收藏
快速回复

我使用的服务是:语音合成

调用的接口是:Synthesis

参数设置情况:自带示例的参数,没改过

开发平台和机型:Windows

SDK版本号:aip-speech-csharp-sdk-1.0.0

代码或日志截图(上传截图能帮助您更快解决问题):

AipException: Failed to request token. Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

Baidu.Aip.Auth.OpenApiFetchToken (System.String ak, System.String sk, Boolean throws)

Baidu.Aip.Speech.Base.DoAuthorization ()

Baidu.Aip.AipServiceBase.PreAction ()

Baidu.Aip.Speech.Tts.Synthesis (System.String text, System.Collections.Generic.Dictionary`2 options)

复现步骤、现象及其他描述:

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2chenxiaoyu3回复于2017-07

327068:

我使用的服务是:语音合成

调用的接口是:Synthesis

参数设置情况:自带示例的参数,没改过

开发平台和机型:Windows

SDK版本号:aip-speech-csharp-sdk-1.0.0

代码或日志截图(上传截图能帮助您更快解决问题):

AipException: Failed to request token. Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

Baidu.Aip.Auth.OpenApiFetchToken (System.String ak, System.String sk, Boolean throws)

Baidu.Aip.Speech.Base.DoAuthorization ()

Baidu.Aip.AipServiceBase.PreAction ()

Baidu.Aip.Speech.Tts.Synthesis (System.String text, System.Collections.Generic.Dictionary`2 options)

复现步骤、现象及其他描述:

回复327068:粘贴一下调用的过程,是否填写了正确的api key , secret key?

0
TOP
切换版块