Closed NicoLouis-be closed 4 years ago
wierd
if i copy the parseResponse function to my code and also the google response class, i'm not getting any errors and it works fine.
maybe i did something wrong with your jar file, i'm just going to import the code instead of using the release file.
Hi Nico, How did you resolve the NULL response issue specifically?
ouch long time ago :) i think i downloaded the source file and implemented it that way into in my code instead of including the jar file. That fixed the problem i believe
Hi , I am new to Java Speech API. I have downloaded the code plus hello world program but I am getting empty response from google
Please help me.
somewhere the conversion from the original response to the googleresponse is going wrong.
if i do String[] response = rawRequest(file, maxNumOfResponses, sampleRate); for (String s : response) { System.out.println (s); }
i get as result {"result":[{"alternative":[{"transcript":"groente","confidence":0.22364359},{"transcript":"groenten","confidence":0},{"transcript":"citroen","confidence":0},{"transcript":"gezond","confidence":0},{"transcript":"Dronten","confidence":0}],"final":true}],"result_index":0}
if i do the same through the jar file then i get a NULL as response , and the following error ERROR: Google cannot be contacted
so it all goes fine through the rawRequest but after that it goes wrong just wanted to report it, if i find a solution i will do a pull request