Skip to content

Commit eeaccdb

Browse files
feat: [texttospeech] add relax_safety_filters proto field for Gemini TTS (#6823)
* feat: add `relax_safety_filters` proto field for Gemini TTS PiperOrigin-RevId: 820699890 Source-Link: googleapis/googleapis@50d4eb9 Source-Link: googleapis/googleapis-gen@683f70c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRleHR0b3NwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiNjgzZjcwYzBlNTBiNDlkMzU4NjRlOTRiYzFhNDJkZGM5NzFjYmNiNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add `relax_safety_filters` proto field for Gemini TTS PiperOrigin-RevId: 820700239 Source-Link: googleapis/googleapis@59aac0a Source-Link: googleapis/googleapis-gen@298f19a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRleHR0b3NwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiMjk4ZjE5YTg5ZWRkMjI0ZTk0MTkxYjAzM2ZhMDRkNTBiYmE5NmI5NyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d7ec9a4 commit eeaccdb

5 files changed

Lines changed: 92 additions & 0 deletions

File tree

packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ message AdvancedVoiceOptions {
164164
// Only for Journey voices. If false, the synthesis is context aware
165165
// and has a higher latency.
166166
optional bool low_latency_journey_synthesis = 1;
167+
168+
// Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
169+
// supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
170+
// Otherwise, will return result
171+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
172+
bool relax_safety_filters = 8 [
173+
(google.api.field_behavior) = INPUT_ONLY,
174+
(google.api.field_behavior) = OPTIONAL
175+
];
167176
}
168177

169178
// The top-level message sent by the client for the `SynthesizeSpeech` method.

packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,15 @@ message AdvancedVoiceOptions {
167167
// Only for Journey voices. If false, the synthesis is context aware
168168
// and has a higher latency.
169169
optional bool low_latency_journey_synthesis = 1;
170+
171+
// Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
172+
// supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
173+
// Otherwise, will return result
174+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
175+
bool relax_safety_filters = 8 [
176+
(google.api.field_behavior) = INPUT_ONLY,
177+
(google.api.field_behavior) = OPTIONAL
178+
];
170179
}
171180

172181
// The top-level message sent by the client for the `SynthesizeSpeech` method.

packages/google-cloud-texttospeech/protos/protos.d.ts

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-texttospeech/protos/protos.js

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-texttospeech/protos/protos.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)