I made an API call normally with properly formatted JSON Request with mp3 file, and I am expecting the result JSON data to include "results" object with "alternatives" object with "transcript" and "confidence" values.
Instead what I get as a result is "{}" (an empty JSON object).
Operating system using is ubuntu15.04.
The JSON request file with the following text is created, and save it as a sync-request.json plain text file:
{
"config": {
"encoding": "LINEAR16",
"sampleRate": 16000,
"languageCode": "en-US"
},
"audio": {
"uri": "gs://audiobucketceino/Learn English - Lesson 41- Hi How are you - Pronunciation-[AudioTrimmer.com].mp3"
}
}
curl used to make a speech:syncrecognize request is :
curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer [access-token]" https://speech.googleapis.com/v1beta1/speech:syncrecognize -d @sync-request.json
Test file is attached in :
https://drive.google.com/file/d/0B7cqXnHXm78bLWdyYWhpVEdkT0U/view?usp=sharing