@@ -41,6 +41,22 @@ public abstract class ReplicatedVoiceConfig extends JsonSerializable {
4141 @ JsonProperty ("voiceSampleAudio" )
4242 public abstract Optional <byte []> voiceSampleAudio ();
4343
44+ /**
45+ * Recorded consent verifying ownership of the voice. This represents 16-bit signed little-endian
46+ * wav data, with a 24kHz sampling rate.
47+ */
48+ @ JsonProperty ("consentAudio" )
49+ public abstract Optional <byte []> consentAudio ();
50+
51+ /**
52+ * Signature of a previously verified consent audio. This should be populated with a signature
53+ * generated by the server for a previous request containing the consent_audio field. When
54+ * provided, the signature is verified instead of the consent_audio field to reduce latency.
55+ * Requests will fail if the signature is invalid or expired.
56+ */
57+ @ JsonProperty ("voiceConsentSignature" )
58+ public abstract Optional <VoiceConsentSignature > voiceConsentSignature ();
59+
4460 /** Instantiates a builder for ReplicatedVoiceConfig. */
4561 @ ExcludeFromGeneratedCoverageReport
4662 public static Builder builder () {
@@ -97,6 +113,60 @@ public Builder clearVoiceSampleAudio() {
97113 return voiceSampleAudio (Optional .empty ());
98114 }
99115
116+ /**
117+ * Setter for consentAudio.
118+ *
119+ * <p>consentAudio: Recorded consent verifying ownership of the voice. This represents 16-bit
120+ * signed little-endian wav data, with a 24kHz sampling rate.
121+ */
122+ @ JsonProperty ("consentAudio" )
123+ public abstract Builder consentAudio (byte [] consentAudio );
124+
125+ @ ExcludeFromGeneratedCoverageReport
126+ abstract Builder consentAudio (Optional <byte []> consentAudio );
127+
128+ /** Clears the value of consentAudio field. */
129+ @ ExcludeFromGeneratedCoverageReport
130+ @ CanIgnoreReturnValue
131+ public Builder clearConsentAudio () {
132+ return consentAudio (Optional .empty ());
133+ }
134+
135+ /**
136+ * Setter for voiceConsentSignature.
137+ *
138+ * <p>voiceConsentSignature: Signature of a previously verified consent audio. This should be
139+ * populated with a signature generated by the server for a previous request containing the
140+ * consent_audio field. When provided, the signature is verified instead of the consent_audio
141+ * field to reduce latency. Requests will fail if the signature is invalid or expired.
142+ */
143+ @ JsonProperty ("voiceConsentSignature" )
144+ public abstract Builder voiceConsentSignature (VoiceConsentSignature voiceConsentSignature );
145+
146+ /**
147+ * Setter for voiceConsentSignature builder.
148+ *
149+ * <p>voiceConsentSignature: Signature of a previously verified consent audio. This should be
150+ * populated with a signature generated by the server for a previous request containing the
151+ * consent_audio field. When provided, the signature is verified instead of the consent_audio
152+ * field to reduce latency. Requests will fail if the signature is invalid or expired.
153+ */
154+ @ CanIgnoreReturnValue
155+ public Builder voiceConsentSignature (
156+ VoiceConsentSignature .Builder voiceConsentSignatureBuilder ) {
157+ return voiceConsentSignature (voiceConsentSignatureBuilder .build ());
158+ }
159+
160+ @ ExcludeFromGeneratedCoverageReport
161+ abstract Builder voiceConsentSignature (Optional <VoiceConsentSignature > voiceConsentSignature );
162+
163+ /** Clears the value of voiceConsentSignature field. */
164+ @ ExcludeFromGeneratedCoverageReport
165+ @ CanIgnoreReturnValue
166+ public Builder clearVoiceConsentSignature () {
167+ return voiceConsentSignature (Optional .empty ());
168+ }
169+
100170 public abstract ReplicatedVoiceConfig build ();
101171 }
102172
0 commit comments