Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add speech beta samples #1151

Merged
merged 12 commits into from
Jul 20, 2018
Merged
46 changes: 46 additions & 0 deletions speech/cloud-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,49 @@ Transcribe an audio file with recognition metadata
```
mvn exec:java -DRecognize -Dexec.args="metadata ./resources/commercial_mono.wav"
```


## Diarization
Transcribe an audio file using diarization on an audio file
```
mvn exec:java -DRecognize -Dexec.args="diarization ./resources/commercial_mono.wav"
```

Transcribe an audio file using diarization on an audio file hosted on GCS
```
mvn exec:java -DRecognize -Dexec.args="diarization gs://cloud-samples-tests/speech/commercial_mono.wav"
```

## Multi-channel
Transcribe an audio file with multiple channels
```
mvn exec:java -DRecognize -Dexec.args="multi-channel ./resources/commercial_stereo.wav"
```

Transcribe an audio file hosted on GCS with multiple channels
```
mvn exec:java -DRecognize -Dexec.args="multi-channel gs://cloud-samples-tests/speech/commercial_stereo.wav"
```

## Multi language
Transcribe an audio file with multiple languages
```
mvn exec:java -DRecognize -Dexec.args="multi-language ./resources/Google_Gnome.wav"
```

Transcribe an audio file hosted on GCS with multiple languages
```
mvn exec:java -DRecognize -Dexec.args="multi-language gs://cloud-samples-tests/speech/Google_Gnome.wav"
```

## Word level confidence
Transcribe an audio file with word level confidence
```
mvn exec:java -DRecognize -Dexec.args="word-level-conf ./resources/audio.raw"
```

Transcribe an audio file hosted on GCS with word level confidence
```
mvn exec:java -DRecognize -Dexec.args="word-level-conf gs://cloud-samples-tests/speech/brooklyn.flac"
```

2 changes: 1 addition & 1 deletion speech/cloud-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-speech</artifactId>
<version>0.52.0-alpha</version>
<version>0.52.1-alpha-SNAPSHOT</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update lib version when released.

</dependency>
<!-- [END dependencies] -->

Expand Down
Binary file not shown.
Loading