| 7 | } |
| 8 | |
| 9 | type ElevenLabsSoundGenerationRequest struct { |
| 10 | Text string `json:"text" yaml:"text"` |
| 11 | ModelID string `json:"model_id" yaml:"model_id"` |
| 12 | Duration *float32 `json:"duration_seconds,omitempty" yaml:"duration_seconds,omitempty"` |
| 13 | Temperature *float32 `json:"prompt_influence,omitempty" yaml:"prompt_influence,omitempty"` |
| 14 | DoSample *bool `json:"do_sample,omitempty" yaml:"do_sample,omitempty"` |
| 15 | // Advanced mode |
| 16 | Think *bool `json:"think,omitempty" yaml:"think,omitempty"` |
| 17 | Caption string `json:"caption,omitempty" yaml:"caption,omitempty"` |
| 18 | Lyrics string `json:"lyrics,omitempty" yaml:"lyrics,omitempty"` |
| 19 | BPM *int `json:"bpm,omitempty" yaml:"bpm,omitempty"` |
| 20 | Keyscale string `json:"keyscale,omitempty" yaml:"keyscale,omitempty"` |
| 21 | Language string `json:"language,omitempty" yaml:"language,omitempty"` |
| 22 | VocalLanguage string `json:"vocal_language,omitempty" yaml:"vocal_language,omitempty"` |
| 23 | Timesignature string `json:"timesignature,omitempty" yaml:"timesignature,omitempty"` |
| 24 | // Simple mode: use text as description; optional instrumental / vocal_language |
| 25 | Instrumental *bool `json:"instrumental,omitempty" yaml:"instrumental,omitempty"` |
| 26 | } |
| 27 | |
| 28 | func (elttsr *ElevenLabsTTSRequest) ModelName(s *string) string { |
| 29 | if s != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected