FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix bug with speech streaming speech_context. by daspecster · Pull Request #2717 · googleapis/google-cloud-python · GitHub

Fix bug with speech streaming speech_context. - #2717

Merged
daspecster merged 2 commits into
googleapis:masterfrom
daspecster:fix-speech-streaming-speech-context-bug
Nov 10, 2016
Merged

Fix bug with speech streaming speech_context.#2717
daspecster merged 2 commits into
googleapis:masterfrom
daspecster:fix-speech-streaming-speech-context-bug

Conversation

Copy link
Copy Markdown
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 added the api: speech Issues related to the Speech-to-Text API. label Nov 10, 2016
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2016
daspecster mentioned this pull request Nov 10, 2016
14 tasks

dhermes commented Nov 10, 2016

Copy link
Copy Markdown
Contributor

Can you add a system test to exercise this fix?

Copy link
Copy Markdown
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 commented Nov 10, 2016
edited
Loading

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

daspecster merged commit 9403751 into googleapis:master Nov 10, 2016
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL