Skip to content

Commit e9edb42

Browse files
authored
Merge pull request googleapis#3074 from yogeshg/patch-1
for streaming sample should have "stream=" param
2 parents 467859a + 876ec6e commit e9edb42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/speech-usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ If ``interim_results`` is set to :data:`True`, interim results
207207
>>> from google.cloud import speech
208208
>>> client = speech.Client()
209209
>>> with open('./hello.wav', 'rb') as stream:
210-
... sample = client.sample(content=stream,
210+
... sample = client.sample(stream=stream,
211211
... encoding=speech.Encoding.LINEAR16,
212212
... sample_rate=16000)
213213
... for results in sample.streaming_recognize(interim_results=True):

0 commit comments

Comments
 (0)