Skip to content

Commit b90454f

Browse files
authored
docs: added voice selection (#193)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-dialogflow-cx/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 13f8f92 commit b90454f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dialogflow-cx/detect-intent-streaming.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ async function main(
9393
config: {
9494
audioEncoding: encoding,
9595
sampleRateHertz: sampleRateHertz,
96+
synthesize_speech_config: {
97+
voice: {
98+
// Set's the name and gender of the ssml voice
99+
name: 'en-GB-Standard-A',
100+
ssml_gender: 'SSML_VOICE_GENDER_FEMALE',
101+
},
102+
},
96103
singleUtterance: true,
97104
},
98105
},

0 commit comments

Comments
 (0)