You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the GUI, after uploading the file I have a warning Unable to automatically detect audio information. Please review your audio file and enter the relevant fields manually.
So I fill fields manually:
Encoding = ENCODING_UNSPECIFIED
Sample rate = 16000
Channel count remains empty
This worked as shown on the screenshot above.
Then I wanted to do the same thing by code using the google/cloud-speech package.
I tried to use the auto_decoding_config option but got the following error:
Audio data does not appear to be in a supported encoding. If you believe this to be incorrect, try explicitly specifying the decoding parameters.
Which is the same behavior as the GUI.
So I tried to use the explicit_decoding_config parameter and it failed.
See code below.
Hello,
I want to use the speech API to convert speech into text.
TL;DR
Using:
Throws that error:
While using:
Throws that error:
Long and detailed version for the courageous ones :)
Environment details
Steps to reproduce
I'm working on audio .aac files (generated by Instagram).
I tried the online GUI (https://console.cloud.google.com/speech/transcriptions) to try if the .acc file would be supported and it worked =>
When using the GUI, after uploading the file I have a warning
Unable to automatically detect audio information. Please review your audio file and enter the relevant fields manually.
So I fill fields manually:
This worked as shown on the screenshot above.
Then I wanted to do the same thing by code using the
google/cloud-speech package
.I tried to use the auto_decoding_config option but got the following error:
Which is the same behavior as the GUI.
So I tried to use the
explicit_decoding_config
parameter and it failed.See code below.
Code example
This code throw the following error:
And setting the audio channel like this:
Throw that error:
Thanks for your help.
Regards,
Johann
The text was updated successfully, but these errors were encountered: