Skip to content

Commit

Permalink
feat: adds 'single_utterance' to stream from file sample (#20)
Browse files Browse the repository at this point in the history
* feat: adds streaming samples
* fix: updates package.json

Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
  • Loading branch information
telpirion and JustinBeckwith authored Apr 13, 2020
1 parent 30737b0 commit 6105674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions media-translation/translate_from_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function main(filename, encoding, sourceLanguage, targetLanguage) {
sourceLanguageCode: sourceLanguage,
targetLanguageCode: targetLanguage,
},
single_utterance: true,
};

// First request needs to have only a streaming config, no data.
Expand Down

0 comments on commit 6105674

Please sign in to comment.