From: voipke Date: Tue, 3 Nov 2020 00:32:58 +0000 (+0800) Subject: [mod_unimrcp] Allow prosody-rate to be negative X-Git-Tag: v1.10.6^2~88^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F939%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_unimrcp] Allow prosody-rate to be negative --- diff --git a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c index 990875b784..a89329f4b5 100644 --- a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c +++ b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c @@ -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)) {