Questions tagged [google-speech-api]

With Google Speech API you can convert speech to text file based or live stream

The https://cloud.google.com/speech/ and is part of https://cloud.google.com/products/ to allow for speech to text conversion.

When using a live stream words are returned almost realtime. This is limited by 1 minute or when paused for ~1 second. When using an asynchronous file the speech to text can be as long as 80 minutes. See https://cloud.google.com/speech/limits

For more see https://cloud.google.com/speech/docs/

837 questions
0
votes
0 answers

How to improve accuracy of transcripts from google cloud speech API

I am working on a project where I need to do a search in my website using Speech to text. I am using google cloud speech API synchronous REST API. I am obtaining the audio from the browser with the help of WebRTC getUserMedia() library. My current…
0
votes
0 answers

Google speech API returning blank array

I am using google speech API to converting the voice to text, but it return as bool(false) I am first converting the .wav file to .flac file then convert it into the text. Following is my complete code (I am using codeigniter): $ffmpeg =…
PHP Geek
  • 3,949
  • 1
  • 16
  • 32
0
votes
1 answer

How to pipe a data stream into a function that's assigned to a constant?

The example below from Google works but it uses pipe. For my situation I'm listening to a websocket that sends packets in 20ms increments and from what I've been able to find there is no way to pipe that data into a function. The first argument…
Max Phillips
  • 6,991
  • 9
  • 44
  • 71
0
votes
1 answer

How to convert '.opus' file to flac file format

I have an audio file with '.opus' format. http://img.wbcsrv.com/2017/03/14/4915792368684-41222-919020044692-1489468385000.opus I need to use it with google cloud speech API. But the google speech API only support some file encodings, specified in…
joe
  • 365
  • 1
  • 5
  • 16
0
votes
1 answer

ERROR: (gcloud.auth.activate-service-account) Failed to activate the given service account. Please ensure provided key file is valid

I'm trying to follow this guide https://cloud.google.com/speech/docs/getting-started to call GAE speech to text api through curl. But it doesn't seem to work. I've setup a project and enabled speech to text api. But then when I try to active the…
user1010373
  • 289
  • 1
  • 5
  • 12
0
votes
0 answers

Google Speech API faster with higher sample rate

I'm using the Google Cloud Speech API Python Library to extract text from a video file. In a prior step the video file is converted to a flac audiofile. sample_rate = 48000 client = speech.Client() cmd = "ffmpeg -i {} -vn -ac 1 -ar {}…
0
votes
1 answer

Google Oauth2 with Service account for Google Speech API rpc not working

I am developing an android application, which uses Google Speech to text via the Google cloud streaming Speech API at the moment, however I am having trouble to get the authentication to work. I want to authenticate at the Google Cloud API using…
0
votes
1 answer

Google cloud speech API : Nodejs

I have seen demo on google dev site as well as on git hub https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/speech. My question is how to pass language parameter ? I am using it like this : var speech =…
Sharad Chauhan
  • 4,821
  • 2
  • 25
  • 50
0
votes
1 answer

Not getting response from api.ai

I was trying this tutorial from https://www.sitepoint.com/how-to-build-your-own-ai-assistant-using-api-ai/ I downloaded the source code from github and saved it as .html file. But when I try to run it, i always get the error as "I couldn't hear…
0
votes
2 answers

Google Speech to Text API not working for audio files longer than one minute

I am trying to convert an audio file with the following attributes using Google Speech to Text API 1) Raw File 2) Sample Rate: 16000 3) Bit Rate: 16 4) Audio Type: mono I am using the following Python Code to get the text file service_request =…
0
votes
0 answers

How can I do Touch to pause on speech recognition on Google Speech Recognition?

I make a project based on speech reconginition. It works fine. When I click button google speech recognition is starting and when the speech is ended it automatically ends. But I want the user touch to pause speech recognition whenever the user…
CompEng
  • 7,161
  • 16
  • 68
  • 122
0
votes
1 answer

Java Google Speech API code fails

I am trying to use google speech cloud API version 2 in my java application. Not sure where is the issue, but when i tried the URL and same audio, config settings in PHP it worked and i got the response. Please help. Code package testing; import…
0
votes
1 answer

how to use google cloud speech API

I am new to use the google API's. I am trying to use the google speech recognition, to convert my speech to text and vise versa. But don't know how to use the google speech API. I download the google cloud package using this command composer require…
0
votes
1 answer

Google speech api error

When I run the simple command on my linux machine: curl -X POST \ --data-binary @'1.wav' \ --header 'Content-Type: audio/l16; rate=16000;' \ 'https://www.google.com/speech-api/v2/recognize?output=json&lang=he-IL&key=THE_KEY' I am getting the error:…
SexyMF
  • 10,657
  • 33
  • 102
  • 206
0
votes
1 answer

Google Speech API returning transcript as some numbers with back slashes

I am trying Google speech API with the sample app and it returns below JSON: results { alternatives { transcript: "\350\251\246\345\232\207\345\273\243\346\235\261\350\251\261\350\250\273\345\206\212\346\231\202\351\226\223" confidence:…