Skip to content

Commit

Permalink
fix(samples): Fixed typo in example (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurjdam authored and NimJay committed Nov 18, 2022
1 parent 8222811 commit 14cf230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dialogflow/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ const cli = require(`yargs`)
},
encoding: {
alias: 'e',
default: 'AUDIO_ENCODING_LINEAR16',
default: 'AUDIO_ENCODING_LINEAR_16',
choices: [
'AUDIO_ENCODING_LINEAR16',
'AUDIO_ENCODING_LINEAR_16',
'AUDIO_ENCODING_FLAC',
'AUDIO_ENCODING_MULAW',
'AUDIO_ENCODING_AMR',
Expand Down
6 changes: 3 additions & 3 deletions dialogflow/detect.v2beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function detectIntentwithModelSelection(
session: sessionPath,
queryInput: {
audioConfig: {
audioEncoding: `LINEAR16`,
audioEncoding: `AUDIO_ENCODING_LINEAR_16`,
sampleRateHertz: 16000,
languageCode: languageCode,
model: model,
Expand Down Expand Up @@ -615,9 +615,9 @@ const cli = require(`yargs`)
},
encoding: {
alias: 'e',
default: 'AUDIO_ENCODING_LINEAR16',
default: 'AUDIO_ENCODING_LINEAR_16',
choices: [
'AUDIO_ENCODING_LINEAR16',
'AUDIO_ENCODING_LINEAR_16',
'AUDIO_ENCODING_FLAC',
'AUDIO_ENCODING_MULAW',
'AUDIO_ENCODING_AMR',
Expand Down

0 comments on commit 14cf230

Please sign in to comment.