

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Teknik bimbingan khusus suara
<a name="prompting-speech-voice-language"></a>

**catatan**  
Dokumentasi ini untuk Amazon Nova Versi 1. Untuk panduan teknik Speech-to-Speech cepat Amazon Nova 2, kunjungi Permintaan [percakapan suara.](https://docs.aws.amazon.com/nova/latest/nova2-userguide/sonic-system-prompts.html)

Bahkan dalam bahasa yang sama, respons dan pilihan kata dapat ditingkatkan dengan mengarahkan model untuk lokal tertentu. Oleh karena itu, kami menyarankan agar Anda menyertakan instruksi dalam prompt sistem untuk menampilkan bahasa yang alami dan spesifik untuk lokal suara Anda.

Suara dan lokal yang tersedia adalah sebagai berikut:


| Bahasa | ID suara yang terdengar feminin | ID suara yang terdengar maskulin | 
| --- |--- |--- |
| Inggris (US) | tiffany | matthew | 
| Bahasa Inggris (GB) | amy |  | 
| Prancis | ambre | florian | 
| Bahasa Italia | beatrice | lorenzo | 
| Bahasa Jerman | greta | lennart | 
| Bahasa Spanyol | lupe | carlos | 

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

Untuk menentukan penggunaan bahasa Inggris Inggris, tambahkan baris berikut ke prompt Anda:

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

**Contoh prompt lengkap dengan pilihan bahasa Inggris Inggris**  
`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.`

**Cara Menentukan Id Suara**  
Untuk memilih suara tertentu untuk interaksi Anda, sertakan `voiceId` parameter dalam konfigurasi Anda. Misalnya, untuk menggunakan suara Inggris Inggris`amy`, gunakan yang berikut ini`audioOutputConfiguration`:

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

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

Untuk menentukan bahasa Spanyol sebagai bahasa respons, tambahkan baris berikut ke prompt Anda:

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

**Contoh prompt lengkap dengan pilihan bahasa Spanyol**  
`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.`

**Cara Menentukan Id Suara**  
Untuk memilih suara tertentu untuk interaksi Anda, sertakan `voiceId` parameter dalam konfigurasi Anda. Misalnya, untuk menggunakan suara Spanyol`carlos`, gunakan yang berikut ini`audioOutputConfiguration`:

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

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

Untuk menentukan bahasa Prancis sebagai bahasa respons, tambahkan baris berikut ke prompt Anda:

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

**Contoh prompt lengkap dengan seleksi Prancis**  
`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.`

**Cara Menentukan Id Suara**  
Untuk memilih suara tertentu untuk interaksi Anda, sertakan `voiceId` parameter dalam konfigurasi Anda. Misalnya, untuk menggunakan suara Prancis`ambre`, gunakan yang berikut ini`audioOutputConfiguration`:

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

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

Untuk menentukan bahasa Italia sebagai bahasa respons, tambahkan baris berikut ke prompt Anda:

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

**Contoh prompt lengkap dengan pilihan Italia**  
`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.`

**Cara Menentukan Id Suara**  
Untuk memilih suara tertentu untuk interaksi Anda, sertakan `voiceId` parameter dalam konfigurasi Anda. Misalnya, untuk menggunakan suara Italia`lorenzo`, gunakan yang berikut ini`audioOutputConfiguration`:

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

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

Untuk menentukan bahasa Jerman sebagai bahasa respons, tambahkan baris berikut ke prompt Anda:

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

**Contoh prompt lengkap dengan seleksi Jerman**  
`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.`

**Cara Menentukan Id Suara**  
Untuk memilih suara tertentu untuk interaksi Anda, sertakan `voiceId` parameter dalam konfigurasi Anda. Misalnya, untuk menggunakan suara Jerman`greta`, gunakan yang berikut ini`audioOutputConfiguration`:

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

------