Questions tagged [google-speech-to-text-api]
190 questions
9
votes
4 answers
Google Cloud 403 Error The billing account for the owning project is disabled in state absent
I went on Google Cloud and enabled a project, billing, and the Cloud Speech to Text API. Then I downloaded a .json file. Then I tried to execute this basic code in PyCharm.
import os
os.environ['GOOGLE_APPLICATION_CREDENTIALS']…

fa21212
- 91
- 1
- 1
- 3
7
votes
1 answer
Speech Recognition Python Having Strange Request Error
Speech Recognition with the following code just not working at all
with sr.Microphone() as source:
# read the audio data from the default microphone
audio = r.record(source, duration=4)
print("Recognizing...")
# convert speech to text
# recognize…

Zhangyi Fan
- 71
- 1
- 2
6
votes
2 answers
How can I get results for each utterances from google speech api and save each audio utterance chunk seperately as wav file?
I'm using the below python script for getting predictions from google speech API from live streaming audio input.
The issue is, I need predictions from google speech API for each utterance and then also save the audio for each utterance spoken to…

user_12
- 1,778
- 7
- 31
- 72
4
votes
1 answer
Adding transcriptions to Google Speech-to-text to enhance recognition
In our church we have a few Ukrain refugees that visit the churc. To give them un understanding of the sermon, I made an app to send the translations real-time to Telegram.
I have implemented the Google speech-to-text API following this tutorial:…

Martijn van der Maas
- 71
- 1
- 6
4
votes
0 answers
How to convert OGG_OPUS input audio stream into a bytestream format acceptable for Google Speech-to-Text API?
Context: I have a URL for a recorded audio stream which is originally in OGG_OPUS format.
I am converting it the audio from URL into a byte stream (as required by Google API -…

Piyush Makhija
- 304
- 2
- 11
4
votes
1 answer
YouTube's auto captioning produces better results than Google Speech to Text API (Model: video, UseEnhanced: true). How can be this possible?
Here my settings of Google Speech to Text AI
Here is the output file of Speech to Text AI : https://justpaste.it/speechtotext2
Here is the output file of YouTube's auto caption: https://justpaste.it/ytautotranslate
This is the video link :…

Furkan Gözükara
- 22,964
- 77
- 205
- 342
4
votes
1 answer
Vosk-api python for speech-recognition. Feature for google-like speech adaption?
So Vosk-api is a brilliant offline speech recogniser with brilliant support, however with very poor (or smartly hidden) documentation, at the moment of this post (14 Aug, 2020)
The question is: is there any kind of replacement of…

George Ivannikov
- 153
- 3
- 8
4
votes
0 answers
How to stop streaming in google speech to text API and start back when i needd?
Now in google speech to text API i am doing everything i wanted except for stop when i want now i have tried to call function stop(), pause() in the API and eight on of the is not working
const record = require('node-record-lpcm16');// Imports the…

samadhi bandara
- 41
- 1
3
votes
0 answers
record/save audio from voice recognition intent on Android TV
I have followed this post to implement an app and save Google voice search audio. I have used @Iftah's code to save amr file to storage. This works on Android phones, but when I try this on Android TV/STB there is no URI getting generated for the…

Santhosh Rao
- 58
- 6
3
votes
2 answers
How to authenticate Google Cloud Speech-To-Text client in PHP application?
For authentication Cloud Speech-To-Text client in PHP application I use the following:
$credentials = 'C:\cred.json';
$client=new SpeechClient(['credentials'=>json_decode(file_get_contents($credentials), true)]);
For some reasons I receive…
3
votes
0 answers
Generate text file using Google Speech-to-text service in Laravel
I want to generate text file from the video. I have used Google Speech to Text service in Laravel 5.6.
Service/Package used
Google Speech To Text
Google Cloud Speech for PHP
Code
use Google\Cloud\Speech\V1\RecognitionAudio;
use…

Mitul Koradiya
- 318
- 2
- 5
- 19
3
votes
0 answers
Google speech to text not working on nodejs
I have created app for speech to text converter. react frontend and nodejs API.i record audio from react and post it to nodejs.but google API result is empty.how can I fix it?
why getting always empty results?
that's my code.
ReactMic…

Gihan Rangana
- 535
- 2
- 7
- 14
2
votes
0 answers
speech_recognition.RequestError: recognition request failed: Bad Request
Has anyone gotten this error for the following code. I have seen many solution but none of them are working. Is there any solutions? I rememeber that I export the path of the python to somewhere else. Would this cause the problem?
import…

StudentCSE
- 31
- 4
2
votes
1 answer
Does not have storage.buckets.list access to the Google Cloud project?
I wrote a Ruby script that will upload an audio file to a Google Cloud Storage.
def upload_to_Google_cloud(audio_file)
project_id = ""
key_file = ""
storage = Google::Cloud::Storage.new project: project_id,…

Nico Nisaw
- 57
- 1
- 6
2
votes
2 answers
Google Cloud Speech-to-text very inaccurate, last result contains all others and speakerTag only on last result
I'm using google speech-to-text using the command line and getting weird results
this is my command
gcloud beta ml speech recognize-long-running gs://my_bucket_name/call0.mp3
--language-code=en-US --async --include-word-time-offsets…

AvielNiego
- 1,193
- 2
- 12
- 27