gillesdemey / google-speech-v2

:speech_balloon: Reverse Engineering Google's Speech To Text API (v2)
468 stars 84 forks source link

reponse data #17

Open Khoa-NT opened 8 years ago

Khoa-NT commented 8 years ago

Hi,

If i send a HTTP Post request then google reponse a return value.

It means i have to send a GET request to receive the return value , right ?

or what should i do to receive the returm value ?

Regards, Khoa

Khoa-NT commented 8 years ago

Hi,

This is the response from google {"result":[]} {"result":[{"alternative":[{"transcript":"Xin chào","confidence":0.79667556},{"transcript":"chim chào"},{"transcript":"xinh chào"},{"transcript":"xinh đẹp"},{"transcript":"trứng gà"}],"final":true}],"result_index":0}

Why google always send _{"result":[]} _ first then send the trully result. Does it mean google send response twice ? or something wrong with my voice data.

kwgrg commented 7 years ago

Hello, How can you get the correct response?

I have tried the curl command code as this project said, but I always get {"result":[]}. Nothing else.

Could you please tell me how to use it?

image

kwgrg commented 7 years ago

It WORKS! After I change the flac file to wav by sox, it works. Maybe there's something wrong in the format of these flac files.

TheMasterRoot commented 7 years ago

please could you post your curl script to wav and sox ? im trying but i didint yet