Skip to content

Commit

Permalink
chore: Added missing config field (#701)
Browse files Browse the repository at this point in the history
* chore: added a sample that showcases the use the of the profanity filter

* docs: variables to uncomment

* docs: variables to uncomment

* docs: variables to uncomment

* refactor: quickstart now uses gcs

* refactor: quickstart now uses gcs

* refactor: quickstart now uses gcs

* feat: adds a new sample

* chore: applied suggested changes

* chore: added missing required config field for auto punctuation sample

* chore: change audio file for sample rate

* chore: fixed

* chore: comment

* chore: changed: added comment instead
  • Loading branch information
b-loved-dreamer authored Mar 5, 2021
1 parent fed5199 commit 9d1beb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions speech/recognize.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ async function syncRecognizeWithAutoPunctuation(

/**
* TODO(developer): Uncomment the following lines before running the sample.
* Include the sampleRateHertz field in the config object.
*/
// const filename = 'Local path to audio file, e.g. /path/to/audio.raw';
// const encoding = 'Encoding of the audio file, e.g. LINEAR16';
Expand Down
2 changes: 1 addition & 1 deletion speech/system-test/profanityFilter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ describe('profanityFilter', () => {
const stdout = execSync(`node profanityFilter.js ${storageUri}`)
assert.match(stdout, /Transcription:/ );
});
});
});

0 comments on commit 9d1beb4

Please sign in to comment.