You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/features/text-to-audio.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,20 @@ Note:
52
52
- The model name is case sensitive.
53
53
- LocalAI must be compiled with the `GO_TAGS=tts` flag.
54
54
55
+
LocalAI also has experimental support for `transformers-musicgen` for the generation of short musical compositions. Currently, this is implemented via the same requests used for text to speech:
56
+
57
+
```
58
+
curl --request POST \
59
+
--url http://localhost:8080/tts \
60
+
--header 'Content-Type: application/json' \
61
+
--data '{
62
+
"backend": "transformers-musicgen",
63
+
"model": "facebook/musicgen-medium",
64
+
"input": "Cello Rave"
65
+
}' | aplay```
66
+
67
+
Future versions of LocalAI will expose additional control over audio generation beyond the text prompt.
68
+
55
69
#### Configuration
56
70
57
71
Audio models can be configured via `YAML` files. This allows to configure specific setting for each backend. For instance, backends might be specifying a voice or supports voice cloning which must be specified in the configuration file.
0 commit comments