mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-26 15:51:05 +00:00
81ae92f017
* initial version of elevenlabs compatible soundgeneration api and cli command Signed-off-by: Dave Lee <dave@gray101.com> * minor cleanup Signed-off-by: Dave Lee <dave@gray101.com> * restore TTS, add test Signed-off-by: Dave Lee <dave@gray101.com> * remove stray s Signed-off-by: Dave Lee <dave@gray101.com> * fix Signed-off-by: Dave Lee <dave@gray101.com> --------- Signed-off-by: Dave Lee <dave@gray101.com> Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com> Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
15 lines
575 B
Go
15 lines
575 B
Go
package schema
|
|
|
|
type ElevenLabsTTSRequest struct {
|
|
Text string `json:"text" yaml:"text"`
|
|
ModelID string `json:"model_id" yaml:"model_id"`
|
|
}
|
|
|
|
type ElevenLabsSoundGenerationRequest struct {
|
|
Text string `json:"text" yaml:"text"`
|
|
ModelID string `json:"model_id" yaml:"model_id"`
|
|
Duration *float32 `json:"duration_seconds,omitempty" yaml:"duration_seconds,omitempty"`
|
|
Temperature *float32 `json:"prompt_influence,omitempty" yaml:"prompt_influence,omitempty"`
|
|
DoSample *bool `json:"do_sample,omitempty" yaml:"do_sample,omitempty"`
|
|
}
|