Google Cloud Speech API longrunningrecognize only returns name

Viewed 4118

I'm trying to convert over an hour audio data to text using Google Cloud Speech API, and I'm using API explorer since it's easy.

The request looks like this.

POST https://speech.googleapis.com/v1/speech:longrunningrecognize?key={YOUR_API_KEY}
{
  "audio": {
    "uri": "gs://data/audio.flac"
  },
  "config": {
    "encoding": "FLAC",
    "languageCode": "en-US"
  }
}

The response look like this.

200 
Show headers 
{
  "name": "`numbers`"
}

How come it is only returning the name, and not returning the text of the audio?

1 Answers
Related