mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-01 04:40:38 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+96
-63
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package polly provides a client for Amazon Polly.
|
||||
package polly
|
||||
|
||||
import (
|
||||
@@ -16,19 +15,18 @@ const opDeleteLexicon = "DeleteLexicon"
|
||||
|
||||
// DeleteLexiconRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLexicon operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteLexicon for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLexicon method directly
|
||||
// instead.
|
||||
// See DeleteLexicon for more information on using the DeleteLexicon
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLexiconRequest method.
|
||||
// req, resp := client.DeleteLexiconRequest(params)
|
||||
@@ -108,19 +106,18 @@ const opDescribeVoices = "DescribeVoices"
|
||||
|
||||
// DescribeVoicesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeVoices operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeVoices for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeVoices method directly
|
||||
// instead.
|
||||
// See DescribeVoices for more information on using the DescribeVoices
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeVoicesRequest method.
|
||||
// req, resp := client.DescribeVoicesRequest(params)
|
||||
@@ -208,19 +205,18 @@ const opGetLexicon = "GetLexicon"
|
||||
|
||||
// GetLexiconRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetLexicon operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetLexicon for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetLexicon method directly
|
||||
// instead.
|
||||
// See GetLexicon for more information on using the GetLexicon
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetLexiconRequest method.
|
||||
// req, resp := client.GetLexiconRequest(params)
|
||||
@@ -297,19 +293,18 @@ const opListLexicons = "ListLexicons"
|
||||
|
||||
// ListLexiconsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListLexicons operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListLexicons for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListLexicons method directly
|
||||
// instead.
|
||||
// See ListLexicons for more information on using the ListLexicons
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListLexiconsRequest method.
|
||||
// req, resp := client.ListLexiconsRequest(params)
|
||||
@@ -382,19 +377,18 @@ const opPutLexicon = "PutLexicon"
|
||||
|
||||
// PutLexiconRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutLexicon operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See PutLexicon for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutLexicon method directly
|
||||
// instead.
|
||||
// See PutLexicon for more information on using the PutLexicon
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutLexiconRequest method.
|
||||
// req, resp := client.PutLexiconRequest(params)
|
||||
@@ -488,19 +482,18 @@ const opSynthesizeSpeech = "SynthesizeSpeech"
|
||||
|
||||
// SynthesizeSpeechRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SynthesizeSpeech operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SynthesizeSpeech for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SynthesizeSpeech method directly
|
||||
// instead.
|
||||
// See SynthesizeSpeech for more information on using the SynthesizeSpeech
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SynthesizeSpeechRequest method.
|
||||
// req, resp := client.SynthesizeSpeechRequest(params)
|
||||
@@ -566,6 +559,13 @@ func (c *Polly) SynthesizeSpeechRequest(input *SynthesizeSpeechInput) (req *requ
|
||||
// * ErrCodeServiceFailureException "ServiceFailureException"
|
||||
// An unknown condition has caused a service failure.
|
||||
//
|
||||
// * ErrCodeMarksNotSupportedForFormatException "MarksNotSupportedForFormatException"
|
||||
// Speech marks are not supported for the OutputFormat selected. Speech marks
|
||||
// are only available for content in json format.
|
||||
//
|
||||
// * ErrCodeSsmlMarksNotSupportedForTextTypeException "SsmlMarksNotSupportedForTextTypeException"
|
||||
// SSML speech marks are not supported for plain text-type input.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesizeSpeech
|
||||
func (c *Polly) SynthesizeSpeech(input *SynthesizeSpeechInput) (*SynthesizeSpeechOutput, error) {
|
||||
req, out := c.SynthesizeSpeechRequest(input)
|
||||
@@ -1068,7 +1068,8 @@ type SynthesizeSpeechInput struct {
|
||||
// see PutLexicon (http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html).
|
||||
LexiconNames []*string `type:"list"`
|
||||
|
||||
// The audio format in which the resulting stream will be encoded.
|
||||
// The format in which the returned output will be encoded. For audio stream,
|
||||
// this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.
|
||||
//
|
||||
// OutputFormat is a required field
|
||||
OutputFormat *string `type:"string" required:"true" enum:"OutputFormat"`
|
||||
@@ -1081,6 +1082,9 @@ type SynthesizeSpeechInput struct {
|
||||
// Valid values for pcm are "8000" and "16000" The default value is "16000".
|
||||
SampleRate *string `type:"string"`
|
||||
|
||||
// The type of speech marks returned for the input text.
|
||||
SpeechMarkTypes []*string `type:"list"`
|
||||
|
||||
// Input text to synthesize. If you specify ssml as the TextType, follow the
|
||||
// SSML format for the input text.
|
||||
//
|
||||
@@ -1146,6 +1150,12 @@ func (s *SynthesizeSpeechInput) SetSampleRate(v string) *SynthesizeSpeechInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSpeechMarkTypes sets the SpeechMarkTypes field's value.
|
||||
func (s *SynthesizeSpeechInput) SetSpeechMarkTypes(v []*string) *SynthesizeSpeechInput {
|
||||
s.SpeechMarkTypes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetText sets the Text field's value.
|
||||
func (s *SynthesizeSpeechInput) SetText(v string) *SynthesizeSpeechInput {
|
||||
s.Text = &v
|
||||
@@ -1183,6 +1193,9 @@ type SynthesizeSpeechOutput struct {
|
||||
// * If you request pcm as the OutputFormat, the ContentType returned is
|
||||
// audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
|
||||
//
|
||||
//
|
||||
// * If you request json as the OutputFormat, the ContentType returned is
|
||||
// audio/json.
|
||||
ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
|
||||
|
||||
// Number of characters synthesized.
|
||||
@@ -1363,6 +1376,9 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
// OutputFormatJson is a OutputFormat enum value
|
||||
OutputFormatJson = "json"
|
||||
|
||||
// OutputFormatMp3 is a OutputFormat enum value
|
||||
OutputFormatMp3 = "mp3"
|
||||
|
||||
@@ -1373,6 +1389,20 @@ const (
|
||||
OutputFormatPcm = "pcm"
|
||||
)
|
||||
|
||||
const (
|
||||
// SpeechMarkTypeSentence is a SpeechMarkType enum value
|
||||
SpeechMarkTypeSentence = "sentence"
|
||||
|
||||
// SpeechMarkTypeSsml is a SpeechMarkType enum value
|
||||
SpeechMarkTypeSsml = "ssml"
|
||||
|
||||
// SpeechMarkTypeViseme is a SpeechMarkType enum value
|
||||
SpeechMarkTypeViseme = "viseme"
|
||||
|
||||
// SpeechMarkTypeWord is a SpeechMarkType enum value
|
||||
SpeechMarkTypeWord = "word"
|
||||
)
|
||||
|
||||
const (
|
||||
// TextTypeSsml is a TextType enum value
|
||||
TextTypeSsml = "ssml"
|
||||
@@ -1522,4 +1552,7 @@ const (
|
||||
|
||||
// VoiceIdFiliz is a VoiceId enum value
|
||||
VoiceIdFiliz = "Filiz"
|
||||
|
||||
// VoiceIdVicki is a VoiceId enum value
|
||||
VoiceIdVicki = "Vicki"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user