How to censor words with Amazon Polly?

0

Hi, I'm trying to put a lexicon in Amazon Polly console in order to censor some stopwords. My .xml file is accepted, but there is no result with the spoken input.

This is my script

<?xml version="1.0" encoding="UTF-8"?>

<lexicon version="1.0" xmlns="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2005/01/pronunciation-lexicon http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd" alphabet="ipa" xml:lang="it-IT"> <lexeme> <grapheme>parola uno</grapheme> <alias></alias> </lexeme> <lexeme> <grapheme>parola due</grapheme> <alias></alias> </lexeme> <lexeme> <grapheme>parola tre</grapheme> <alias></alias> </lexeme> <lexeme> <grapheme>parola quattro</grapheme> <alias></alias> </lexeme> </lexicon>


I can't understand the error, Thank you very much if you can help me!

LBajard
已提問 2 年前檢視次數 289 次
2 個答案
0

Hello, are you still having the issue ? How are you calling Polly ?

I just went to the AWS Console, added that lexicon xml you provided, then selected the just created lexicon on the 'Text-to-Speech' page, added a test text in Italian, click on 'Listen' and I heard silence on the words listed on the lexicon

AWS
已回答 2 年前
  • Many thanks, unfortunatly I'm still having the issue both with neural and standard voice.

  • I see. Are you testing Polly through API call ? Could you confirm it's also happening on the Polly page on AWS Console ?

0

Hello, thanks for you answer. Unfortunately I'm still having the issue. The word is normally spoken both with neural and standard voice.

LBajard
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南