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

Fix bug with speech streaming speech_context. #2717

Conversation

daspecster
Copy link
Contributor

I believe this is the correct resolution to

Update SpeechContext in tests. See: #2700.

mentioned in #2522.

Speech streaming wasn't converting the list of hints to an instance of SpeechContext before flight.

@daspecster daspecster added the api: speech Issues related to the Speech-to-Text API. label Nov 10, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2016
@daspecster daspecster mentioned this pull request Nov 10, 2016
14 tasks
@dhermes
Copy link
Contributor

dhermes commented Nov 10, 2016

Can you add a system test to exercise this fix?

@daspecster
Copy link
Contributor Author

@dhermes added speech_context to the system test.

system-tests runtests: commands[1] | python /Users/daspecster/Documents/google/google-cloud-py/system_tests/attempt_system_tests.py speech
test_async_recognize_gcs_file (speech.TestSpeechClient) ... _operation_complete. Trying again in 1 seconds...
_operation_complete. Trying again in 2 seconds...
_operation_complete. Trying again in 4 seconds...
ok
test_async_recognize_local_file (speech.TestSpeechClient) ... _operation_complete. Trying again in 1 seconds...
_operation_complete. Trying again in 2 seconds...
_operation_complete. Trying again in 4 seconds...
ok
test_stream_recognize (speech.TestSpeechClient) ... ok
test_stream_recognize_interim_results (speech.TestSpeechClient) ... ok
test_stream_recognize_single_utterance (speech.TestSpeechClient) ... ok
test_sync_recognize_gcs_file (speech.TestSpeechClient) ... ok
test_sync_recognize_local_file (speech.TestSpeechClient) ... ok
409 The bucket you tried to delete was not empty. (DELETE https://www.googleapis.com/storage/v1/b/new_1478803671769), Trying again in 1 seconds...

----------------------------------------------------------------------
Ran 7 tests in 33.971s

OK
E1110 13:48:35.789352000 140736417121216 network_status_tracker.c:48] Memory leaked as all network endpoints were not shut down
_____________________________________________________ summary _____________________________________________________
  system-tests: commands succeeded
  congratulations :)

@dhermes
Copy link
Contributor

dhermes commented Nov 10, 2016

LGTM once CIs go green? Did you run

$ tox -e system-tests -- speech
$ GOOGLE_CLOUD_DISABLE_GRPC=true tox -e system-tests -- speech

to verify?

UPDATE: Jinx

@daspecster
Copy link
Contributor Author

@dhermes the tests would just get skipped since streaming only works with gRPC anyway.

@daspecster daspecster merged commit 9403751 into googleapis:master Nov 10, 2016
@daspecster daspecster deleted the fix-speech-streaming-speech-context-bug branch November 10, 2016 19:34
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…ng-speech-context-bug

Fix bug with speech streaming speech_context.
atulep pushed a commit that referenced this pull request Apr 3, 2023
…context-bug

Fix bug with speech streaming speech_context.
atulep pushed a commit that referenced this pull request Apr 18, 2023
…context-bug

Fix bug with speech streaming speech_context.
parthea pushed a commit that referenced this pull request Oct 22, 2023
…context-bug

Fix bug with speech streaming speech_context.
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. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants