Skip to content

Commit 58ce6d8

Browse files
telpirionJustinBeckwith
authored andcommitted
feat: adds 'single_utterance' to stream from file sample (#20)
* feat: adds streaming samples * fix: updates package.json Co-authored-by: Justin Beckwith <[email protected]>
1 parent cf4bac4 commit 58ce6d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

media-translation/translate_from_file.js

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function main(filename, encoding, sourceLanguage, targetLanguage) {
4747
sourceLanguageCode: sourceLanguage,
4848
targetLanguageCode: targetLanguage,
4949
},
50+
single_utterance: true,
5051
};
5152

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

0 commit comments

Comments
 (0)