From 31d6988446f41c307866ee2949ba10f561d26440 Mon Sep 17 00:00:00 2001 From: nnegrey Date: Mon, 30 Jul 2018 13:34:30 -0700 Subject: [PATCH] Add automatic punctuation to video speech transcription --- video/beta/pom.xml | 2 +- video/beta/src/main/java/com/example/video/Detect.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/video/beta/pom.xml b/video/beta/pom.xml index 4a2390115d4..a8995261f45 100644 --- a/video/beta/pom.xml +++ b/video/beta/pom.xml @@ -40,7 +40,7 @@ com.google.cloud google-cloud-video-intelligence - 0.52.0-beta + 0.55.1-beta diff --git a/video/beta/src/main/java/com/example/video/Detect.java b/video/beta/src/main/java/com/example/video/Detect.java index 5b77d5db9ea..5b8939d2a8b 100644 --- a/video/beta/src/main/java/com/example/video/Detect.java +++ b/video/beta/src/main/java/com/example/video/Detect.java @@ -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