google-speech-api

Google Speech API credentials

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 01:52:28
问题 I am trying to do some test using the Google Speech API but from outside Google Cloud. In the older beta version I was able to specify a credentials file but now I am unable to find this option in the SpeechClient class. How can I go about specifying the authentication keys using the Google Speech API Java library? 回答1: Some of the classes from Frank's answer are now deprecated. This is an update to his answer. CredentialsProvider credentialsProvider = FixedCredentialsProvider.create

Using Google Text-To-Speech API to save speech audio

六月ゝ 毕业季﹏ 提交于 2019-12-11 00:53:33
问题 I am trying to implement methods discussed in this question to write a php function that downloads an audio file for a given string, but I can't seem to get around google's abuse protection. Results are sporadic, sometimes I get an audio file and other times it's an empty 2KB mp3 due to a response with "Our systems have detected unusual traffic from your computer network". Here is what I've got so far ( note the $file has a location in my code but for the purposes of this I've omitted it ) :

use Google Application Default Credentials without json file

不问归期 提交于 2019-12-10 17:35:46
问题 I have created a console app using c#. I used google cloud speech api. I followed this sample application to create the app. To authenticate speech api, I wrote the following code in main method Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", "path-to-json-file", EnvironmentVariableTarget.Process); Everything works fine. My problem, I have to ship the exe along with the json file. I do not want to expose the json file. How can I embed the json file content in code or

How to disable sentence-level auto correction in Google Cloud Speech-to-Text API

天大地大妈咪最大 提交于 2019-12-10 16:59:59
问题 I am working on a speech recognition task, which involves the detection of children's speaking capability, improvement over time ... I'd like to use the Google Cloud Speech to Text API for the ASR part of the detection. Then I would use the transcripts of different measurements to estimate the advancement. But! The sentence level autocorrect of Google Speech API consistently rewrites the previous limb of the spoken sentence... Is there a way to disable the autocorrect of this ASR? I can't

Web speech api not working currently in chromium / electron / nw js?

时光怂恿深爱的人放手 提交于 2019-12-10 14:57:53
问题 I have been creating a desktop application using electron, which uses the javascript web speech api. It was working perfectly until the last few weeks. Currently, it does not work. I tried using Nw js and I've also checked it in Chromium browser, where even the default Google's speech api demo site doesn't seem to work. But it is working perfectly in Google chrome browser. Is google revoking chromium from using the API? Is there any other option for me to use it in my desktop application. It

Google Speech API v1beta1 very slow?

喜欢而已 提交于 2019-12-10 09:49:35
问题 I was super excited when learning that Google has finally released its official speech API for developers. I have always been amazed by how great Google's speech recognition works in Android, Chrome, and other products. I created a Google Cloud account, enabled the speech API, and created a few testing scripts following the Google Speech API documentation. The accuracy is super high, but the speed is insanely slow. An 18-second audio file would take their engine around 16 seconds to

Google Speech Recognition API: timestamp for each word?

为君一笑 提交于 2019-12-09 04:44:37
问题 It's possible to use Google's Speech recognition API to get a transcription for an audio file (WAV, MP3, etc.) by doing a request to http://www.google.com/speech-api/v2/recognize?... Example: I have said " one two three for five " in a WAV file. Google API gives me this: { u'alternative': [ {u'transcript': u'12345'}, {u'transcript': u'1 2 3 4 5'}, {u'transcript': u'one two three four five'} ], u'final': True } Question: is it possible to get the time (in seconds) at which each word has been

Android Speech to Text Api Google - notification

爷,独闯天下 提交于 2019-12-08 08:48:54
问题 I followed this tuto: https://jbinformatique.com/2018/02/16/android-speech-to-text-api-google-tutoriel/ It works nice ! It uses android.speech.RecognizerIntent package it's free and it works without Internet as mentionned here: Difference between Android Speech to Text API (Recognizer Intent) and Google Cloud Speech API? However when I start the speech recognition, I get the following notification : If I translate (as I can..), it says : "Your audio records will be sent to Google and used for

How to capture speech except command in annyang speech api

老子叫甜甜 提交于 2019-12-08 04:26:02
问题 I am able to perform action according to commands provided in annyang speech api. But my question is how to capture speech except commands using this api. I need the same behavior that we got from google speech https://www.google.com/intl/en/chrome/demos/speech.html 回答1: We can capture the speech instead of command by getting the recognition object by using annyang.getSpeechRecognizer() Please find the demo code :- <!DOCTYPE html> <html> <head> <script src='//cdnjs.cloudflare.com/ajax/libs

Using Gstreamer with Google speech API (Streaming Transcribe) in C++

Deadly 提交于 2019-12-07 13:54:28
I am using the Google Speech API from cloud platform for getting speech-to-text of a streaming audio. I have already done the REST API calls using curl POST requests for a short audio file using GCP. I have seen the documentation of the Google Streaming Recognize, which says "Streaming speech recognition is available via gRPC only." I have gRPC (also protobuf) installed in my OpenSuse Leap 15.0 . Here is the screenshot of the directory. Next I am trying to run the streaming_transcribe example from this link , and I found that the sample program uses a local file as the input but simulate it as