【问题标题】:IBM Speech To Text - Get alternative with highest confidence and keyword found as first resultIBM Speech To Text - 以最高置信度和关键字作为第一个结果获得替代方案
【发布时间】:2021-12-08 17:36:08
【问题描述】:

我正在使用IBM Speech to Text。结果还可以,但我想知道为什么它们没有首先按最高置信度排序。是否有返回此排序的参数,以便我可以选择第一个选项?最好只在还找到传递的关键字时才返回结果。

有一个 max_alternatives 参数默认为 1,但当明确指定此参数时,会返回多个替代选项。

我目前正在手动对响应进行排序,我不需要代码示例来完成此操作。

JSON 示例:

   "result": {
        "result_index": 0,
        "results": [
            {
                "final": true,
                "alternatives": [
                    {
                        "transcript": "l\u00f6schen es tut echte betroffen ",
                        "confidence": 0.71
                    }
                ],
                "keywords_result": {}
            },
            {
                "final": true,
                "alternatives": [
                    {
                        "transcript": "sie sp\u00fcren dass eine \u00e4ra zu ende ",
                        "confidence": 0.91
                    }
                ],
                "keywords_result": {}
            },
            {
                "final": true,
                "alternatives": [
                    {
                        "transcript": "auto fahre eins zwei drei vier ",
                        "confidence": 0.95
                    }
                ],
                "keywords_result": {
                    "auto": [
                        {
                            "start_time": 6.31,
                            "end_time": 7.19,
                            "confidence": 0.99,
                            "normalized_text": "auto"
                        }
                    ]
                }
            }
        ]
    },
...

【问题讨论】:

    标签: websphere speech-to-text ibm-speech-to-text


    【解决方案1】:

    问题是end_of_phrase_silence_time。当检测到默认的 0.8 静默期时,语音被拆分为附加短语。所以我看到的不是不同的识别结果,而是前面提到的录音中的一个现有短语。见参数end_of_phrase_silence_time

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多