

# Técnicas de criação de prompts específicas para voz
<a name="prompting-speech-voice-language"></a>

**nota**  
Esta documentação é para o Amazon Nova versão 1. Para ver o guia de engenharia de prompts do Amazon Nova 2 Speech-to-Speech, acesse [Prompts de conversa por voz](https://docs.aws.amazon.com/nova/latest/nova2-userguide/sonic-system-prompts.html).

Mesmo dentro do mesmo idioma, as respostas e as escolhas de palavras podem ser aprimoradas ao orientar o modelo para uma localidade específica. Portanto, sugerimos que você inclua instruções no prompt do sistema para apresentar uma linguagem natural e específica para a localidade da sua voz.

As vozes e localidades disponíveis são as seguintes:


| Linguagem | ID de voz feminina | ID de voz masculina | 
| --- |--- |--- |
| Inglês (EUA) | tiffany | matthew | 
| Inglês (Reino Unido) | amy |  | 
| Francesa | ambre | florian | 
| Italiana | beatriz | lorenzo | 
| Alemã | greta | lennart | 
| Espanhola | lupe | carlos | 

------
#### [ British English ]

Para especificar o uso de inglês britânico, adicione ao prompt a seguinte linha:

`Use British English as your language for your responses.`

**Exemplo de um prompt completo com a seleção de inglês britânico**  
`You are a friend. The user and you will engage in a spoken dialog exchanging the transcripts of a natural real-time conversation. Keep your responses short, generally two or three sentences for chatty scenarios. Avoid formatted lists or numbering and keep your output as a spoken transcript to be acted out. Use British English as your language for your responses.`

**Como especificar um ID de voz**  
Para selecionar uma voz específica para sua interação, inclua o parâmetro `voiceId` na configuração. Por exemplo, para usar a voz de `amy` em inglês britânico, use a seguinte `audioOutputConfiguration`:

```
"audioOutputConfiguration": {
    "mediaType": "audio/lpcm",
    "sampleRateHertz": 24000,
    "sampleSizeBits": 16,
    "channelCount": 1,
    "voiceId": "amy",
    "encoding": "base64",
    "audioType": "SPEECH"
}
```

------
#### [ Spanish ]

Para especificar o espanhol como idioma de resposta, adicione a seguinte linha ao prompt:

`Please respond exclusively in Spanish. If you have a question or suggestion, ask it in Spanish. I want to ensure that our communication remains in Spanish.`

**Exemplo de um prompt completo com seleção de espanhol**  
`You are a friend. The user and you will engage in a spoken dialog exchanging the transcripts of a natural real-time conversation. Keep your responses short, generally two or three sentences for chatty scenarios. Avoid formatted lists or numbering and keep your output as a spoken transcript to be acted out. Please respond exclusively in Spanish. If you have a question or suggestion, ask it in Spanish. I want to ensure that our communication remains in Spanish.`

**Como especificar um ID de voz**  
Para selecionar uma voz específica para sua interação, inclua o parâmetro `voiceId` na configuração. Por exemplo, para usar a voz de `carlos` em espanhol, use a seguinte `audioOutputConfiguration`:

```
"audioOutputConfiguration": {
    "mediaType": "audio/lpcm",
    "sampleRateHertz": 24000,
    "sampleSizeBits": 16,
    "channelCount": 1,
    "voiceId": "carlos",
    "encoding": "base64",
    "audioType": "SPEECH"
}
```

------
#### [ French ]

Para especificar o francês como idioma da resposta, adicione a seguinte linha ao prompt:

`Please respond exclusively in French. If you have a question or suggestion, ask it in French. I want to ensure that our communication remains in French.`

**Exemplo de um prompt completo com seleção de francês**  
`You are a friend. The user and you will engage in a spoken dialog exchanging the transcripts of a natural real-time conversation. Keep your responses short, generally two or three sentences for chatty scenarios. Avoid formatted lists or numbering and keep your output as a spoken transcript to be acted out. Please respond exclusively in French. If you have a question or suggestion, ask it in French. I want to ensure that our communication remains in French.`

**Como especificar um ID de voz**  
Para selecionar uma voz específica para sua interação, inclua o parâmetro `voiceId` na configuração. Por exemplo, para usar a voz de `ambre` em francês, use a seguinte `audioOutputConfiguration`:

```
"audioOutputConfiguration": {
    "mediaType": "audio/lpcm",
    "sampleRateHertz": 24000,
    "sampleSizeBits": 16,
    "channelCount": 1,
    "voiceId": "ambre",
    "encoding": "base64",
    "audioType": "SPEECH"
}
```

------
#### [ Italian ]

Para especificar o italiano como idioma de resposta, adicione a seguinte linha ao prompt:

`Please respond exclusively in Italian. If you have a question or suggestion, ask it in Italian. I want to ensure that our communication remains in Italian.`

**Exemplo de um prompt completo com seleção de italiano**  
`You are a friend. The user and you will engage in a spoken dialog exchanging the transcripts of a natural real-time conversation. Keep your responses short, generally two or three sentences for chatty scenarios. Avoid formatted lists or numbering and keep your output as a spoken transcript to be acted out. Please respond exclusively in Italian. If you have a question or suggestion, ask it in Italian. I want to ensure that our communication remains in Italian.`

**Como especificar um ID de voz**  
Para selecionar uma voz específica para sua interação, inclua o parâmetro `voiceId` na configuração. Por exemplo, para usar a voz de `lorenzo` em italiano, use a seguinte `audioOutputConfiguration`:

```
"audioOutputConfiguration": {
    "mediaType": "audio/lpcm",
    "sampleRateHertz": 24000,
    "sampleSizeBits": 16,
    "channelCount": 1,
    "voiceId": "lorenzo",
    "encoding": "base64",
    "audioType": "SPEECH"
}
```

------
#### [ German ]

Para especificar o alemão como idioma de resposta, adicione a seguinte linha ao prompt:

`Please respond exclusively in German. If you have a question or suggestion, ask it in German. I want to ensure that our communication remains in German.`

**Exemplo de um prompt completo com seleção de alemão**  
`You are a friend. The user and you will engage in a spoken dialog exchanging the transcripts of a natural real-time conversation. Keep your responses short, generally two or three sentences for chatty scenarios. Avoid formatted lists or numbering and keep your output as a spoken transcript to be acted out. Please respond exclusively in German. If you have a question or suggestion, ask it in German. I want to ensure that our communication remains in German.`

**Como especificar um ID de voz**  
Para selecionar uma voz específica para sua interação, inclua o parâmetro `voiceId` na configuração. Por exemplo, para usar a voz de `greta` em alemão, use a seguinte `audioOutputConfiguration`:

```
"audioOutputConfiguration": {
    "mediaType": "audio/lpcm",
    "sampleRateHertz": 24000,
    "sampleSizeBits": 16,
    "channelCount": 1,
    "voiceId": "greta",
    "encoding": "base64",
    "audioType": "SPEECH"
}
```

------