Skip to content

Commit 5fbbc1b

Browse files
committed
Add speech_context to streaming system test.
1 parent 881abcc commit 5fbbc1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system_tests/speech.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def _make_streaming_request(self, file_obj, single_utterance=True,
125125
sample_rate=16000)
126126
return client.streaming_recognize(sample,
127127
single_utterance=single_utterance,
128-
interim_results=interim_results)
128+
interim_results=interim_results,
129+
speech_context=['hello', 'google'])
129130

130131
def _check_results(self, results, num_results=1):
131132
self.assertEqual(len(results), num_results)

0 commit comments

Comments
 (0)