Skip to content

Commit

Permalink
feat: Generate Google.Apis.Texttospeech.v1beta1 version 1.68.0.3586
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Oct 30, 2024
1 parent 4605ee9 commit 736da33
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 6 deletions.
54 changes: 51 additions & 3 deletions DiscoveryJson/texttospeech.v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@
}
}
},
"revision": "20241008",
"revision": "20241026",
"rootUrl": "https://texttospeech.googleapis.com/",
"schemas": {
"AdvancedVoiceOptions": {
"description": "Used for advanced voice options.",
"id": "AdvancedVoiceOptions",
"properties": {
"lowLatencyJourneySynthesis": {
"description": "Only for Jounrney voices. If false, the synthesis will be context aware and have higher latency.",
"description": "Only for Journey voices. If false, the synthesis will be context aware and have higher latency.",
"type": "boolean"
}
},
Expand Down Expand Up @@ -455,6 +455,20 @@
},
"type": "object"
},
"MultiSpeakerMarkup": {
"description": "A collection of turns for multi-speaker synthesis.",
"id": "MultiSpeakerMarkup",
"properties": {
"turns": {
"description": "Required. Speaker turns.",
"items": {
"$ref": "Turn"
},
"type": "array"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
Expand Down Expand Up @@ -525,6 +539,10 @@
"$ref": "CustomPronunciations",
"description": "Optional. The pronunciation customizations to be applied to the input. If this is set, the input will be synthesized using the given pronunciation customizations. The initial support will be for EFIGS (English, French, Italian, German, Spanish) languages, as provided in VoiceSelectionParams. Journey and Instant Clone voices are not supported yet. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag (entirely or partially)."
},
"multiSpeakerMarkup": {
"$ref": "MultiSpeakerMarkup",
"description": "The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis."
},
"ssml": {
"description": "The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).",
"type": "string"
Expand Down Expand Up @@ -588,7 +606,7 @@
"properties": {
"advancedVoiceOptions": {
"$ref": "AdvancedVoiceOptions",
"description": "Adnanced voice options."
"description": "Advanced voice options."
},
"audioConfig": {
"$ref": "AudioConfig",
Expand Down Expand Up @@ -659,6 +677,21 @@
},
"type": "object"
},
"Turn": {
"description": "A Multi-speaker turn.",
"id": "Turn",
"properties": {
"speaker": {
"description": "Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.",
"type": "string"
},
"text": {
"description": "Required. The text to speak.",
"type": "string"
}
},
"type": "object"
},
"Voice": {
"description": "Description of a voice supported by the TTS service.",
"id": "Voice",
Expand Down Expand Up @@ -698,6 +731,17 @@
},
"type": "object"
},
"VoiceCloneParams": {
"description": "The configuration of Voice Clone feature.",
"id": "VoiceCloneParams",
"properties": {
"voiceCloningKey": {
"description": "Required. Created by GenerateVoiceCloningKey.",
"type": "string"
}
},
"type": "object"
},
"VoiceSelectionParams": {
"description": "Description of which voice to use for a synthesis request.",
"id": "VoiceSelectionParams",
Expand Down Expand Up @@ -729,6 +773,10 @@
"A gender-neutral voice. This voice is not yet supported."
],
"type": "string"
},
"voiceClone": {
"$ref": "VoiceCloneParams",
"description": "Optional. The configuration for a voice clone. If [VoiceCloneParams.voice_clone_key] is set, the service will choose the voice clone matching the specified configuration."
}
},
"type": "object"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ namespace Google.Apis.Texttospeech.v1beta1.Data
public class AdvancedVoiceOptions : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>
/// Only for Jounrney voices. If false, the synthesis will be context aware and have higher latency.
/// Only for Journey voices. If false, the synthesis will be context aware and have higher latency.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("lowLatencyJourneySynthesis")]
public virtual System.Nullable<bool> LowLatencyJourneySynthesis { get; set; }
Expand Down Expand Up @@ -868,6 +868,17 @@ public class ListVoicesResponse : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>A collection of turns for multi-speaker synthesis.</summary>
public class MultiSpeakerMarkup : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Required. Speaker turns.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("turns")]
public virtual System.Collections.Generic.IList<Turn> Turns { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>This resource represents a long-running operation that is the result of a network API call.</summary>
public class Operation : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down Expand Up @@ -957,6 +968,10 @@ public class SynthesisInput : Google.Apis.Requests.IDirectResponseSchema
[Newtonsoft.Json.JsonPropertyAttribute("customPronunciations")]
public virtual CustomPronunciations CustomPronunciations { get; set; }

/// <summary>The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("multiSpeakerMarkup")]
public virtual MultiSpeakerMarkup MultiSpeakerMarkup { get; set; }

/// <summary>
/// The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will
/// fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see
Expand Down Expand Up @@ -1089,7 +1104,7 @@ public class SynthesizeLongAudioRequest : Google.Apis.Requests.IDirectResponseSc
/// <summary>The top-level message sent by the client for the `SynthesizeSpeech` method.</summary>
public class SynthesizeSpeechRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Adnanced voice options.</summary>
/// <summary>Advanced voice options.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("advancedVoiceOptions")]
public virtual AdvancedVoiceOptions AdvancedVoiceOptions { get; set; }

Expand Down Expand Up @@ -1156,6 +1171,24 @@ public class Timepoint : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>A Multi-speaker turn.</summary>
public class Turn : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>
/// Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available
/// speakers.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("speaker")]
public virtual string Speaker { get; set; }

/// <summary>Required. The text to speak.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("text")]
public virtual string Text { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>Description of a voice supported by the TTS service.</summary>
public class Voice : Google.Apis.Requests.IDirectResponseSchema
{
Expand All @@ -1182,6 +1215,17 @@ public class Voice : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>The configuration of Voice Clone feature.</summary>
public class VoiceCloneParams : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Required. Created by GenerateVoiceCloningKey.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("voiceCloningKey")]
public virtual string VoiceCloningKey { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>Description of which voice to use for a synthesis request.</summary>
public class VoiceSelectionParams : Google.Apis.Requests.IDirectResponseSchema
{
Expand Down Expand Up @@ -1220,6 +1264,13 @@ public class VoiceSelectionParams : Google.Apis.Requests.IDirectResponseSchema
[Newtonsoft.Json.JsonPropertyAttribute("ssmlGender")]
public virtual string SsmlGender { get; set; }

/// <summary>
/// Optional. The configuration for a voice clone. If [VoiceCloneParams.voice_clone_key] is set, the service
/// will choose the voice clone matching the specified configuration.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("voiceClone")]
public virtual VoiceCloneParams VoiceClone { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.Texttospeech.v1beta1 Client Library</Title>
<Version>1.68.0.3568</Version>
<Version>1.68.0.3586</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit 736da33

Please sign in to comment.