Sometime google showing this response after I sending a request.
exception 'Google\Cloud\Exception\BadRequestException' with message '{
"error": {
"code": 400,
"message": "Invalid audio channel count",
"status": "INVALID_ARGUMENT"
}
}
' in /apps/vendor/google/cloud/src/RequestWrapper.php:219
Welcome @mjniuz,
https://cloud.google.com/speech/reference/rest/v1beta1/RecognitionConfig#audioencoding
Currently speech only supports 1 channel audio. Is it possible the requests which are triggering this error may be dual channel?
@mjniuz hello again :)
Have you had any luck with this?
Closing this out for now. Feel free to re-open if you need anything further!
I convert it to single channel by using ffmpeg https://trac.ffmpeg.org/wiki/AudioChannelManipulation, and problem solved
Thanks
Getting the a "must use single channel(mono) audio error message when accessing a dual channel wav file.
There is some documentation on the audiChannelCount configuration parameter. Is there an expected time for delivery for this functionality?
Thanks
Dan
Speech API, as of April 2019, supports audio with multiple channels!
Most helpful comment
I convert it to single channel by using ffmpeg https://trac.ffmpeg.org/wiki/AudioChannelManipulation, and problem solved
Thanks