Skip to content

Commit

Permalink
docs(samples): refactors the export to gcs sample (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-loved-dreamer authored and Ace Nassri committed Nov 17, 2022
1 parent b102fb3 commit 0528729
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions speech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"@google-cloud/speech": "^4.9.0",
"@google-cloud/storage": "^5.0.0",
"chalk": "^4.0.0",
"fs.promises": "^0.1.2",
"google-proto-files": "^2.5.0",
"node-record-lpcm16": "^1.0.1",
"proto3-json-serializer": "^0.1.6",
"protobufjs": "^6.11.2",
"sox": "^0.1.0",
"yargs": "^16.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion speech/system-test/export-to-storage.v1p1beta1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Speech-to-Text export to Cloud Storage ', () => {

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

0 comments on commit 0528729

Please sign in to comment.