Skip to content

Commit 4a697dc

Browse files
committed
Nits found in self-review.
1 parent 61e91da commit 4a697dc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

speech/cloud-client/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@
3434
</properties>
3535

3636
<dependencies>
37-
3837
<!-- [START dependencies] -->
39-
<dependency>
38+
<dependency>
4039
<groupId>com.google.cloud</groupId>
4140
<artifactId>google-cloud</artifactId>
4241
<version>0.11.2-alpha</version>
43-
</dependency>
42+
</dependency>
4443
<!-- [END dependencies] -->
4544

4645
<!-- Test dependencies -->

speech/cloud-client/src/main/java/com/example/speech/Recognize.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ public static void asyncRecognizeGcs(String gcsUri) throws Exception, IOExceptio
226226
speech.close();
227227
}
228228

229+
/**
230+
* Performs streaming speech recognition on raw PCM audio data.
231+
*
232+
* @param fileName the path to a PCM audio file to transcribe.
233+
*/
229234
public static void streamingRecognizeFile(String fileName) throws Exception, IOException {
230235
Path path = Paths.get(fileName);
231236
byte[] data = Files.readAllBytes(path);

0 commit comments

Comments
 (0)