File tree 5 files changed +6
-10
lines changed
src/main/java/com/example/video
src/main/java/com/example/video 5 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 36
36
</properties >
37
37
38
38
<dependencies >
39
- <!-- [START dependencies] -->
40
39
<dependency >
41
40
<groupId >com.google.cloud</groupId >
42
41
<artifactId >google-cloud-video-intelligence</artifactId >
43
42
<version >0.56.0-beta</version >
44
43
</dependency >
45
- <!-- [END dependencies] -->
46
44
47
45
<!-- Test dependencies -->
48
46
<dependency >
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public static void argsHelper(String[] args) throws Exception {
72
72
}
73
73
}
74
74
75
- // [START video_speech_transcription ]
75
+ // [START video_speech_transcription_gcs_beta ]
76
76
/**
77
77
* Transcribe speech from a video stored on GCS.
78
78
*
@@ -135,5 +135,5 @@ public static void speechTranscription(String gcsUri) throws Exception {
135
135
}
136
136
}
137
137
}
138
- // [END video_speech_transcription ]
138
+ // [END video_speech_transcription_gcs_beta ]
139
139
}
Original file line number Diff line number Diff line change 36
36
</properties >
37
37
38
38
<dependencies >
39
- <!-- [START dependencies] -->
40
39
<dependency >
41
40
<groupId >com.google.cloud</groupId >
42
41
<artifactId >google-cloud-video-intelligence</artifactId >
43
42
<version >0.56.0-beta</version >
44
43
</dependency >
45
- <!-- [END dependencies] -->
46
44
47
45
<!-- Test dependencies -->
48
46
<dependency >
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public static void analyzeLabels(String gcsUri) throws Exception {
173
173
* @param filePath the path to the video file to analyze.
174
174
*/
175
175
public static void analyzeLabelsFile (String filePath ) throws Exception {
176
- // [START video_analyze_labels_local ]
176
+ // [START video_analyze_labels ]
177
177
// Instantiate a com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient
178
178
try (VideoIntelligenceServiceClient client = VideoIntelligenceServiceClient .create ()) {
179
179
// Read file and encode into Base64
@@ -251,7 +251,7 @@ public static void analyzeLabelsFile(String filePath) throws Exception {
251
251
}
252
252
}
253
253
}
254
- // [END video_analyze_labels_local ]
254
+ // [END video_analyze_labels ]
255
255
}
256
256
257
257
/**
Original file line number Diff line number Diff line change 16
16
17
17
package com .example .video ;
18
18
19
- // [START videointelligence_quickstart ]
19
+ // [START video_quickstart ]
20
20
21
21
import com .google .api .gax .longrunning .OperationFuture ;
22
22
import com .google .cloud .videointelligence .v1 .AnnotateVideoProgress ;
@@ -81,4 +81,4 @@ public static void main(String[] args) throws Exception {
81
81
}
82
82
}
83
83
}
84
- // [END videointelligence_quickstart ]
84
+ // [END video_quickstart ]
You can’t perform that action at this time.
0 commit comments