Merge pull request #939 from netaudio/master

fix issue #935 prosody-rate paramter can not be set negative integer …
This commit is contained in:
Chris Rienzo 2021-02-13 12:45:52 -05:00 committed by GitHub
commit 780e34b7ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1312,7 +1312,7 @@ static switch_status_t synth_channel_set_header(speech_channel_t *schannel, int
break;
case SYNTHESIZER_HEADER_PROSODY_RATE:
if (switch_isdigit(*val) || *val == '.') {
if (switch_isdigit(*val) || *val == '.' || *val == '-') {
synth_hdr->prosody_param.rate.type = PROSODY_RATE_TYPE_RELATIVE_CHANGE;
synth_hdr->prosody_param.rate.value.relative = (float) atof(val);
} else if (!strcasecmp("x-slow", val)) {