Skip to content

Commit 7ef8b81

Browse files
authored
Add automatic punctuation to video speech transcription (#1165)
1 parent 7d03cf8 commit 7ef8b81

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

video/beta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>com.google.cloud</groupId>
4242
<artifactId>google-cloud-video-intelligence</artifactId>
43-
<version>0.52.0-beta</version>
43+
<version>0.55.1-beta</version>
4444
</dependency>
4545
<!-- [END dependencies] -->
4646

video/beta/src/main/java/com/example/video/Detect.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public static void speechTranscription(String gcsUri) throws Exception {
8484
// Set the language code
8585
SpeechTranscriptionConfig config = SpeechTranscriptionConfig.newBuilder()
8686
.setLanguageCode("en-US")
87+
.setEnableAutomaticPunctuation(true)
8788
.build();
8889

8990
// Set the video context with the above configuration

0 commit comments

Comments
 (0)