Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client) CreateVoice(ctx context.Context, name, description string, labels []string, ...) error
- func (c Client) DeleteVoice(ctx context.Context, voiceID string) error
- func (c Client) DeleteVoiceSample(ctx context.Context, voiceID, sampleID string) (bool, error)
- func (c Client) DownloadVoiceSample(ctx context.Context, voiceID, sampleID string) ([]byte, error)
- func (c Client) DownloadVoiceSampleWriter(ctx context.Context, w io.Writer, voiceID, sampleID string) error
- func (c Client) EditVoice(ctx context.Context, voiceID, name, description string, labels []string, ...) error
- func (c Client) EditVoiceSettings(ctx context.Context, voiceID string, settings types.SynthesisOptions) error
- func (c Client) GetHistoryIDs(ctx context.Context, voiceIDs ...string) ([]string, error)
- func (c Client) GetHistoryItemList(ctx context.Context) ([]types.HistoryItemList, error)
- func (c Client) GetSubscriptionInfo(ctx context.Context) (types.Subscription, error)
- func (c Client) GetUserInfo(ctx context.Context) (types.UserResponseModel, error)
- func (c Client) GetVoice(ctx context.Context, voiceID string) (types.VoiceResponseModel, error)
- func (c Client) GetVoiceIDs(ctx context.Context) ([]string, error)
- func (c Client) GetVoiceSettings(ctx context.Context, voiceID string) (types.SynthesisOptions, error)
- func (c Client) GetVoices(ctx context.Context) ([]types.VoiceResponseModel, error)
- func (c Client) HistoryDelete(ctx context.Context, historyItemID string) (bool, error)
- func (c Client) HistoryDownloadAudio(ctx context.Context, ID string) ([]byte, error)
- func (c Client) HistoryDownloadAudioWriter(ctx context.Context, w io.Writer, ID string) error
- func (c Client) HistoryDownloadZip(ctx context.Context, id1, id2 string, additionalIDs ...string) ([]byte, error)
- func (c Client) HistoryDownloadZipWriter(ctx context.Context, w io.Writer, id1, id2 string, additionalIDs ...string) error
- func (c Client) TTS(ctx context.Context, modelID, text, voiceID string, ...) ([]byte, error)
- func (c Client) TTSStream(ctx context.Context, w io.Writer, text, voiceID string, ...) error
- func (c Client) TTSWriter(ctx context.Context, w io.Writer, modelID, text, voiceID string, ...) error
- func (c Client) WithEndpoint(endpoint string) Client
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnspecified = errors.New("unspecified error") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CreateVoice ¶
func (Client) DeleteVoiceSample ¶
func (Client) DownloadVoiceSample ¶
func (Client) DownloadVoiceSampleWriter ¶
func (Client) EditVoiceSettings ¶
func (Client) GetHistoryIDs ¶
func (Client) GetHistoryItemList ¶
func (Client) GetSubscriptionInfo ¶
func (Client) GetUserInfo ¶
func (Client) GetVoiceSettings ¶
func (Client) HistoryDelete ¶
func (Client) HistoryDownloadAudio ¶
func (Client) HistoryDownloadAudioWriter ¶
func (Client) HistoryDownloadZip ¶
func (Client) HistoryDownloadZipWriter ¶
func (Client) WithEndpoint ¶
Click to show internal directories.
Click to hide internal directories.