语音API请求UID [英] Speech API request UIDs

查看:96
本文介绍了语音API请求UID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用.net sdk进行识别,我正在玩调用两个并发要求。我想知道是否有一种简单的方法,例如请求UID来区分被发回的识别响应。我似乎可以在回复中找到
的任何内容。我可以使用DataRecognitionClient的原生句柄地址,但这是唯一的方法吗?

So I am using the .net sdk to do recongition, I am currently playing with invoking two concurrent requests. I was wondering if there is an easy way, such as a request UID to differentiate between the recognition responses being sent back. I can seem to find anything in the response. I can use the native handle address for the DataRecognitionClient I guess, but is that the only way?

谢谢

推荐答案

你有没有试过用REST方式来调用语音识别api? 

Have you ever tried with the REST way to call speech recognition api? 

你可能会得到样本结果以下是您发送的每个请求。

you might get the sample results below for each request you sent.

<speechbox-root>
  <version>3.0</version>
  <header>
    <status>success</status>
    <scenario>ulm</scenario>
    <name>what's the weather like</name>
    <lexical>what's the weather like</lexical>
    <properties>
      <property name="requestid">9fa4d419-3f1c-4a45-9716-bd662d013a44</property>

      <property name="HIGHCONF">1</property>
    </properties>
  </header>
  <results>
    <result>
      <scenario>ulm</scenario>
      <name>what's the weather like</name>
      <lexical>what's the weather like</lexical>
      <confidence>0.647120535</confidence>
      <properties>
        <property name="HIGHCONF">1</property>
      </properties>
    </result>
  </results>
</speechbox-root>





这篇关于语音API请求UID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆