speech

package
v0.0.0-...-388b756 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(apiKey string, voice Voice, model Model) *speech

Types

type Data

type Data struct {
	ModelId       Model         `json:"model_id"`
	Text          string        `json:"text"`
	VoiceSettings VoiceSettings `json:"voice_settings"`
}

type Model

type Model string
const (
	ENGLISH_V1 Model = "eleven_monolingual_v1"
)

type Voice

type Voice string
const (
	ADAM Voice = "pNInz6obpgDQGcFmaJgB"
)

type VoiceSettings

type VoiceSettings struct {
	SimilarityBoost float32 `json:"similarity_boost"`
	Stability       float32 `json:"stability"`
	Style           int     `json:"style"`
	SpeakerBoost    bool    `json:"use_speaker_boost"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL