Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIKey string
Model string
Encoding string
SampleRate int
ClientFactory func(ctx context.Context,
APIKey string,
cOptions *clientinterfaces.ClientOptions,
sOptions *clientinterfaces.WSSpeakOptions,
cb interfacesv1.SpeakMessageCallback,
) (Client, error)
TranscoderFactory text_to_speech.CreateTranscoderFn
}
Config содержит конфигурацию для TextToSpeech
func DefaultConfig ¶
type TextToSpeech ¶
type TextToSpeech struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
func NewWithConfig(config Config, log *zap.Logger) *TextToSpeech
func (*TextToSpeech) Config ¶
func (t *TextToSpeech) Config() Config
func (*TextToSpeech) Synthesize ¶
func (t *TextToSpeech) Synthesize(ctx context.Context, text <-chan pkg.TextChunk) (<-chan pkg.AudioChunk, error)
Click to show internal directories.
Click to hide internal directories.