Skip to content

Commit 0528729

Browse files
b-loved-dreamerAce Nassri
authored andcommitted
docs(samples): refactors the export to gcs sample (#821)
1 parent b102fb3 commit 0528729

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

speech/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
"@google-cloud/speech": "^4.9.0",
1919
"@google-cloud/storage": "^5.0.0",
2020
"chalk": "^4.0.0",
21+
"fs.promises": "^0.1.2",
22+
"google-proto-files": "^2.5.0",
2123
"node-record-lpcm16": "^1.0.1",
24+
"proto3-json-serializer": "^0.1.6",
25+
"protobufjs": "^6.11.2",
2226
"sox": "^0.1.0",
2327
"yargs": "^16.0.0"
2428
},

speech/system-test/export-to-storage.v1p1beta1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('Speech-to-Text export to Cloud Storage ', () => {
5050

5151
it('should export transcriptions', async () => {
5252
const stdout = execSync(
53-
`node export-to-storage.v1p1beta1.js ${storageUri} ${outputStorageUri} ${encoding} ${sampleRateHertz} ${languageCode}`
53+
`node export-to-storage.v1p1beta1.js ${storageUri} ${outputStorageUri} ${encoding} ${sampleRateHertz} ${languageCode} ${bucketName} ${bucketPrefix}`
5454
);
5555
assert.match(stdout, /Transcription/);
5656
});

0 commit comments

Comments
 (0)