@maxim_mazurok/gapi.client.texttospeech-v1beta1
Advanced tools
Comparing version 0.0.20230414 to 0.0.20230420
407
index.d.ts
@@ -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: 20230414 | ||
// Revision: 20230420 | ||
@@ -28,3 +28,4 @@ /// <reference types="gapi.client" /> | ||
/** Required. The format of the audio byte stream. */ | ||
audioEncoding?: string; | ||
audioEncoding?: | ||
string; | ||
/** | ||
@@ -34,5 +35,7 @@ * Optional. Input only. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the | ||
*/ | ||
effectsProfileId?: string[]; | ||
effectsProfileId?: | ||
string[]; | ||
/** Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch. */ | ||
pitch?: number; | ||
pitch?: | ||
number; | ||
/** | ||
@@ -43,3 +46,4 @@ * Optional. The synthesis sample rate (in hertz) for this audio. When this is specified in SynthesizeSpeechRequest, if this is different from the voice's natural sample rate, then the | ||
*/ | ||
sampleRateHertz?: number; | ||
sampleRateHertz?: | ||
number; | ||
/** | ||
@@ -49,3 +53,4 @@ * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. | ||
*/ | ||
speakingRate?: number; | ||
speakingRate?: | ||
number; | ||
/** | ||
@@ -57,31 +62,41 @@ * Optional. Input only. Volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play | ||
*/ | ||
volumeGainDb?: number; | ||
volumeGainDb?: | ||
number; | ||
} | ||
interface CustomVoiceParams { | ||
/** Required. The name of the AutoML model that synthesizes the custom voice. */ | ||
model?: string; | ||
model?: | ||
string; | ||
/** Optional. The usage of the synthesized audio to be reported. */ | ||
reportedUsage?: string; | ||
reportedUsage?: | ||
string; | ||
} | ||
interface GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata { | ||
/** The progress of the most recent processing update in percentage, ie. 70.0%. */ | ||
progressPercentage?: number; | ||
progressPercentage?: | ||
number; | ||
/** Time when the request was received. */ | ||
startTime?: string; | ||
startTime?: | ||
string; | ||
} | ||
interface ListOperationsResponse { | ||
/** The standard List next-page token. */ | ||
nextPageToken?: string; | ||
nextPageToken?: | ||
string; | ||
/** A list of operations that matches the specified filter in the request. */ | ||
operations?: Operation[]; | ||
operations?: | ||
Operation[]; | ||
} | ||
interface ListVoicesResponse { | ||
/** The list of voices. */ | ||
voices?: Voice[]; | ||
voices?: | ||
Voice[]; | ||
} | ||
interface Operation { | ||
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */ | ||
done?: boolean; | ||
done?: | ||
boolean; | ||
/** The error result of the operation in case of failure or cancellation. */ | ||
error?: Status; | ||
error?: | ||
Status; | ||
/** | ||
@@ -91,3 +106,4 @@ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such | ||
*/ | ||
metadata?: { [P in string]: any }; | ||
metadata?: | ||
{ [P in string]: any }; | ||
/** | ||
@@ -97,3 +113,4 @@ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending | ||
*/ | ||
name?: string; | ||
name?: | ||
string; | ||
/** | ||
@@ -104,9 +121,12 @@ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the | ||
*/ | ||
response?: { [P in string]: any }; | ||
response?: | ||
{ [P in string]: any }; | ||
} | ||
interface Status { | ||
/** The status code, which should be an enum value of google.rpc.Code. */ | ||
code?: number; | ||
code?: | ||
number; | ||
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */ | ||
details?: Array<{ [P in string]: any }>; | ||
details?: | ||
Array<{ [P in string]: any }>; | ||
/** | ||
@@ -116,3 +136,4 @@ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the | ||
*/ | ||
message?: string; | ||
message?: | ||
string; | ||
} | ||
@@ -124,35 +145,48 @@ interface SynthesisInput { | ||
*/ | ||
ssml?: string; | ||
ssml?: | ||
string; | ||
/** The raw text to be synthesized. */ | ||
text?: string; | ||
text?: | ||
string; | ||
} | ||
interface SynthesizeLongAudioMetadata { | ||
/** The progress of the most recent processing update in percentage, ie. 70.0%. */ | ||
progressPercentage?: number; | ||
progressPercentage?: | ||
number; | ||
/** Time when the request was received. */ | ||
startTime?: string; | ||
startTime?: | ||
string; | ||
} | ||
interface SynthesizeLongAudioRequest { | ||
/** Required. The configuration of the synthesized audio. */ | ||
audioConfig?: AudioConfig; | ||
audioConfig?: | ||
AudioConfig; | ||
/** Required. The Synthesizer requires either plain text or SSML as input. */ | ||
input?: SynthesisInput; | ||
input?: | ||
SynthesisInput; | ||
/** Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist. */ | ||
outputGcsUri?: string; | ||
outputGcsUri?: | ||
string; | ||
/** The desired voice of the synthesized audio. */ | ||
voice?: VoiceSelectionParams; | ||
voice?: | ||
VoiceSelectionParams; | ||
} | ||
interface SynthesizeSpeechRequest { | ||
/** Required. The configuration of the synthesized audio. */ | ||
audioConfig?: AudioConfig; | ||
audioConfig?: | ||
AudioConfig; | ||
/** Whether and what timepoints are returned in the response. */ | ||
enableTimePointing?: string[]; | ||
enableTimePointing?: | ||
string[]; | ||
/** Required. The Synthesizer requires either plain text or SSML as input. */ | ||
input?: SynthesisInput; | ||
input?: | ||
SynthesisInput; | ||
/** Required. The desired voice of the synthesized audio. */ | ||
voice?: VoiceSelectionParams; | ||
voice?: | ||
VoiceSelectionParams; | ||
} | ||
interface SynthesizeSpeechResponse { | ||
/** The audio metadata of `audio_content`. */ | ||
audioConfig?: AudioConfig; | ||
audioConfig?: | ||
AudioConfig; | ||
/** | ||
@@ -162,25 +196,34 @@ * The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the | ||
*/ | ||
audioContent?: string; | ||
audioContent?: | ||
string; | ||
/** A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `` of SSML input. */ | ||
timepoints?: Timepoint[]; | ||
timepoints?: | ||
Timepoint[]; | ||
} | ||
interface Timepoint { | ||
/** Timepoint name as received from the client within `` tag. */ | ||
markName?: string; | ||
markName?: | ||
string; | ||
/** Time offset in seconds from the start of the synthesized audio. */ | ||
timeSeconds?: number; | ||
timeSeconds?: | ||
number; | ||
} | ||
interface Voice { | ||
/** The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw"). */ | ||
languageCodes?: string[]; | ||
languageCodes?: | ||
string[]; | ||
/** The name of this voice. Each distinct voice has a unique name. */ | ||
name?: string; | ||
name?: | ||
string; | ||
/** The natural sample rate (in hertz) for this voice. */ | ||
naturalSampleRateHertz?: number; | ||
naturalSampleRateHertz?: | ||
number; | ||
/** The gender of this voice. */ | ||
ssmlGender?: string; | ||
ssmlGender?: | ||
string; | ||
} | ||
interface VoiceSelectionParams { | ||
/** The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration. */ | ||
customVoice?: CustomVoiceParams; | ||
customVoice?: | ||
CustomVoiceParams; | ||
/** | ||
@@ -193,5 +236,7 @@ * Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should | ||
*/ | ||
languageCode?: string; | ||
languageCode?: | ||
string; | ||
/** The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and gender. */ | ||
name?: string; | ||
name?: | ||
string; | ||
/** | ||
@@ -201,3 +246,4 @@ * The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not | ||
*/ | ||
ssmlGender?: string; | ||
ssmlGender?: | ||
string; | ||
} | ||
@@ -208,25 +254,37 @@ interface OperationsResource { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
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; | ||
key?: | ||
string; | ||
/** The name of the operation resource. */ | ||
name: string; | ||
name: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
}): Request<Operation>; | ||
@@ -236,31 +294,46 @@ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */ | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
fields?: | ||
string; | ||
/** The standard list filter. */ | ||
filter?: string; | ||
filter?: | ||
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; | ||
key?: | ||
string; | ||
/** The name of the operation's parent resource. */ | ||
name: string; | ||
name: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** The standard list page size. */ | ||
pageSize?: number; | ||
pageSize?: | ||
number; | ||
/** The standard list page token. */ | ||
pageToken?: string; | ||
pageToken?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
}): Request<ListOperationsResponse>; | ||
@@ -272,59 +345,86 @@ } | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
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; | ||
key?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** The resource states of the request in the form of `projects/*/locations/*`. */ | ||
parent: string; | ||
parent: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
/** Request body */ | ||
resource: SynthesizeLongAudioRequest; | ||
resource: | ||
SynthesizeLongAudioRequest; | ||
}): Request<Operation>; | ||
synthesizeLongAudio(request: { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
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; | ||
key?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** The resource states of the request in the form of `projects/*/locations/*`. */ | ||
parent: string; | ||
parent: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
}, | ||
body: SynthesizeLongAudioRequest): Request<Operation>; | ||
operations: OperationsResource; | ||
operations: | ||
OperationsResource; | ||
} | ||
interface ProjectsResource { | ||
locations: LocationsResource; | ||
locations: | ||
LocationsResource; | ||
} | ||
@@ -335,49 +435,72 @@ interface TextResource { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
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; | ||
key?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
/** Request body */ | ||
resource: SynthesizeSpeechRequest; | ||
resource: | ||
SynthesizeSpeechRequest; | ||
}): Request<SynthesizeSpeechResponse>; | ||
synthesize(request: { | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
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; | ||
key?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
}, | ||
@@ -390,13 +513,19 @@ body: SynthesizeSpeechRequest): Request<SynthesizeSpeechResponse>; | ||
/** V1 error format. */ | ||
"$.xgafv"?: string; | ||
"$.xgafv"?: | ||
string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
access_token?: | ||
string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
alt?: | ||
string; | ||
/** JSONP */ | ||
callback?: string; | ||
callback?: | ||
string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
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; | ||
key?: | ||
string; | ||
/** | ||
@@ -407,13 +536,19 @@ * Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the | ||
*/ | ||
languageCode?: string; | ||
languageCode?: | ||
string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
oauth_token?: | ||
string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
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; | ||
quotaUser?: | ||
string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
upload_protocol?: | ||
string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
uploadType?: | ||
string; | ||
}): Request<ListVoicesResponse>; | ||
@@ -420,0 +555,0 @@ } |
{ | ||
"name": "@maxim_mazurok/gapi.client.texttospeech-v1beta1", | ||
"version": "0.0.20230414", | ||
"version": "0.0.20230420", | ||
"description": "TypeScript typings for Cloud Text-to-Speech API v1beta1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.texttospeech-v1beta1 definition tests */ | ||
// Revision: 20230414 | ||
// Revision: 20230420 | ||
@@ -9,0 +9,0 @@ gapi.load('client', async () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34167
662