google-speech-api

(Android Studio Speech Recognizer) I'm getting error 9 (insufficient Privileges) even though I have given it RECORD_AUDIO and INTERNET

蓝咒 提交于 2019-12-07 05:25:40
问题 package blessupboys.speechtest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.speech.RecognitionListener; import android.speech.RecognizerIntent; import android.speech.SpeechRecognizer; import android.widget.Button; import android.widget.TextView; import java.util.ArrayList; import android.util.Log;

Android Speech to Text Api Google - notification

◇◆丶佛笑我妖孽 提交于 2019-12-06 22:04:28
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 speech recognition. Transcription will be shared with this application. File recorded on "....@gmail

How to capture speech except command in annyang speech api

霸气de小男生 提交于 2019-12-06 19:54:29
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 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/annyang/2.6.0/annyang.min.js'></script> <script> annyang.start(); var recognition = annyang

Google cloud speech api throwing 403 when trying to use it

拜拜、爱过 提交于 2019-12-06 03:29:27
问题 I'm using python with google cloud speech api I did all the steps in "How to use google speech recognition api in python?" on ubuntu and on windows as well and when I trying to run the simple script from here - "https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/api/speech_rest.py" I get the next error: <HttpError 403 when requesting https://speech.googleapis.com/$discovery/rest?version=v1beta1 returned "Google Cloud Speech API has not been used in project google

Google Speech API v1beta1 very slow?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 02:56:37
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 transcribe! Microsoft Bing Speech API only needs 3-4 seconds to do it! Has anyone experienced the same? Or is

HotwordDetector using VoiceInteractionService in android

*爱你&永不变心* 提交于 2019-12-05 21:35:12
问题 I am creating the voice recognition service like "Ok Google" with custom command. For this I have used the VoiceInteractionService and I refered the code from here. Also, I am getting the STATE_HARDWARE_UNAVAILABLE error in onAvailabilityChanged . public class VoiceCommandService extends VoiceInteractionService { private static final String TAG = "AlwaysOnHotwordDetector"; Locale locale = new Locale("en-US"); protected SpeechRecognizer mSpeechRecognizer; protected Intent

(Android Studio Speech Recognizer) I'm getting error 9 (insufficient Privileges) even though I have given it RECORD_AUDIO and INTERNET

老子叫甜甜 提交于 2019-12-05 08:54:25
package blessupboys.speechtest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.speech.RecognitionListener; import android.speech.RecognizerIntent; import android.speech.SpeechRecognizer; import android.widget.Button; import android.widget.TextView; import java.util.ArrayList; import android.util.Log; public class VoiceRecognitionTest extends Activity implements OnClickListener { private TextView mText;

Is there a way to force Google Speech api to return only words as response?

半世苍凉 提交于 2019-12-04 09:06:52
问题 I am using Googles this api :- https://www.google.com/speech-api/v2/recognize?output=json&lang="+ language_code+"&key="My key" for speech recognition and it's working very well. The issue is with numbers i.e, if I say one two three four the result will be 1234 and if I say one thousand two hundred thirty four the result is still 1234 . Another issue is that with other languages i.e. the word elf in German is eleven . If you say elf the result is 11 , instead of elf. I know we have no control

Google cloud speech api throwing 403 when trying to use it

微笑、不失礼 提交于 2019-12-04 08:38:26
I'm using python with google cloud speech api I did all the steps in " How to use google speech recognition api in python? " on ubuntu and on windows as well and when I trying to run the simple script from here - " https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/api/speech_rest.py " I get the next error: <HttpError 403 when requesting https://speech.googleapis.com/$discovery/rest?version=v1beta1 returned "Google Cloud Speech API has not been used in project google.com:cloudsdktool before or it is disabled. Enable it by visiting https://console.developers.google

GOOGLE_APPLICATION_CREDENTIALS error

馋奶兔 提交于 2019-12-04 08:37:14
问题 I am trying to use the google speech API for converting an audio file to text, but facing some problems with the documentation.I have enabled the speech API and created an service account file. I also got the service account credentials activated. Then I wrote the following command to retrieve the authorization token using my service account. gcloud auth application-default print-access-token But it is returning this message I don't understand why this is happening because I already have an