Giter VIP home page Giter VIP logo

Comments (5)

dhawangupta avatar dhawangupta commented on July 17, 2024

Hi, were you able to make it work??
Is Google Speech API still available?
I tried sending an HTTP POST request (https://www.google.com/speech-api/v2/recognize?output=json&lang=en-us&key=API-Key&client=chromium&maxresults=6&pfilter=2) via Postman and got an empty json:
{
"result": []
}

from asterisk-speech-recog.

aidoskz avatar aidoskz commented on July 17, 2024

Hi @dhawangupta i think it is old style
new style of Google Speech Api

POST /v1beta1/speech:syncrecognize?fields=results&key=<YOUR_API_KEY>
HTTP/1.1
HOST: speech.googleapis.com
content-type: application/json
content-length: 37278

{
"config": {
"encoding": "FLAC",
"sampleRate": 8000,
"languageCode": "ru-RU"
},
"audio": {
"content": "< base64encodedFile >"
}
}

More information : https://cloud.google.com/speech/reference/rest/

from asterisk-speech-recog.

dhawangupta avatar dhawangupta commented on July 17, 2024

Yes @aidoskz you are right. This is new Google Cloud Speech API which needs to enable billing in the Google Cloud Console too.

from asterisk-speech-recog.

zaf avatar zaf commented on July 17, 2024

There is a version for the new cloud API, its under the 'cloud_api' branch. As far as I know both APIs work at the moment.

from asterisk-speech-recog.

dhawangupta avatar dhawangupta commented on July 17, 2024

Hi @zaf, but, the older API only returns
{
"result": []
}

from asterisk-speech-recog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.