【问题标题】:How can I get the recognition result to a file?如何将识别结果保存到文件中?
【发布时间】:2019-11-25 03:28:37
【问题描述】:

我不是程序员。但是需要识别文本中的音频文件。我使用 Gcloud 控制台识别了音频文件。但是当我尝试将结果输出到控制台时,会显示一个不完整的结果并且格式很不舒服:

gcloud ml 语音操作等待 4449209833501955641

...
        "alternatives": [
            {
              "confidence": 0.91782826,
              "transcript": " you can fight... "
           }
         ]
         },
     {
          "alternatives": [
            {
              "confidence": 0.8954131,
              "transcript": " all right I'll say it's a it's really good to hear and
     let's see if maybe a couple more questions and then I think we'll wrap it up he
     re do you trade options at all"
            }
          ]
         },
        {
          "alternatives": [
            {
              "confidence": 0.9671178,
              "transcript": " I do not not right now I mean I got enough where I just think ..."
            }
          ]
        },
...

告诉我一个简单的方法,无需重新识别即可提取结果(文件太大)!

【问题讨论】:

    标签: cloud speech


    【解决方案1】:

    您得到的是 JSON 格式的数据。如果没有编程知识,我建议您使用 JSON to xx 在线服务。例如,如果您想将此 JSON 数据转换为可以在 Excel 电子表格中打开的 .csv 文件,您可以使用this service

    【讨论】:

    • 谢谢。但这是部分问题的解决方案。如何提取完整结果?在控制台中,我没有看到完整的 JSON。
    猜你喜欢
    • 2020-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多