File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ speech data to possible text alternatives on the fly.
165165 >> > from google.cloud import speech
166166 >> > client = speech.Client()
167167 >> > with open (' ./hello.wav' , ' rb' ) as stream:
168- ... sample = client.sample(content = stream,
168+ ... sample = client.sample(stream = stream,
169169 ... encoding = speech.Encoding.LINEAR16 ,
170170 ... sample_rate = 16000 )
171171 ... results = list (sample.streaming_recognize())
@@ -188,7 +188,7 @@ See: `Single Utterance`_
188188.. code-block :: python
189189
190190 >> > with open (' ./hello_pause_goodbye.wav' , ' rb' ) as stream:
191- ... sample = client.sample(content = stream,
191+ ... sample = client.sample(stream = stream,
192192 ... encoding = speech.Encoding.LINEAR16 ,
193193 ... sample_rate = 16000 )
194194 ... responses = sample.streaming_recognize(single_utterance = True )
You can’t perform that action at this time.
0 commit comments