我使用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));
}
}