gillesdemey / google-speech-v2

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

Empty response from Google #1

Closed cfecherolle closed 10 years ago

cfecherolle commented 10 years ago

Hi,

I tried to do some testing using a previous Hello World code (available for The-Shadow's "old" API version) as a basis for some Java code, then I saw your post and understood Google updated their API, didn't they? Might be the reason why my requests keep failing.

I looked at your explanations but I still can't seem to make it work... I tried using one of your sample FLAC files but all I get is an empty array... This is weird.

If you managed to do it using Java (just asking, I know that your explanations are about cURL), could you please give a code sample of how you're doing the new request construction so it can work and give you a proper response, using API v2? My problem might be about the rate for encoding the flac file: how is it encoded when given as content for a cURL request?

Thank you for writing this, I'm looking forward to hearing your advice :)

cfecherolle commented 10 years ago

SOLVED: It was a microphone issue + wrong WAV to FLAC encoding parameters on my side. Sorry for bothering.