Browse Source

Sync rate for SSML break duration

master
Yury Popov 2 years ago
parent
commit
61de330443
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libespeak-ng/ssml.c

+ 2
- 0
src/libespeak-ng/ssml.c View File

if ((attr2 = GetSsmlAttribute(px, "time")) != NULL) { if ((attr2 = GetSsmlAttribute(px, "time")) != NULL) {
value2 = attrnumber(attr2, 0, 1); // pause in mS value2 = attrnumber(attr2, 0, 1); // pause in mS


espeak_SetParameter(espeakRATE, speech_parameters[espeakRATE], 0);

// compensate for speaking speed to keep constant pause length, see function PauseLength() // compensate for speaking speed to keep constant pause length, see function PauseLength()
// 'value' here is x 10mS // 'value' here is x 10mS
value = (value2 * 256) / (speed.clause_pause_factor * 10); value = (value2 * 256) / (speed.clause_pause_factor * 10);

Loading…
Cancel
Save