Skip to content

Commit c866721

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add prompt to SynthesisInput
PiperOrigin-RevId: 802731785
1 parent acdae9a commit c866721

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

google/cloud/texttospeech/v1/cloud_tts.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ message SynthesisInput {
281281
MultiSpeakerMarkup multi_speaker_markup = 4;
282282
}
283283

284+
// This system instruction is supported only for controllable/promptable voice
285+
// models. If this system instruction is used, we pass the unedited text to
286+
// Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
287+
// calls this system instruction, Style Instructions.
288+
optional string prompt = 6;
289+
284290
// Optional. The pronunciation customizations are applied to the input. If
285291
// this is set, the input is synthesized using the given pronunciation
286292
// customizations.

0 commit comments

Comments
 (0)