首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在微软认知语言库中使用objective将OutputFormat.simple设置为OutputFormat.detailed?

如何在微软认知语言库中使用objective将OutputFormat.simple设置为OutputFormat.detailed?
EN

Stack Overflow用户
提问于 2019-03-27 07:07:10
回答 1查看 146关注 0票数 0

参考值_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?请指点我,谢谢。

EN

回答 1

Stack Overflow用户

发布于 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__。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55371566

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档