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
gefragt vor 2 Jahren289 Aufrufe
2 Antworten
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
beantwortet vor 2 Jahren
  • 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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen