Skip to content

Commit 93e114f

Browse files
committed
address nits
1 parent 4beecf5 commit 93e114f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

video/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "project",
44
"require": {
55
"symfony/console": "^3.1",
6-
"google/cloud-videointelligence": "^1.1"
6+
"google/cloud-videointelligence": "^1.2"
77
},
88
"autoload": {
99
"files": [

video/src/analyze_transcription.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function analyze_transcription($uri, array $options = [])
7373

7474
print('Word level information:');
7575
foreach ($alternative->getWords() as $wordInfo) {
76-
$word = $wordInfo->getWord();
77-
$startTime = $wordInfo->getStartTime();
78-
$endTime = $wordInfo->getEndTime();
79-
printf('%s s - %s s: %s' . PHP_EOL, $startTime->getSeconds(), $endTime->getSeconds(), $word);
76+
printf('%s s - %s s: %s' . PHP_EOL,
77+
$wordInfo->getStartTime()->getSeconds(),
78+
$wordInfo->getEndTime()->getSeconds(),
79+
$wordInfo->getWord());
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)