goxr3plus / java-google-speech-api

🙊 Speech Recognition , Text To Speech , Google Translate
https://github.com/goxr3plus/java-google-speech-api
GNU General Public License v3.0
79 stars 36 forks source link

is this api still working #15

Open chdyldz opened 8 months ago

chdyldz commented 8 months ago

I tried your api with the example code in read.me I got 401 error I am trying to use your api via example code that u share when I run I got 401 error in GSpeechDuplex.class I release that you didnt add google api key, blow code block that u use in GspeechDuplex.class.

        String API_DOWN_URL = "https://www.google.com/speech-api/full-duplex/v1/down?maxresults=1&pair=" + PAIR;
        String API_UP_URL = "https://www.google.com/speech-api/full-duplex/v1/up?lang=" + this.language + "&lm=dictation&client=chromium&pair=" + PAIR + "&key=" + this.API_KEY + "&continuous=true&interim=true";
        Thread downChannel = this.downChannel(API_DOWN_URL);
        Thread upChannel = this.upChannel(API_UP_URL, tl, af);

There is no google api key in API_DOWN_URL