Skip to content

Commit

Permalink
Merge pull request #272 from GoogleCloudPlatform/speech_api_changes
Browse files Browse the repository at this point in the history
Speech api changes
  • Loading branch information
puneith authored Jul 12, 2016
2 parents fdd5eb2 + 82c5ae9 commit 3048d29
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions speech/grpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,7 @@ or [homebrew](http://brew.sh/)) to convert audio files to raw format.

### Run the sync client

You can run the sync client like this:

```sh
$ bin/speech-sample-sync.sh --host=speech.googleapis.com --port=443 \
--uri=<audio file uri> --sampling=<sample rate>
```

Try a streaming rate of 16000 and the included sample audio file, as follows:
To use the sync method to transcribe a 16,000Hz sample audio file, run the following:

```sh
$ bin/speech-sample-sync.sh --host=speech.googleapis.com --port=443 \
Expand All @@ -91,22 +84,16 @@ $ bin/speech-sample-sync.sh --host=speech.googleapis.com --port=443 \

### Run the async client

You can run the async client like this:

```sh
bin/speech-sample-async.sh --host=speech.googleapis.com --port=443 \
--uri=<audio file uri> --sampling=<sample rate>
```
To use the async method to transcribe a 16,000Hz sample audio file, run the following:

Try a streaming rate of 16000 and the included sample audio file, as follows:
```sh
$ bin/speech-sample-async.sh --host=speech.googleapis.com --port=443 \
--uri=resources/audio.raw --sampling=16000
```

### Run the streaming client

You can run the streaming client as follows:
To use the streaming method to transcribe a 16,000Hz sample audio file, run the following:

```sh
$ bin/speech-sample-streaming.sh --host=speech.googleapis.com --port=443 \
Expand Down

0 comments on commit 3048d29

Please sign in to comment.