在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
个赞
请登录后评论
TOP
切换版块
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代理,证书不受信任
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)
这是异常中断报出的错误
这是异常中断爆出的错误
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的春天:
在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,描述一下具体的错误