start tts rewrite

This commit is contained in:
2023-04-18 12:40:12 -07:00
parent 064d7237ee
commit c2cf2d3db1
2 changed files with 25 additions and 209 deletions

25
client/tts.go Normal file
View File

@@ -0,0 +1,25 @@
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"
}