语音合成c# 版本 sdk token获取失败
limit的春天 发布于2017-07 浏览:1256 回复:5
0
收藏

在unity中使用语言合成c#版sdk token总是获取失败 但是直接使用www进行访问链接 又可以获取到 https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=U7ptQDwnhEnm2K7fzWLezitf&client_secret=ne62mcbV02fvVX8jBFGDTms3bbO6n7oo  这是为什么? 链接地址是我反编译出来的  appkey和appsecret都有传入

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

limit的春天:

回复chenxiaoyu3:

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)

这是异常中断报出的错误

回复limit的春天:https错误,unity环境中是否中中间Http代理,证书不受信任

0
#5limit的春天回复于2017-07

chenxiaoyu3:

回复limit的春天:设置debugLog,描述一下具体的错误

回复chenxiaoyu3:

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
#4limit的春天回复于2017-07

这是异常中断爆出的错误

0
#3limit的春天回复于2017-07

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
#2chenxiaoyu3回复于2017-07

limit的春天:

在unity中使用语言合成c#版sdk token总是获取失败 但是直接使用www进行访问链接 又可以获取到 https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=U7ptQDwnhEnm2K7fzWLezitf&client_secret=ne62mcbV02fvVX8jBFGDTms3bbO6n7oo  这是为什么? 链接地址是我反编译出来的  appkey和appsecret都有传入

回复limit的春天:设置debugLog,描述一下具体的错误

0
TOP
切换版块