Skip to content

Commit 6650df9

Browse files
yeltnaracbrant
andauthored
add pitch_percentage to allow list of parameters (#235)
Co-authored-by: Drew Brantley <[email protected]>
1 parent 544f55f commit 6650df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text-to-speech/synthesize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function synthesize(options) {
5151
var url = options.url || 'https://api.us-south.text-to-speech.watson.cloud.ibm.com';
5252
var audio = options.element || new Audio();
5353
audio.crossOrigin = 'anonymous';
54-
var queryParamsAllowed = ['voice', 'X-Watson-Learning-Opt-Out', 'text', 'watson-token', 'access_token', 'accept', 'customization_id'];
54+
var queryParamsAllowed = ['voice', 'X-Watson-Learning-Opt-Out', 'text', 'watson-token', 'access_token', 'accept', 'customization_id', 'pitch_percentage'];
5555
var queryParams = processUserParameters(options, queryParamsAllowed);
5656
audio.src = url + '/v1/synthesize?' + qs.stringify(queryParams);
5757
if (options.autoPlay !== false) {

0 commit comments

Comments
 (0)