@@ -49,7 +49,7 @@ function analyzeLabelsGCS(gcsUri) {
49
49
labels . forEach ( label => {
50
50
console . log ( `Label ${ label . entity . description } occurs at:` ) ;
51
51
label . segments . forEach ( segment => {
52
- let time = segment . segment ;
52
+ const time = segment . segment ;
53
53
if ( time . startTimeOffset . seconds === undefined ) {
54
54
time . startTimeOffset . seconds = 0 ;
55
55
}
@@ -120,7 +120,7 @@ function analyzeLabelsLocal(path) {
120
120
labels . forEach ( label => {
121
121
console . log ( `Label ${ label . entity . description } occurs at:` ) ;
122
122
label . segments . forEach ( segment => {
123
- let time = segment . segment ;
123
+ const time = segment . segment ;
124
124
if ( time . startTimeOffset . seconds === undefined ) {
125
125
time . startTimeOffset . seconds = 0 ;
126
126
}
@@ -329,9 +329,10 @@ function analyzeVideoTranscription(gcsUri) {
329
329
const alternative =
330
330
results [ 0 ] . annotationResults [ 0 ] . speechTranscriptions [ 0 ] . alternatives [ 0 ] ;
331
331
alternative . words . forEach ( wordInfo => {
332
- let start_time =
332
+ const start_time =
333
333
wordInfo . startTime . seconds + wordInfo . startTime . nanos * 1e-9 ;
334
- let end_time = wordInfo . endTime . seconds + wordInfo . endTime . nanos * 1e-9 ;
334
+ const end_time =
335
+ wordInfo . endTime . seconds + wordInfo . endTime . nanos * 1e-9 ;
335
336
console . log (
336
337
'\t' + start_time + 's - ' + end_time + 's: ' + wordInfo . word
337
338
) ;
0 commit comments