@@ -75,14 +75,7 @@ or [homebrew](http://brew.sh/)) to convert audio files to raw format.
75
75
76
76
### Run the sync client
77
77
78
- You can run the sync client like this:
79
-
80
- ``` sh
81
- $ bin/speech-sample-sync.sh --host=speech.googleapis.com --port=443 \
82
- --uri=< audio file uri> --sampling=< sample rate>
83
- ```
84
-
85
- Try a streaming rate of 16000 and the included sample audio file, as follows:
78
+ To use the sync method to transcribe a 16,000Hz sample audio file, run the following:
86
79
87
80
``` sh
88
81
$ bin/speech-sample-sync.sh --host=speech.googleapis.com --port=443 \
@@ -91,22 +84,16 @@ $ bin/speech-sample-sync.sh --host=speech.googleapis.com --port=443 \
91
84
92
85
### Run the async client
93
86
94
- You can run the async client like this:
95
-
96
- ``` sh
97
- bin/speech-sample-async.sh --host=speech.googleapis.com --port=443 \
98
- --uri=< audio file uri> --sampling=< sample rate>
99
- ```
87
+ To use the async method to transcribe a 16,000Hz sample audio file, run the following:
100
88
101
- Try a streaming rate of 16000 and the included sample audio file, as follows:
102
89
``` sh
103
90
$ bin/speech-sample-async.sh --host=speech.googleapis.com --port=443 \
104
91
--uri=resources/audio.raw --sampling=16000
105
92
```
106
93
107
94
### Run the streaming client
108
95
109
- You can run the streaming client as follows :
96
+ To use the streaming method to transcribe a 16,000Hz sample audio file, run the following :
110
97
111
98
``` sh
112
99
$ bin/speech-sample-streaming.sh --host=speech.googleapis.com --port=443 \
0 commit comments