本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
語音特定的提示技巧
注意
本文件適用於 Amazon Nova 第 1 版。如需 Amazon Nova 2 Speech-to-Speech提示工程指南,請造訪語音對話提示。
即使在相同的語言中,也可以透過操縱特定地區設定的模型來增強回應和詞語字選擇。因此,我們建議您在系統提示詞中包含指示,以采用語音地區設定專屬的自然語言。
可用的語音和地區設定如下:
Language |
女性聲音語音 ID |
男性聲音語音 ID |
|---|---|---|
英文 (美國) |
tiffany |
matthew |
英文 (英國) |
amy |
|
法文 |
ambre |
florian |
義大利文 |
beatrice |
lorenzo |
德文 |
greta |
lennart |
西班牙文 |
lupe |
carlos |
- British English
-
若要指定使用英式英文,請將以下行新增至您的提示詞:
Use British English as your language for your responses.具有英式英文選擇項的完整提示詞範例
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.如何指定語音 ID
若要為您的互動選取特定語音,請在組態中包含
voiceId參數。例如,若要使用英式英文語音amy,請使用下列audioOutputConfiguration:"audioOutputConfiguration": { "mediaType": "audio/lpcm", "sampleRateHertz": 24000, "sampleSizeBits": 16, "channelCount": 1, "voiceId": "amy", "encoding": "base64", "audioType": "SPEECH" } - Spanish
-
若要指定西班牙文作為回應語言,請將以下行新增至您的提示詞:
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.具有西班牙文選擇項的完整提示詞範例
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.如何指定語音 ID
若要為您的互動選取特定語音,請在組態中包含
voiceId參數。例如,若要使用西班牙文語音carlos,請使用下列audioOutputConfiguration:"audioOutputConfiguration": { "mediaType": "audio/lpcm", "sampleRateHertz": 24000, "sampleSizeBits": 16, "channelCount": 1, "voiceId": "carlos", "encoding": "base64", "audioType": "SPEECH" } - French
-
若要指定法文作為回應語言,請將以下行新增至您的提示詞:
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.具有法文選擇項的完整提示詞範例
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.如何指定語音 ID
若要為您的互動選取特定語音,請在組態中包含
voiceId參數。例如,若要使用法文語音ambre,請使用下列audioOutputConfiguration:"audioOutputConfiguration": { "mediaType": "audio/lpcm", "sampleRateHertz": 24000, "sampleSizeBits": 16, "channelCount": 1, "voiceId": "ambre", "encoding": "base64", "audioType": "SPEECH" } - Italian
-
若要指定義大利文作為回應語言,請將以下行新增至您的提示詞:
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.具有義大利文選擇項的完整提示詞範例
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.如何指定語音 ID
若要為您的互動選取特定語音,請在組態中包含
voiceId參數。例如,若要使用義大利文語音lorenzo,請使用下列audioOutputConfiguration:"audioOutputConfiguration": { "mediaType": "audio/lpcm", "sampleRateHertz": 24000, "sampleSizeBits": 16, "channelCount": 1, "voiceId": "lorenzo", "encoding": "base64", "audioType": "SPEECH" } - German
-
若要指定德文作為回應語言,請將以下行新增至您的提示詞:
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.具有德文選擇項的完整提示詞範例
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.如何指定語音 ID
若要為您的互動選取特定語音,請在組態中包含
voiceId參數。例如,若要使用德文語音greta,請使用下列audioOutputConfiguration:"audioOutputConfiguration": { "mediaType": "audio/lpcm", "sampleRateHertz": 24000, "sampleSizeBits": 16, "channelCount": 1, "voiceId": "greta", "encoding": "base64", "audioType": "SPEECH" }