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
posta 2 anni fa289 visualizzazioni
2 Risposte
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
con risposta 2 anni fa
  • 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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande