]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_unimrcp] Allow prosody-rate to be negative 939/head
authorvoipke <voipke@qq.com>
Tue, 3 Nov 2020 00:32:58 +0000 (08:32 +0800)
committerChris Rienzo <chris@signalwire.com>
Sat, 13 Feb 2021 17:16:15 +0000 (17:16 +0000)
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

index 990875b784c60d0f9d9f0b92b6e74978e3355343..a89329f4b5e9b603a28581cf8d5c38ca4ee5a976 100644 (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)) {