diff --git a/dialogflow/detect.js b/dialogflow/detect.js index 55c9ee5e8d3..83dc69b9601 100644 --- a/dialogflow/detect.js +++ b/dialogflow/detect.js @@ -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', diff --git a/dialogflow/detect.v2beta1.js b/dialogflow/detect.v2beta1.js index dc0ebe5dab7..e0c18bd057a 100644 --- a/dialogflow/detect.v2beta1.js +++ b/dialogflow/detect.v2beta1.js @@ -538,7 +538,7 @@ function detectIntentwithModelSelection( session: sessionPath, queryInput: { audioConfig: { - audioEncoding: `LINEAR16`, + audioEncoding: `AUDIO_ENCODING_LINEAR_16`, sampleRateHertz: 16000, languageCode: languageCode, model: model, @@ -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',