阿里云智能语音交互iOS接入FAQ

    xiaoxiao2023-09-10  213

    阿里云智能语音交互iOS接入FAQ

    问题1 : bitcode。 ld: 'xxx/NlsClientSDK.framework/NlsClientSDK(NlsRecognizer.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 解决1 : 打开项目-targets-build settings-Enable Bitcode-设置为No。问题2 : Assertion failed。解决2 : 检查在开始语音识别前,是否注册appkey;检查NlsRecognizer初始化时svcURL是否为nil。 //Config appkey. [NlsRecognizer configureAppKey:@"your_appkey"]; NlsRecognizer *r = [[NlsRecognizer alloc] initWithNlsRequest:nlsRequest svcURL:nil]; 问题3 : 错误码4400。 { NSLocalizedDescription = "server closed connection, code:4400, reason:illegal params, operation forbidden, wasClean:1"; } 解决3 : 检查appkey是否为空,填写正确的appkey。 #warning 请修改为您在阿里云申请的APP_KEY [nlsRequest setAppkey:@"your_appkey"]; // requested 相关资源:七夕情人节表白HTML源码(两款)
    最新回复(0)