google-speech-api

How to import google cloud speech recognition in Google App Engine (python)

若如初见. 提交于 2020-01-11 06:49:11
问题 I want to use google.cloud library on my Google App Engine python application. In my local all my tests work since I installed this library on my local. I was expecting it to be supported in GAE by default but it's not supported. This the error I got: from google.cloud import speech ImportError: No module named cloud I had a look at adding 3rd party libraries at https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27 After following the instructions I got

Speaker Diarization from Audio file Android

此生再无相见时 提交于 2020-01-06 05:25:16
问题 How to separating different speakers from the audio file in android? Google Cloud Speech API? (https://cloud.google.com/speech-to-text/docs/multiple-voices#speech-diarization-java) Possible dublicates of Speaker Diarization support in Google Speech API I have tried the demo of google cloud speech to text api but unable to get success for same, Please check below error log from logcat. Code: val content = latestAudioFile?.readBytes() val inputStream = this.getAssets().open("XXXXX-6e000f81XXXX

Export the result of cloud speech API to JSON file using Python

£可爱£侵袭症+ 提交于 2020-01-02 04:15:05
问题 I am trying to convert an audio file to text in an Indian language via Google Speech API. The API returns an object of the type "google.cloud.speech_v1.types.SpeechRecognitionAlternative". I am trying to export the result to .json file. I am very new to python. This is the first project I am doing in python. import io import os import pickle # Imports the Google Cloud client library from google.cloud import speech from google.cloud.speech import enums from google.cloud.speech import types

Cannot import com.google.cloud.speech.v1.SpeechGrpc in Android

送分小仙女□ 提交于 2020-01-01 04:44:05
问题 I'm trying to use Google's Speech API in Android project. The example project works. I'm having trouble to use it in my own android app. build.gradle(Module:app) : apply plugin: 'com.android.application' apply plugin: 'com.google.protobuf' ext { supportLibraryVersion = '25.4.0' grpcVersion = '1.4.0' } android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "ApplicationID" minSdkVersion 16 targetSdkVersion 24 // compileOptions { // sourceCompatibility

Google Streaming Speech Recognition on an Audio Stream Python

纵饮孤独 提交于 2019-12-30 17:36:21
问题 I have searched through all the available docs of Google but I could not find an example of streaming speech recognition on an audio stream in Python. Currently, I am using Speech Recognition for Python in Django to get the audio from the user and then listen to the audio. I can then save the file and run the google speech recognition or directly from the instance of the audio created. Can somebody guide me how to perform streaming speech recognition on an audio stream ? 回答1: Google provides

Google Speech API returns 403 PERMISSION_DENIED

我怕爱的太早我们不能终老 提交于 2019-12-30 09:38:11
问题 I have been using the Google Speech API to transcribe audio to text from my PHP app (using the Google Cloud PHP Client) for several months without any problem. But my calls have now started to return 403 errors with status "PERMISSION_DENIED" and message "The caller does not have permission". I'm using the Speech API together with Google Storage. I'm authenticating using a service account and sending my audio data to Storage. That's working, the file gets uploaded. So I understand - but I

Google Speech API returns 403 PERMISSION_DENIED

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 09:38:08
问题 I have been using the Google Speech API to transcribe audio to text from my PHP app (using the Google Cloud PHP Client) for several months without any problem. But my calls have now started to return 403 errors with status "PERMISSION_DENIED" and message "The caller does not have permission". I'm using the Speech API together with Google Storage. I'm authenticating using a service account and sending my audio data to Storage. That's working, the file gets uploaded. So I understand - but I

how to solve google speech recognition network error

北战南征 提交于 2019-12-25 07:03:44
问题 I used to google speech recognition api in annyang.js. Google speech recognition sometimes error occurs "network". How to solve this error? I don't know why this error occurred... My local(korea) time 16:05 before error not occurred. 回答1: I think the network error is because of quotas on Google Speech API. Only 50 requests per day are provided for free. Once you are done with the requests, it starts throwing the network error. Check your developer console to see if this the case. 来源: https:/

Google speech to text API using C#

我是研究僧i 提交于 2019-12-24 08:34:14
问题 I'm using google speech recognition for speech to text of a audio file. Response i get as output shows only {"result":[]}. I don't see any output result. i have picked my code from How to use google speech recognition api in c#? and Google speech to text API in C# . i have tried almost every answer in above links still i am getting the error. My code is: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using

ImportError: cannot import name 'enums'

≯℡__Kan透↙ 提交于 2019-12-24 08:04:06
问题 I am trying to use Google Speech API to recognize speech from mic input in real time. I have tried https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/cloud-client/transcribe_streaming_mic.py but this error came out. Anybody knows how to solve this? from google.cloud.speech import enums ImportError: cannot import name 'enums' Update: I have solved the problem by running the code in virtual environment as suggested by the official Cloud Speech API website. However, I