Skip to content

Commit

Permalink
docs: added voice selection (#193)
Browse files Browse the repository at this point in the history
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> 🦕
  • Loading branch information
galz10 authored and Ace Nassri committed Nov 17, 2022
1 parent 5e314b4 commit cbcc6c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dialogflow-cx/detect-intent-streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ async function main(
config: {
audioEncoding: encoding,
sampleRateHertz: sampleRateHertz,
synthesize_speech_config: {
voice: {
// Set's the name and gender of the ssml voice
name: 'en-GB-Standard-A',
ssml_gender: 'SSML_VOICE_GENDER_FEMALE',
},
},
singleUtterance: true,
},
},
Expand Down

0 comments on commit cbcc6c1

Please sign in to comment.