By using AWS re:Post, you agree to the Terms of Use

How to censor words with Amazon Polly?


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="" xmlns:xsi="" xsi:schemaLocation="" 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!

asked 3 months ago24 views
2 Answers

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

answered 3 months ago
  • 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 ?


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

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions