参考值_https://learn.microsoft.com/en-us/objectivec/cognitive-services/speech/spxspeechconfiguration
目前,在spxspeechconfiguration中,objective不包含任何像setOutputFormat这样的方法,允许我们将其设置为OutputFormat.detailed。
我需要获得详细的信息,因为目前spx话配置OutputFormat的默认设置是OutputFormat.simple。
我在Java上看到的,它有这样的方法----引用-_
正如您在java方法的引用中所看到的那样,它有setOutputFormat(),但objective没有。
如何使用目标-c将其设置为OutputFormat.detailed?请指点我,谢谢。
发布于 2019-03-27 07:50:34
SPXSpeechConfiguration *speechConfig = [[SPXSpeechConfiguration alloc] initWithSubscription:speechKey region:serviceRegion];
[speechConfig setPropertyTo:@"True" byId:SPXSpeechServiceResponseRequestDetailedResultTrueFalse];
在尝试和错误之后,显然SPXSpeechServiceResponseRequestDetailedResultTrueFalse已经实现了,因为它在将属性设置为True__之后返回详细信息。也许文档应该用一些步骤来改变its already implemented的方法注释--如何设置它,而不是not implemented yet__。
https://stackoverflow.com/questions/55371566
复制相似问题