Google-cloud-php: Invalid audio channel count

Created on 3 Apr 2017  路  6Comments  路  Source: googleapis/google-cloud-php

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

speech triage me

Most helpful comment

I convert it to single channel by using ffmpeg https://trac.ffmpeg.org/wiki/AudioChannelManipulation, and problem solved

Thanks

All 6 comments

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!

Was this page helpful?
0 / 5 - 0 ratings