Skip to content

Commit

Permalink
Merge pull request googleapis#3074 from yogeshg/patch-1
Browse files Browse the repository at this point in the history
for streaming sample should have "stream=" param
  • Loading branch information
daspecster authored Feb 27, 2017
2 parents 467859a + 876ec6e commit e9edb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/speech-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ If ``interim_results`` is set to :data:`True`, interim results
>>> from google.cloud import speech
>>> client = speech.Client()
>>> with open('./hello.wav', 'rb') as stream:
... sample = client.sample(content=stream,
... sample = client.sample(stream=stream,
... encoding=speech.Encoding.LINEAR16,
... sample_rate=16000)
... for results in sample.streaming_recognize(interim_results=True):
Expand Down

0 comments on commit e9edb42

Please sign in to comment.