Files
elevenlabs/client/tts.go
2023-04-18 12:40:12 -07:00

26 lines
926 B
Go

package client
import (
"context"
"io"
"strings"
"github.com/taigrr/elevenlabs/client/types"
)
func (c Client) TextToSpeechV1TextToSpeechVoiceIdPostWriter(ctx context.Context, w io.Writer, voiceID string, options types.SynthesisOptions) ([]byte, error) {
localVarHttpMethod = strings.ToUpper("Post")
localVarPath := a.client.cfg.BasePath + "/v1/text-to-speech/{voice_id}"
}
func (c Client) TextToSpeechV1TextToSpeechVoiceIdPost(ctx context.Context, voiceID string, options types.SynthesisOptions) ([]byte, error) {
localVarHttpMethod = strings.ToUpper("Post")
localVarPath := a.client.cfg.BasePath + "/v1/text-to-speech/{voice_id}"
}
func (c Client) TextToSpeechV1TextToSpeechVoiceIdStreamPost(ctx context.Context, w io.Writer, voiceId string, options types.SynthesisOptions) error {
localVarHttpMethod = strings.ToUpper("Post")
localVarPath := a.client.cfg.BasePath + "/v1/text-to-speech/{voice_id}/stream"
}