From 2fa024025688e0ffd23c53ae2202d8bb6d17589b Mon Sep 17 00:00:00 2001 From: FCtj Date: Thu, 16 Mar 2017 12:42:57 +0900 Subject: [PATCH] Update speech-usage.rst --- docs/speech-usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/speech-usage.rst b/docs/speech-usage.rst index 21f37149d57e..9055f15b3765 100644 --- a/docs/speech-usage.rst +++ b/docs/speech-usage.rst @@ -165,7 +165,7 @@ speech data to possible text alternatives on the fly. >>> 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) ... results = list(sample.streaming_recognize()) @@ -188,7 +188,7 @@ See: `Single Utterance`_ .. code-block:: python >>> with open('./hello_pause_goodbye.wav', 'rb') as stream: - ... sample = client.sample(content=stream, + ... sample = client.sample(stream=stream, ... encoding=speech.Encoding.LINEAR16, ... sample_rate=16000) ... responses = sample.streaming_recognize(single_utterance=True)