Skip to content

Commit cd6bb2f

Browse files
nnegreydanoscarmike
authored andcommitted
Add automatic punctuation to video speech transcription [(#1603)](GoogleCloudPlatform/python-docs-samples#1603)
1 parent 0cedabb commit cd6bb2f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/google-cloud-videointelligence/samples/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

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)