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

问题描述 投票:0回答:1

我不是程序员。但是需要识别文本中的音频文件。我使用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个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.