

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Stimmenspezifische Prompt-Ansätze
<a name="prompting-speech-voice-language"></a>

**Anmerkung**  
Diese Dokumentation bezieht sich auf Amazon Nova Version 1. Den technischen Leitfaden für Amazon Nova Speech-to-Speech [2-Eingabeaufforderungen finden Sie unter Sprachansagen](https://docs.aws.amazon.com/nova/latest/nova2-userguide/sonic-system-prompts.html).

Selbst innerhalb derselben Sprache können Antworten und Wortwahl verbessert werden, indem das Modell auf eine bestimmte Region ausgerichtet wird. Daher empfehlen wir Ihnen, Anweisungen in den System-Prompt aufzunehmen, die eine natürliche Sprache verwenden, die für die jeweilige Gegend Ihrer Sprachwahl spezifisch ist.

Die verfügbaren Stimmen und Gebietsschemas lauten wie folgt:


| Sprache | Weiblich klingende Sprach-ID | Männlich klingende Sprach-ID | 
| --- |--- |--- |
| Englisch (USA) | tiffany | matthew | 
| Englisch (GB) | amy |  | 
| Französisch | ambre | florian | 
| Italienisch | beatrice | lorenzo | 
| Deutsch | greta | lennart | 
| Spanisch | lupe | carlos | 

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

Um die Verwendung von britischem Englisch anzugeben, fügen Sie dem Prompt die folgende Zeile hinzu:

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

**Beispiel für einen vollständigen Prompt mit britischem Englisch**  
`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.`

**Wie eine Sprach-ID spezifiziert wird**  
Um eine bestimmte Stimme für Ihre Interaktion auszuwählen, nehmen Sie den `voiceId`-Parameter in Ihre Konfiguration auf. Um beispielsweise die britische englische Stimme `amy` zu verwenden, verwenden Sie folgende `audioOutputConfiguration`:

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

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

Um Spanisch als Antwortsprache festzulegen, fügen Sie bitte die folgende Zeile zu Ihrem Prompt hinzu:

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

**Beispiel für einen vollständigen Prompt mit Spanisch**  
`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.`

**Wie eine Sprach-ID spezifiziert wird**  
Um eine bestimmte Stimme für Ihre Interaktion auszuwählen, nehmen Sie den `voiceId`-Parameter in Ihre Konfiguration auf. Um beispielsweise die spanische Stimme `carlos` zu verwenden, verwenden Sie folgende `audioOutputConfiguration`:

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

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

Um Französisch als Antwortsprache festzulegen, fügen Sie bitte die folgende Zeile zu Ihrem Prompt hinzu:

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

**Beispiel für einen vollständigen Prompt mit Französisch**  
`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.`

**Wie eine Sprach-ID spezifiziert wird**  
Um eine bestimmte Stimme für Ihre Interaktion auszuwählen, nehmen Sie den `voiceId`-Parameter in Ihre Konfiguration auf. Um beispielsweise die französische Stimme `ambre` zu verwenden, verwenden Sie folgende `audioOutputConfiguration`:

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

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

Um Italienisch als Antwortsprache festzulegen, fügen Sie bitte die folgende Zeile zu Ihrem Prompt hinzu:

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

**Beispiel für einen vollständigen Prompt mit Italienisch**  
`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.`

**Wie eine Sprach-ID spezifiziert wird**  
Um eine bestimmte Stimme für Ihre Interaktion auszuwählen, nehmen Sie den `voiceId`-Parameter in Ihre Konfiguration auf. Um beispielsweise die italienische Stimme `lorenzo` zu verwenden, verwenden Sie folgende `audioOutputConfiguration`:

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

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

Um Deutsch als Antwortsprache festzulegen, fügen Sie bitte die folgende Zeile zu Ihrem Prompt hinzu:

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

**Beispiel für einen vollständigen Prompt mit Deutsch**  
`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.`

**Wie eine Sprach-ID spezifiziert wird**  
Um eine bestimmte Stimme für Ihre Interaktion auszuwählen, nehmen Sie den `voiceId`-Parameter in Ihre Konfiguration auf. Um beispielsweise die deutsche Stimme `greta` zu verwenden, verwenden Sie folgende `audioOutputConfiguration`:

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

------