Skip to content

Commit 9b787e7

Browse files
authored
Add automatic punctuation to video speech transcription (#1603)
1 parent 62ef48d commit 9b787e7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

video/cloud-client/analyze/beta_snippets.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def speech_transcription(input_uri):
3535
features = [videointelligence.enums.Feature.SPEECH_TRANSCRIPTION]
3636

3737
config = videointelligence.types.SpeechTranscriptionConfig(
38-
language_code='en-US')
38+
language_code='en-US',
39+
enable_automatic_punctuation=True)
3940
video_context = videointelligence.types.VideoContext(
4041
speech_transcription_config=config)
4142

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-videointelligence==1.2.0
1+
google-cloud-videointelligence==1.3.0

0 commit comments

Comments
 (0)