文字转语音:逗号之间暂停

时间:2018-08-27 15:04:53

标签: javascript typescript text-to-speech

我使用tts(文字转语音)。我想在逗号后添加更长的暂停时间。 this.allTodos和this.allTodosTeam也包含一些逗号。有机会这样做吗?

playMyDay() {

let text = 'Your day in 60 seconds: Your tasks for today, ' + this.allTodos + 'There are also some team tasks: ' + this.allTodosTeam

if (text != '') {
    this.buttonIcon = 'ios-headset'
    this.tts.speak({
      text: text,
      locale: "en-EN",
      rate: 1.4
    })
  .then(() => this.buttonIcon = 'ios-play')
  .catch((reason: any) => console.log(reason));
  }
}

0 个答案:

没有答案