Skip to content

Commit c8ee654

Browse files
nnegreychingor13
authored andcommitted
samples: Add automatic punctuation to video speech transcription (#1165)
1 parent eef6e52 commit c8ee654

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

video/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)