From 804a2dcfd3ddfbc573cea3c7ff37ac33dd9de40d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 16:02:14 +0000 Subject: [PATCH 1/4] chore: fail samples nox session if python version is missing (#261) --- .github/.OwlBot.lock.yaml | 2 +- samples/microphone/noxfile.py | 4 ++++ samples/snippets/noxfile.py | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 2567653c..ae6c57fa 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:87eee22d276554e4e52863ec9b1cb6a7245815dfae20439712bf644348215a5a + digest: sha256:82b12321da4446a73cb11bcb6812fbec8c105abda3946d46e6394e5fbfb64c0f diff --git a/samples/microphone/noxfile.py b/samples/microphone/noxfile.py index b008613f..1fd8956f 100644 --- a/samples/microphone/noxfile.py +++ b/samples/microphone/noxfile.py @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]: "True", "true", ) + +# Error if a python version is missing +nox.options.error_on_missing_interpreters = True + # # Style Checks # diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index b008613f..1fd8956f 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]: "True", "true", ) + +# Error if a python version is missing +nox.options.error_on_missing_interpreters = True + # # Style Checks # From 9657e963df0c0b095237ce91e957b75da52c735e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 12:18:46 +0200 Subject: [PATCH 2/4] chore(deps): update dependency google-cloud-storage to v1.42.3 (#263) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 5fe39050..32c1fa57 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ google-cloud-speech==2.9.1 -google-cloud-storage==1.42.2 +google-cloud-storage==1.42.3 From c1f7f357fe8367dafcdcb3d42e04a2619de2de62 Mon Sep 17 00:00:00 2001 From: nicain Date: Mon, 4 Oct 2021 16:18:08 -0700 Subject: [PATCH 3/4] fix: Remove reference to deprecated message "diarization_speaker_count" in favor of diarization_config (#264) --- samples/snippets/beta_snippets.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/samples/snippets/beta_snippets.py b/samples/snippets/beta_snippets.py index 9e81f514..51702e2b 100644 --- a/samples/snippets/beta_snippets.py +++ b/samples/snippets/beta_snippets.py @@ -158,12 +158,17 @@ def transcribe_file_with_diarization(): audio = speech.RecognitionAudio(content=content) + diarization_config = speech.SpeakerDiarizationConfig( + enable_speaker_diarization=True, + min_speaker_count=2, + max_speaker_count=10, + ) + config = speech.RecognitionConfig( encoding=speech.RecognitionConfig.AudioEncoding.LINEAR16, sample_rate_hertz=8000, language_code="en-US", - enable_speaker_diarization=True, - diarization_speaker_count=2, + diarization_config=diarization_config, ) print("Waiting for operation to complete...") From eff590dad4c9fb8f429cf2d10985368b86d994e8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Oct 2021 10:26:10 +0000 Subject: [PATCH 4/4] chore: release 2.9.3 (#265) :robot: I have created a release \*beep\* \*boop\* --- ### [2.9.3](https://www.github.com/googleapis/python-speech/compare/v2.9.2...v2.9.3) (2021-10-04) ### Documentation * **samples:** Remove reference to deprecated message "diarization_speaker_count" in favor of diarization_config ([#264](https://www.github.com/googleapis/python-speech/issues/264)) ([c1f7f35](https://www.github.com/googleapis/python-speech/commit/c1f7f357fe8367dafcdcb3d42e04a2619de2de62)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c74148..86760a37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-speech/#history +### [2.9.3](https://www.github.com/googleapis/python-speech/compare/v2.9.2...v2.9.3) (2021-10-04) + + +### Documentation + +* **samples:** Remove reference to deprecated message "diarization_speaker_count" in favor of diarization_config ([#264](https://www.github.com/googleapis/python-speech/issues/264)) ([c1f7f35](https://www.github.com/googleapis/python-speech/commit/c1f7f357fe8367dafcdcb3d42e04a2619de2de62)) + ### [2.9.2](https://www.github.com/googleapis/python-speech/compare/v2.9.1...v2.9.2) (2021-09-30) diff --git a/setup.py b/setup.py index 1f92c9fc..57aaf129 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-speech" description = "Google Cloud Speech API client library" -version = "2.9.2" +version = "2.9.3" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta'