

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Tecniche di creazione dei prompt specifiche per il parlato
<a name="prompting-speech-voice-language"></a>

**Nota**  
Questa documentazione è per Amazon Nova versione 1. Per la guida alla progettazione dei Speech-to-Speech prompt di Amazon Nova 2, visita Richieste di [conversazione vocale](https://docs.aws.amazon.com/nova/latest/nova2-userguide/sonic-system-prompts.html).

Anche nell’ambito della stessa lingua, le risposte e la scelta delle parole possono essere migliorate adattando il modello a una particolare lingua locale. Ti suggeriamo quindi di includere nel prompt di sistema istruzioni che usino un linguaggio naturale e specifico per la tua lingua.

Le voci e le lingue locali disponibili sono le seguenti:


| Lingua | ID voce dal suono femminile | ID voce dal suono maschile | 
| --- |--- |--- |
| Inglese (Stati Uniti) | tiffany | matthew | 
| Inglese (Regno Unito) | amy |  | 
| Francese | ambre | florian | 
| Italiano | beatrice | lorenzo | 
| Tedesco | greta | lennart | 
| Spagnolo | lupe | carlos | 

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

Per specificare l’uso dell’inglese britannico, aggiungi la seguente riga al tuo prompt:

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

**Esempio di prompt completo con la selezione dell’inglese britannico**  
`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.`

**Come specificare un ID voce**  
Per selezionare una voce specifica per l’interazione, includi il parametro `voiceId` nella tua configurazione. Ad esempio, per usare la voce in inglese britannico `amy`, usa la seguente `audioOutputConfiguration`:

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

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

Per specificare lo spagnolo come lingua di risposta, aggiungi al prompt la seguente riga:

`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.`

**Esempio di prompt completo con la selezione dello spagnolo**  
`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.`

**Come specificare un ID voce**  
Per selezionare una voce specifica per l’interazione, includi il parametro `voiceId` nella tua configurazione. Ad esempio, per usare la voce in spagnolo `carlos`, usa la seguente `audioOutputConfiguration`:

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

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

Per specificare il francese come lingua di risposta, aggiungi al prompt la seguente riga:

`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.`

**Esempio di prompt completo con la selezione del francese**  
`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.`

**Come specificare un ID voce**  
Per selezionare una voce specifica per l’interazione, includi il parametro `voiceId` nella tua configurazione. Ad esempio, per usare la voce in francese `ambre`, usa la seguente `audioOutputConfiguration`:

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

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

Per specificare l’italiano come lingua di risposta, aggiungi al prompt la seguente riga:

`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.`

**Esempio di prompt completo con la selezione dell’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.`

**Come specificare un ID voce**  
Per selezionare una voce specifica per l’interazione, includi il parametro `voiceId` nella tua configurazione. Ad esempio, per usare la voce in italiano `lorenzo`, usa la seguente `audioOutputConfiguration`:

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

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

Per specificare il tedesco come lingua di risposta, aggiungi al prompt la seguente riga:

`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.`

**Esempio di prompt completo con la selezione del tedesco**  
`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.`

**Come specificare un ID voce**  
Per selezionare una voce specifica per l’interazione, includi il parametro `voiceId` nella tua configurazione. Ad esempio, per usare la voce in tedesco `greta`, usa la seguente `audioOutputConfiguration`:

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

------