@maxim_mazurok/gapi.client.texttospeech-v1beta1
Advanced tools
Comparing version 0.0.20241004 to 0.0.20241008
@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Cloud Text-to-Speech API v1beta1 0.0 */ | ||
// Generated from: https://texttospeech.googleapis.com/$discovery/rest?version=v1beta1 | ||
// Revision: 20241004 | ||
// Revision: 20241008 | ||
@@ -68,16 +68,2 @@ /// <reference types="gapi.client" /> | ||
} | ||
interface GenerateVoiceCloningKeyRequest { | ||
/** Required. The script used for the voice talent statement. The script will be provided to the caller through other channels. It must be returned unchanged in this field. */ | ||
consentScript?: string; | ||
/** Required. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of the currently supported language codes. */ | ||
languageCode?: string; | ||
/** Required. The training audio used to create voice clone. This is currently limited to LINEAR16 PCM WAV files mono audio with 24khz sample rate. This needs to be specified in [InputAudio.audio_config], other values will be explicitly rejected. */ | ||
referenceAudio?: InputAudio; | ||
/** Required. The voice talent audio used to verify consent to voice clone. */ | ||
voiceTalentConsent?: InputAudio; | ||
} | ||
interface GenerateVoiceCloningKeyResponse { | ||
/** The voice clone key. Use it in the SynthesizeSpeechRequest by setting [voice.voice_clone.voice_cloning_key]. */ | ||
voiceCloningKey?: string; | ||
} | ||
interface GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata { | ||
@@ -91,14 +77,2 @@ /** Deprecated. Do not use. */ | ||
} | ||
interface InputAudio { | ||
/** Required. Provides information that specifies how to process content. */ | ||
audioConfig?: InputAudioConfig; | ||
/** Required. The audio data bytes encoded as specified in `InputAudioConfig`. Note: as with all bytes fields, proto buffers use a pure binary representation, whereas JSON representations use base64. Audio samples should be between 5-25 seconds in length. */ | ||
content?: string; | ||
} | ||
interface InputAudioConfig { | ||
/** Required. The format of the audio byte stream. */ | ||
audioEncoding?: string; | ||
/** Required. The sample rate (in hertz) for this audio. */ | ||
sampleRateHertz?: number; | ||
} | ||
interface ListOperationsResponse { | ||
@@ -196,6 +170,2 @@ /** The standard List next-page token. */ | ||
} | ||
interface VoiceCloneParams { | ||
/** Required. Created by GenerateVoiceCloningKey. */ | ||
voiceCloningKey?: string; | ||
} | ||
interface VoiceSelectionParams { | ||
@@ -210,4 +180,2 @@ /** The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration. */ | ||
ssmlGender?: string; | ||
/** 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. */ | ||
voiceClone?: VoiceCloneParams; | ||
} | ||
@@ -397,56 +365,2 @@ interface OperationsResource { | ||
interface VoicesResource { | ||
/** Generates voice clone key given a short voice prompt. This method validates the voice prompts with a series of checks against the voice talent statement to verify the voice clone is safe to generate. */ | ||
generateVoiceCloningKey(request: { | ||
/** V1 error format. */ | ||
'$.xgafv'?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
/** Request body */ | ||
resource: GenerateVoiceCloningKeyRequest; | ||
}): Request<GenerateVoiceCloningKeyResponse>; | ||
generateVoiceCloningKey( | ||
request: { | ||
/** V1 error format. */ | ||
'$.xgafv'?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
}, | ||
body: GenerateVoiceCloningKeyRequest | ||
): Request<GenerateVoiceCloningKeyResponse>; | ||
/** Returns a list of Voice supported for synthesis. */ | ||
@@ -453,0 +367,0 @@ list(request?: { |
{ | ||
"name": "@maxim_mazurok/gapi.client.texttospeech-v1beta1", | ||
"version": "0.0.20241004", | ||
"version": "0.0.20241008", | ||
"description": "TypeScript typings for Cloud Text-to-Speech API v1beta1", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -78,7 +78,2 @@ # TypeScript typings for Cloud Text-to-Speech API v1beta1 | ||
/* | ||
Generates voice clone key given a short voice prompt. This method validates the voice prompts with a series of checks against the voice talent statement to verify the voice clone is safe to generate. | ||
*/ | ||
await gapi.client.texttospeech.voices.generateVoiceCloningKey({}); | ||
/* | ||
Returns a list of Voice supported for synthesis. | ||
@@ -85,0 +80,0 @@ */ |
25883
398
82