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

google.gax.errors.GaxError #4885

Closed
abhibeta opened this issue Feb 15, 2018 · 18 comments
Closed

google.gax.errors.GaxError #4885

abhibeta opened this issue Feb 15, 2018 · 18 comments
Assignees
Labels
api: speech Issues related to the Speech-to-Text API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. status: awaiting information type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@abhibeta
Copy link

Thank you for reporting an issue to google-cloud-python!

If you are reporting an issue or requesting a feature, please search the
existing open and closed issues to see if there is already work being done.

If you can provide us with as much of the following information as possible it
will help us identify the cause of your issue more quickly.

1.Speech-Recognization
2. Ubunto 16.04
3. Python 2.7
4. Python 2.7
5. Waiting for operation to complete...
Traceback (most recent call last):
File "transcribe_async.py", line 100, in
transcribe_gcs(args.path)
File "transcribe_async.py", line 81, in transcribe_gcs
response = operation.result(timeout=None) #90
File "/usr/local/lib/python2.7/dist-packages/google/gax/init.py", line 596, in result
raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
6. use https://storage.googleapis.com/staging.deeplearning-193422.appspot.com/test1.mp3 in transcribe_async.py
7. Run from google cloud shell python transcribe_async.py gs://staging.deeplearning-193422.appspot.com/test1.mp3

Using GitHub flavored markdown can help make your request clearer.
See: https://guides.github.com/features/mastering-markdown/

@chemelnucfin
Copy link
Contributor

chemelnucfin commented Feb 15, 2018

Hello, you did not mention the version number of speech that you are using. However, we are trying to get rid of the gax library and you may be able to fix this error using the latest version.

Please try upgrading by using pip install --upgrade. Please let us know if you encounter any more questions.

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@theacodes
Copy link
Contributor

@abhibeta we've completely removed gax from the latest version of the speech client, so it's very unusual that you're still getting that error with an update version. Can you give us the output of pip freeze?

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@theacodes
Copy link
Contributor

I see. Can you run pip install --upgrade google-cloud-speech and try again?

@lukesneeringer more fuel for that "remove the umbrella package" fire.

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@theacodes theacodes added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: speech Issues related to the Speech-to-Text API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. status: investigating The issue is under investigation, which is determined to be non-trivial. labels Feb 16, 2018
@theacodes
Copy link
Contributor

@chemelnucfin can you investigate?

@chemelnucfin
Copy link
Contributor

@abhibeta I am running on python2.7 and I'm able to run on the local file
python transcribe_async.py resources/audio.raw

I will try gs in a moment. However, it seems inconsistent with what you are seeing. I'm wondering if it's some package collision.

@chemelnucfin
Copy link
Contributor

@abhibeta I do see the error in gs. Looking into it.

@chemelnucfin
Copy link
Contributor

@abhibeta I think it might have to do with the encoding of the file. Using audio.raw on gs, the encoding was set to enums.RecognitionConfig.AudioEncoding.FLAC, but the local file used LINEAR16. When I changed the code to the following, it worked on gs.

 config = types.RecognitionConfig(
        encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
        sample_rate_hertz=16000,
        language_code='en-US')

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@abhibeta
Copy link
Author

abhibeta commented Feb 16, 2018 via email

@chemelnucfin chemelnucfin added status: awaiting information and removed status: investigating The issue is under investigation, which is determined to be non-trivial. labels Feb 21, 2018
@chemelnucfin
Copy link
Contributor

@abhibeta Are you able to get the transcription working for your file?

@abhibeta
Copy link
Author

abhibeta commented Feb 23, 2018 via email

@chemelnucfin
Copy link
Contributor

@abhibeta I have opened some issues which relates to the problems that you are having now. I will now close this original issue which is now resolved. Please do let me know if you have some other concerns.
Thanks.

@abhibeta
Copy link
Author

abhibeta commented Feb 26, 2018 via email

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. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. status: awaiting information type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants