Files
elevenlabs/client/voices.go
2023-04-18 15:46:16 -07:00

49 lines
1.9 KiB
Go

package client
import (
"context"
"net/http"
"os"
"strings"
)
func (c Client) CreateVoice(ctx context.Context, name string, files []*os.File, description string, labels string) (AddVoiceResponseModel, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Post")
localVarPath := a.client.cfg.BasePath + "/v1/voices/add"
}
func (c Client) DeleteVoice(ctx context.Context, voiceId string) (Object, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Delete")
localVarPath := a.client.cfg.BasePath + "/v1/voices/{voice_id}"
}
func (c Client) EditVoiceSettings(ctx context.Context, body Settings, voiceId string) (Object, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Post")
localVarPath := a.client.cfg.BasePath + "/v1/voices/{voice_id}/settings/edit"
}
func (c Client) EditVoice(ctx context.Context, name string, files []*os.File, description string, labels string, voiceId string) (Object, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Post")
localVarPath := a.client.cfg.BasePath + "/v1/voices/{voice_id}/edit"
}
func (c Client) DefaultVoiceSettings(ctx context.Context) (VoiceSettingsResponseModel, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Get")
localVarPath := a.client.cfg.BasePath + "/v1/voices/settings/default"
}
func (c Client) GetVoiceSettings(ctx context.Context, voiceId string) (VoiceSettingsResponseModel, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Get")
localVarPath := a.client.cfg.BasePath + "/v1/voices/{voice_id}/settings"
}
func (c Client) GetVoice(ctx context.Context, voiceId string) (VoiceResponseModel, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Get")
localVarPath := a.client.cfg.BasePath + "/v1/voices/{voice_id}"
}
func (c Client) GetVoices(ctx context.Context) (GetVoicesResponseModel, *http.Response, error) {
localVarHttpMethod = strings.ToUpper("Get")
localVarPath := a.client.cfg.BasePath + "/v1/voices"
}