Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: adds 'single_utterance' to stream from file sample #20

Merged
merged 10 commits into from
Apr 13, 2020
1 change: 1 addition & 0 deletions samples/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