I'm trying to use Google's Cloud Speech API. There's documentation and code examples here:
https://cloud.google.com/speech/docs/basics
https://cloud.google.com/speech/docs/rest-tutorial
I can get the sample code to run just fine if I point it to an included file, audio.raw, but not with a brief .wav file.
I have no idea what format the audio sample file is:
$ file audio.raw
audio.raw: data
With my .wav file that has maybe 10 seconds of audio I get an empty result.
I'm aware of this answer.
google cloud speech api returning empty result
My question was asked before but there was not an answer to the question.
What types of audio are supported by Cloud Speech API?
I can't imagine that I would have to get the properties of the audio file just right to get this to work. I assume a common use case, mine, is that someone records a meeting, has no idea of the parameters of the recording and just wants a text file.
Aiming to make its voice typing technology more inclusive, Google has added 30 new languages to voice search — bringing the total number of languages supported by speech recognition via Gboard on Android to 119.
A streaming Speech-to-Text API recognition call is designed for real-time capture and recognition of audio, within a bi-directional stream. Your application can send audio on the request stream, and receive interim and final recognition results on the response stream in real time.
Google Docs Using voice typing, Google voice transcription can create text transcripts from audio. Like many of the other manual transcription tools, there will be errors so make sure to clean it up before using it.
EDIT May 2020: seems things improved and this answer is no longer correct: see new docs for details about supported formats (including WAV).
As of 2016 the WAV
e format does not seem to be supported. These formats are documented as supported though:
https://cloud.google.com/speech/reference/rest/v1beta1/RecognitionConfig#AudioEncoding
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With