Documentation
¶
Overview ¶
Package speechsaasprodiface provides an interface to enable mocking the SPEECH_SAAS_PROD service client for testing your code.
It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.
Index ¶
- Constants
- type CategoryForListBigModelTTSTimbresOutput
- func (s CategoryForListBigModelTTSTimbresOutput) GoString() string
- func (s *CategoryForListBigModelTTSTimbresOutput) SetCategory(v string) *CategoryForListBigModelTTSTimbresOutput
- func (s *CategoryForListBigModelTTSTimbresOutput) SetNextCategory(v *NextCategoryForListBigModelTTSTimbresOutput) *CategoryForListBigModelTTSTimbresOutput
- func (s CategoryForListBigModelTTSTimbresOutput) String() string
- type EmotionForListBigModelTTSTimbresOutput
- func (s EmotionForListBigModelTTSTimbresOutput) GoString() string
- func (s *EmotionForListBigModelTTSTimbresOutput) SetDemoText(v string) *EmotionForListBigModelTTSTimbresOutput
- func (s *EmotionForListBigModelTTSTimbresOutput) SetDemoURL(v string) *EmotionForListBigModelTTSTimbresOutput
- func (s *EmotionForListBigModelTTSTimbresOutput) SetEmotion(v string) *EmotionForListBigModelTTSTimbresOutput
- func (s *EmotionForListBigModelTTSTimbresOutput) SetEmotionType(v string) *EmotionForListBigModelTTSTimbresOutput
- func (s EmotionForListBigModelTTSTimbresOutput) String() string
- type ListBigModelTTSTimbresInput
- type ListBigModelTTSTimbresOutput
- type NextCategoryForListBigModelTTSTimbresOutput
- type SPEECHSAASPROD
- func (c *SPEECHSAASPROD) ListBigModelTTSTimbres(input *ListBigModelTTSTimbresInput) (*ListBigModelTTSTimbresOutput, error)
- func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *SPEECHSAASPROD) ListBigModelTTSTimbresRequest(input *ListBigModelTTSTimbresInput) (req *request.Request, output *ListBigModelTTSTimbresOutput)
- func (c *SPEECHSAASPROD) ListBigModelTTSTimbresWithContext(ctx volcengine.Context, input *ListBigModelTTSTimbresInput, ...) (*ListBigModelTTSTimbresOutput, error)
- type SPEECHSAASPRODAPI
- type TimbreForListBigModelTTSTimbresOutput
- func (s TimbreForListBigModelTTSTimbresOutput) GoString() string
- func (s *TimbreForListBigModelTTSTimbresOutput) SetSpeakerID(v string) *TimbreForListBigModelTTSTimbresOutput
- func (s *TimbreForListBigModelTTSTimbresOutput) SetTimbreInfos(v []*TimbreInfoForListBigModelTTSTimbresOutput) *TimbreForListBigModelTTSTimbresOutput
- func (s TimbreForListBigModelTTSTimbresOutput) String() string
- type TimbreInfoForListBigModelTTSTimbresOutput
- func (s TimbreInfoForListBigModelTTSTimbresOutput) GoString() string
- func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetAge(v string) *TimbreInfoForListBigModelTTSTimbresOutput
- func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetCategories(v []*CategoryForListBigModelTTSTimbresOutput) *TimbreInfoForListBigModelTTSTimbresOutput
- func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetEmotions(v []*EmotionForListBigModelTTSTimbresOutput) *TimbreInfoForListBigModelTTSTimbresOutput
- func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetGender(v string) *TimbreInfoForListBigModelTTSTimbresOutput
- func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetSpeakerName(v string) *TimbreInfoForListBigModelTTSTimbresOutput
- func (s TimbreInfoForListBigModelTTSTimbresOutput) String() string
Constants ¶
const ( ServiceName = "speech_saas_prod" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "speech_saas_prod" // ServiceID is a unique identifer of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryForListBigModelTTSTimbresOutput ¶
type CategoryForListBigModelTTSTimbresOutput struct {
Category *string `type:"string" json:",omitempty"`
NextCategory *NextCategoryForListBigModelTTSTimbresOutput `type:"structure" json:",omitempty"`
// contains filtered or unexported fields
}
func (CategoryForListBigModelTTSTimbresOutput) GoString ¶
func (s CategoryForListBigModelTTSTimbresOutput) GoString() string
GoString returns the string representation
func (*CategoryForListBigModelTTSTimbresOutput) SetCategory ¶
func (s *CategoryForListBigModelTTSTimbresOutput) SetCategory(v string) *CategoryForListBigModelTTSTimbresOutput
SetCategory sets the Category field's value.
func (*CategoryForListBigModelTTSTimbresOutput) SetNextCategory ¶
func (s *CategoryForListBigModelTTSTimbresOutput) SetNextCategory(v *NextCategoryForListBigModelTTSTimbresOutput) *CategoryForListBigModelTTSTimbresOutput
SetNextCategory sets the NextCategory field's value.
func (CategoryForListBigModelTTSTimbresOutput) String ¶
func (s CategoryForListBigModelTTSTimbresOutput) String() string
String returns the string representation
type EmotionForListBigModelTTSTimbresOutput ¶
type EmotionForListBigModelTTSTimbresOutput struct {
DemoText *string `type:"string" json:",omitempty"`
DemoURL *string `type:"string" json:",omitempty"`
Emotion *string `type:"string" json:",omitempty"`
EmotionType *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (EmotionForListBigModelTTSTimbresOutput) GoString ¶
func (s EmotionForListBigModelTTSTimbresOutput) GoString() string
GoString returns the string representation
func (*EmotionForListBigModelTTSTimbresOutput) SetDemoText ¶
func (s *EmotionForListBigModelTTSTimbresOutput) SetDemoText(v string) *EmotionForListBigModelTTSTimbresOutput
SetDemoText sets the DemoText field's value.
func (*EmotionForListBigModelTTSTimbresOutput) SetDemoURL ¶
func (s *EmotionForListBigModelTTSTimbresOutput) SetDemoURL(v string) *EmotionForListBigModelTTSTimbresOutput
SetDemoURL sets the DemoURL field's value.
func (*EmotionForListBigModelTTSTimbresOutput) SetEmotion ¶
func (s *EmotionForListBigModelTTSTimbresOutput) SetEmotion(v string) *EmotionForListBigModelTTSTimbresOutput
SetEmotion sets the Emotion field's value.
func (*EmotionForListBigModelTTSTimbresOutput) SetEmotionType ¶
func (s *EmotionForListBigModelTTSTimbresOutput) SetEmotionType(v string) *EmotionForListBigModelTTSTimbresOutput
SetEmotionType sets the EmotionType field's value.
func (EmotionForListBigModelTTSTimbresOutput) String ¶
func (s EmotionForListBigModelTTSTimbresOutput) String() string
String returns the string representation
type ListBigModelTTSTimbresInput ¶
type ListBigModelTTSTimbresInput struct {
// contains filtered or unexported fields
}
func (ListBigModelTTSTimbresInput) GoString ¶
func (s ListBigModelTTSTimbresInput) GoString() string
GoString returns the string representation
func (ListBigModelTTSTimbresInput) String ¶
func (s ListBigModelTTSTimbresInput) String() string
String returns the string representation
type ListBigModelTTSTimbresOutput ¶
type ListBigModelTTSTimbresOutput struct {
Metadata *response.ResponseMetadata
Timbres []*TimbreForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`
// contains filtered or unexported fields
}
func (ListBigModelTTSTimbresOutput) GoString ¶
func (s ListBigModelTTSTimbresOutput) GoString() string
GoString returns the string representation
func (*ListBigModelTTSTimbresOutput) SetTimbres ¶
func (s *ListBigModelTTSTimbresOutput) SetTimbres(v []*TimbreForListBigModelTTSTimbresOutput) *ListBigModelTTSTimbresOutput
SetTimbres sets the Timbres field's value.
func (ListBigModelTTSTimbresOutput) String ¶
func (s ListBigModelTTSTimbresOutput) String() string
String returns the string representation
type NextCategoryForListBigModelTTSTimbresOutput ¶
type NextCategoryForListBigModelTTSTimbresOutput struct {
Category *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (NextCategoryForListBigModelTTSTimbresOutput) GoString ¶
func (s NextCategoryForListBigModelTTSTimbresOutput) GoString() string
GoString returns the string representation
func (*NextCategoryForListBigModelTTSTimbresOutput) SetCategory ¶
func (s *NextCategoryForListBigModelTTSTimbresOutput) SetCategory(v string) *NextCategoryForListBigModelTTSTimbresOutput
SetCategory sets the Category field's value.
func (NextCategoryForListBigModelTTSTimbresOutput) String ¶
func (s NextCategoryForListBigModelTTSTimbresOutput) String() string
String returns the string representation
type SPEECHSAASPROD ¶
SPEECHSAASPROD provides the API operation methods for making requests to SPEECH_SAAS_PROD. See this package's package overview docs for details on the service.
SPEECHSAASPROD methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*volcengine.Config) *SPEECHSAASPROD
New create int can support ssl or region locate set
func (*SPEECHSAASPROD) ListBigModelTTSTimbres ¶
func (c *SPEECHSAASPROD) ListBigModelTTSTimbres(input *ListBigModelTTSTimbresInput) (*ListBigModelTTSTimbresOutput, error)
ListBigModelTTSTimbres API operation for SPEECH_SAAS_PROD.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for SPEECH_SAAS_PROD's API operation ListBigModelTTSTimbres for usage and error information.
func (*SPEECHSAASPROD) ListBigModelTTSTimbresCommon ¶
func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommon(input *map[string]interface{}) (*map[string]interface{}, error)
ListBigModelTTSTimbresCommon API operation for SPEECH_SAAS_PROD.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for SPEECH_SAAS_PROD's API operation ListBigModelTTSTimbresCommon for usage and error information.
func (*SPEECHSAASPROD) ListBigModelTTSTimbresCommonRequest ¶
func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
ListBigModelTTSTimbresCommonRequest generates a "volcengine/request.Request" representing the client's request for the ListBigModelTTSTimbresCommon operation. The "output" return value will be populated with the ListBigModelTTSTimbresCommon request's response once the request completes successfully.
Use "Send" method on the returned ListBigModelTTSTimbresCommon Request to send the API call to the service. the "output" return value is not valid until after ListBigModelTTSTimbresCommon Send returns without error.
See ListBigModelTTSTimbresCommon for more information on using the ListBigModelTTSTimbresCommon API call, and error handling.
// Example sending a request using the ListBigModelTTSTimbresCommonRequest method.
req, resp := client.ListBigModelTTSTimbresCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*SPEECHSAASPROD) ListBigModelTTSTimbresCommonWithContext ¶
func (c *SPEECHSAASPROD) ListBigModelTTSTimbresCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
ListBigModelTTSTimbresCommonWithContext is the same as ListBigModelTTSTimbresCommon with the addition of the ability to pass a context and additional request options.
See ListBigModelTTSTimbresCommon for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*SPEECHSAASPROD) ListBigModelTTSTimbresRequest ¶
func (c *SPEECHSAASPROD) ListBigModelTTSTimbresRequest(input *ListBigModelTTSTimbresInput) (req *request.Request, output *ListBigModelTTSTimbresOutput)
ListBigModelTTSTimbresRequest generates a "volcengine/request.Request" representing the client's request for the ListBigModelTTSTimbres operation. The "output" return value will be populated with the ListBigModelTTSTimbresCommon request's response once the request completes successfully.
Use "Send" method on the returned ListBigModelTTSTimbresCommon Request to send the API call to the service. the "output" return value is not valid until after ListBigModelTTSTimbresCommon Send returns without error.
See ListBigModelTTSTimbres for more information on using the ListBigModelTTSTimbres API call, and error handling.
// Example sending a request using the ListBigModelTTSTimbresRequest method.
req, resp := client.ListBigModelTTSTimbresRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*SPEECHSAASPROD) ListBigModelTTSTimbresWithContext ¶
func (c *SPEECHSAASPROD) ListBigModelTTSTimbresWithContext(ctx volcengine.Context, input *ListBigModelTTSTimbresInput, opts ...request.Option) (*ListBigModelTTSTimbresOutput, error)
ListBigModelTTSTimbresWithContext is the same as ListBigModelTTSTimbres with the addition of the ability to pass a context and additional request options.
See ListBigModelTTSTimbres for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type SPEECHSAASPRODAPI ¶
type SPEECHSAASPRODAPI interface {
ListBigModelTTSTimbresCommon(*map[string]interface{}) (*map[string]interface{}, error)
ListBigModelTTSTimbresCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
ListBigModelTTSTimbresCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
ListBigModelTTSTimbres(*ListBigModelTTSTimbresInput) (*ListBigModelTTSTimbresOutput, error)
ListBigModelTTSTimbresWithContext(volcengine.Context, *ListBigModelTTSTimbresInput, ...request.Option) (*ListBigModelTTSTimbresOutput, error)
ListBigModelTTSTimbresRequest(*ListBigModelTTSTimbresInput) (*request.Request, *ListBigModelTTSTimbresOutput)
}
SPEECHSAASPRODAPI provides an interface to enable mocking the speechsaasprod.SPEECHSAASPROD service client's API operation,
// volcengine sdk func uses an SDK service client to make a request to
// SPEECH_SAAS_PROD.
func myFunc(svc SPEECHSAASPRODAPI) bool {
// Make svc.ListBigModelTTSTimbres request
}
func main() {
sess := session.New()
svc := speechsaasprod.New(sess)
myFunc(svc)
}
type TimbreForListBigModelTTSTimbresOutput ¶
type TimbreForListBigModelTTSTimbresOutput struct {
SpeakerID *string `type:"string" json:",omitempty"`
TimbreInfos []*TimbreInfoForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`
// contains filtered or unexported fields
}
func (TimbreForListBigModelTTSTimbresOutput) GoString ¶
func (s TimbreForListBigModelTTSTimbresOutput) GoString() string
GoString returns the string representation
func (*TimbreForListBigModelTTSTimbresOutput) SetSpeakerID ¶
func (s *TimbreForListBigModelTTSTimbresOutput) SetSpeakerID(v string) *TimbreForListBigModelTTSTimbresOutput
SetSpeakerID sets the SpeakerID field's value.
func (*TimbreForListBigModelTTSTimbresOutput) SetTimbreInfos ¶
func (s *TimbreForListBigModelTTSTimbresOutput) SetTimbreInfos(v []*TimbreInfoForListBigModelTTSTimbresOutput) *TimbreForListBigModelTTSTimbresOutput
SetTimbreInfos sets the TimbreInfos field's value.
func (TimbreForListBigModelTTSTimbresOutput) String ¶
func (s TimbreForListBigModelTTSTimbresOutput) String() string
String returns the string representation
type TimbreInfoForListBigModelTTSTimbresOutput ¶
type TimbreInfoForListBigModelTTSTimbresOutput struct {
Age *string `type:"string" json:",omitempty"`
Categories []*CategoryForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`
Emotions []*EmotionForListBigModelTTSTimbresOutput `type:"list" json:",omitempty"`
Gender *string `type:"string" json:",omitempty"`
SpeakerName *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (TimbreInfoForListBigModelTTSTimbresOutput) GoString ¶
func (s TimbreInfoForListBigModelTTSTimbresOutput) GoString() string
GoString returns the string representation
func (*TimbreInfoForListBigModelTTSTimbresOutput) SetAge ¶
func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetAge(v string) *TimbreInfoForListBigModelTTSTimbresOutput
SetAge sets the Age field's value.
func (*TimbreInfoForListBigModelTTSTimbresOutput) SetCategories ¶
func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetCategories(v []*CategoryForListBigModelTTSTimbresOutput) *TimbreInfoForListBigModelTTSTimbresOutput
SetCategories sets the Categories field's value.
func (*TimbreInfoForListBigModelTTSTimbresOutput) SetEmotions ¶
func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetEmotions(v []*EmotionForListBigModelTTSTimbresOutput) *TimbreInfoForListBigModelTTSTimbresOutput
SetEmotions sets the Emotions field's value.
func (*TimbreInfoForListBigModelTTSTimbresOutput) SetGender ¶
func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetGender(v string) *TimbreInfoForListBigModelTTSTimbresOutput
SetGender sets the Gender field's value.
func (*TimbreInfoForListBigModelTTSTimbresOutput) SetSpeakerName ¶
func (s *TimbreInfoForListBigModelTTSTimbresOutput) SetSpeakerName(v string) *TimbreInfoForListBigModelTTSTimbresOutput
SetSpeakerName sets the SpeakerName field's value.
func (TimbreInfoForListBigModelTTSTimbresOutput) String ¶
func (s TimbreInfoForListBigModelTTSTimbresOutput) String() string
String returns the string representation