如何在亚马逊polly的文本中添加简历到android中的演讲?

时间:2018-05-29 11:13:53

标签: android amazon-polly

我正在使用ngOnInit() { this.consulentiData.headerRow = ['Id', 'Nome', 'Cognome', 'E-mail', 'Scadenza contratto']; this.dataService.getConsulenti().subscribe(data => { this.consulenti = data; this.rows = this.consulenti.length; this.cols = this.consulenti[0].stringifyFields; this.consulentiData.headerRow = ['Id', 'Nome', 'Cognome', 'E-mail', 'Scadenza contratto']; this.setRowData(); }); } ,我希望恢复发音暂停Amazon Polly,但只要我尝试恢复,它就会从头开始。我在speech中设置了源代码,如下所示

  

mediaPlayer.setDataSource(presignedSynthesizeSpeechUrl.toString());

我尝试使用暂停和恢复的代码如下,

media player

我被困在这里,无法继续使用简历功能。如果你们中的任何人帮忙,我将感激不尽。

1 个答案:

答案 0 :(得分:0)

媒体播放器不支持所传递URL的恢复功能。因为我使用的是webview,所以我只是将该URL传递到了支持简历功能的Audio标签。

https://www.w3schools.com/html/html5_audio.asp