Skip to content

Commit 5e20362

Browse files
authored
chore: remove return val from transcribe_streaming (GoogleCloudPlatform#10403)
1 parent 8fb6a1d commit 5e20362

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

speech/snippets/transcribe_streaming.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def transcribe_streaming(stream_file: str) -> speech.RecognitionConfig:
6969
print(f"Confidence: {alternative.confidence}")
7070
print(f"Transcript: {alternative.transcript}")
7171

72-
return response
7372
# [END speech_python_migration_streaming_response]
7473

7574

speech/snippets/transcribe_streaming_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525

2626
@Retry()
2727
def test_transcribe_streaming(capsys: pytest.CaptureFixture) -> None:
28-
response = transcribe_streaming.transcribe_streaming(
28+
transcribe_streaming.transcribe_streaming(
2929
os.path.join(RESOURCES, "audio.raw")
3030
)
31-
out, err = capsys.readouterr()
31+
out, _ = capsys.readouterr()
3232

3333
assert re.search(r"how old is the Brooklyn Bridge", out, re.DOTALL | re.I)
34-
assert response is not None

0 commit comments

Comments
 (0)