Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid audio channel count #424

Closed
mjniuz opened this issue Apr 3, 2017 · 6 comments
Closed

Invalid audio channel count #424

mjniuz opened this issue Apr 3, 2017 · 6 comments
Assignees
Labels
api: speech Issues related to the Speech-to-Text API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@mjniuz
Copy link

mjniuz commented Apr 3, 2017

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

@dwsupplee dwsupplee added the api: speech Issues related to the Speech-to-Text API. label Apr 3, 2017
@dwsupplee
Copy link
Contributor

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?

@dwsupplee
Copy link
Contributor

@mjniuz hello again :)

Have you had any luck with this?

@dwsupplee
Copy link
Contributor

Closing this out for now. Feel free to re-open if you need anything further!

@mjniuz
Copy link
Author

mjniuz commented Aug 19, 2017

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

Thanks

@dwwalk
Copy link

dwwalk commented Apr 24, 2019

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

@bshaffer
Copy link
Contributor

bshaffer commented Jan 8, 2020

Speech API, as of April 2019, supports audio with multiple channels!

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: speech Issues related to the Speech-to-Text API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

5 participants