Iphone 如何在简单语音示例应用程序(ATT语音api)中添加凭据
如何在speechConfig.m中添加凭据,这是一个简单的语音示例应用程序ATT speech apiIphone 如何在简单语音示例应用程序(ATT语音api)中添加凭据,iphone,ios,api,att,Iphone,Ios,Api,Att,如何在speechConfig.m中添加凭据,这是一个简单的语音示例应用程序ATT speech api `/** Unobfuscates the OAuth client_id credential for the application. **/ NSString* SpeechOAuthKey(void) { #error Add code to unobfuscate your Speech API credentials, then delete this line.
`/** Unobfuscates the OAuth client_id credential for the application. **/
NSString* SpeechOAuthKey(void)
{
#error Add code to unobfuscate your Speech API credentials, then delete this line.
return MY_UNOBFUSCATE(my_obfuscated_client_id);
}
/** Unobfuscates the OAuth client_secret credential for the application. **/
NSString* SpeechOAuthSecret(void)
{
#error Add code to unobfuscate your Speech API credentials, then delete this line.
return MY_UNOBFUSCATE(my_obfuscated_client_secret);
}
`
任何帮助都将不胜感激。如果您只想使用未混淆的凭据(不安全)运行代码,只需注释掉“#error”行并返回作为门户应用程序密钥和密码的字符串 当你准备好制作一个应用程序时,你应该调查你最喜欢的安全例行程序,以解开将存储在你的应用程序中的密钥和机密,并将其包装在方法中,该方法从你的代码附带的模糊密钥/机密中返回未模糊的纯文本密钥/机密 如果您仍然需要更多帮助,请在developer.att.com门户网站的“支持->记录记录记录”下记录记录