mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-02 03:08:57 -07:00
start tts rewrite
This commit is contained in:
25
client/tts.go
Normal file
25
client/tts.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user