如何将识别结果保存到文件中?

时间:2019-11-24 16:44:54

标签: cloud speech

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

gcloud ml语音操作等待4449209833501955955

...
        "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 ..."
            }
          ]
        },
...

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

1 个答案:

答案 0 :(得分:0)

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