View a markdown version of this page

Techniques d’invite spécifiques à la voix - Amazon Nova

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

Techniques d’invite spécifiques à la voix

Note

Cette documentation concerne la version 1 d'Amazon Nova. Pour consulter le guide technique d'Amazon Nova 2, consultez l'article Speech-to-Speech Invites de conversation vocale.

Même au sein d’une même langue, les réponses et le choix des mots peuvent être améliorés en orientant le modèle vers une région particulière. Nous vous suggérons donc d’inclure des instructions dans l’invite système afin d’utiliser un langage naturel et spécifique à la région de votre voix.

Les voix et les régions disponibles sont les suivantes :

Language

ID de voix féminine

ID de voix masculine

Anglais (États-Unis)

tiffany

matthew

Anglais (GB)

amy

Français

ambre

florian

Italien

béatrice

lorenzo

Allemand

greta

lennart

Espagnol

lupe

carlos

British English

Pour spécifier l’utilisation de l’anglais britannique, ajoutez la ligne suivante à votre invite :

Use British English as your language for your responses.

Exemple d’invite complète avec sélection de l’anglais britannique

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.

Comment spécifier une identité vocale

Pour sélectionner une voix spécifique pour votre interaction, incluez le paramètre voiceId dans votre configuration. Par exemple, pour utiliser la voix anglaise britannique amy, utilisez le audioOutputConfiguration suivant :

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

Pour spécifier l’espagnol comme langue de réponse, ajoutez la ligne suivante à votre invite :

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.

Exemple d’invite complète avec sélection de l’espagnol

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.

Comment spécifier une identité vocale

Pour sélectionner une voix spécifique pour votre interaction, incluez le paramètre voiceId dans votre configuration. Par exemple, pour utiliser la voix espagnole carlos, utilisez le paramètre audioOutputConfiguration suivant :

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

Pour spécifier le français comme langue de réponse, ajoutez la ligne suivante à votre invite :

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.

Exemple d’invite complète avec sélection du français

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.

Comment spécifier une identité vocale

Pour sélectionner une voix spécifique pour votre interaction, incluez le paramètre voiceId dans votre configuration. Par exemple, pour utiliser la voix française ambre, utilisez le paramètre audioOutputConfiguration suivant :

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

Pour spécifier l’italien comme langue de réponse, ajoutez la ligne suivante à votre invite :

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.

Exemple d’invite complète avec sélection de l’italien

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.

Comment spécifier une identité vocale

Pour sélectionner une voix spécifique pour votre interaction, incluez le paramètre voiceId dans votre configuration. Par exemple, pour utiliser la voix italienne lorenzo, utilisez le audioOutputConfiguration suivant :

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

Pour spécifier l’allemand comme langue de réponse, ajoutez la ligne suivante à votre invite :

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.

Exemple d’invite complète avec sélection de l’allemand

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.

Comment spécifier une identité vocale

Pour sélectionner une voix spécifique pour votre interaction, incluez le paramètre voiceId dans votre configuration. Par exemple, pour utiliser la voix allemande greta, utilisez le audioOutputConfiguration suivant :

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