Skip to content

Commit

Permalink
chore: update samples to use GA APIs (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
happyhuman authored and JustinBeckwith committed Nov 27, 2018
1 parent e728791 commit 8ae68d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions video-intelligence/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,9 @@ async function analyzeSafeSearch(gcsUri) {
}

async function analyzeVideoTranscription(gcsUri) {
// [START video_speech_transcription_gcs_beta]
// [START video_speech_transcription_gcs]
// Imports the Google Cloud Video Intelligence library
const videoIntelligence = require('@google-cloud/video-intelligence')
.v1p1beta1;
const videoIntelligence = require('@google-cloud/video-intelligence');

// Creates a client
const client = new videoIntelligence.VideoIntelligenceServiceClient();
Expand Down Expand Up @@ -299,7 +298,7 @@ async function analyzeVideoTranscription(gcsUri) {
});
console.log('Transcription: ' + alternative.transcript);

// [END video_speech_transcription_gcs_beta]
// [END video_speech_transcription_gcs]
}

async function main() {
Expand Down

0 comments on commit 8ae68d6

Please sign in to comment.