Skip to content

Commit

Permalink
Add automatic punctuation to video speech transcription (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnegrey authored Jul 30, 2018
1 parent 7d03cf8 commit 7ef8b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion video/beta/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-video-intelligence</artifactId>
<version>0.52.0-beta</version>
<version>0.55.1-beta</version>
</dependency>
<!-- [END dependencies] -->

Expand Down
1 change: 1 addition & 0 deletions video/beta/src/main/java/com/example/video/Detect.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public static void speechTranscription(String gcsUri) throws Exception {
// Set the language code
SpeechTranscriptionConfig config = SpeechTranscriptionConfig.newBuilder()
.setLanguageCode("en-US")
.setEnableAutomaticPunctuation(true)
.build();

// Set the video context with the above configuration
Expand Down

0 comments on commit 7ef8b81

Please sign in to comment.