Skip to content

Commit 6b795db

Browse files
Deep-unlearningDeep-UnlearningWauplin
committed
Add OuteTTS snippet (#1362)
cc @Vaibhavs10 --------- Co-authored-by: Deep-Unlearning <[email protected]> Co-authored-by: Lucain <[email protected]>
1 parent 660dc4f commit 6b795db

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,29 @@ export const nemo = (model: ModelData): string[] => {
13511351
return command ?? [`# tag did not correspond to a valid NeMo domain.`];
13521352
};
13531353

1354+
export const outetts = (model: ModelData): string[] => {
1355+
// Don’t show this block on GGUF / ONNX mirrors
1356+
const t = model.tags ?? [];
1357+
if (t.includes("gguf") || t.includes("onnx")) return [];
1358+
1359+
// v1.0 HF → minimal runnable snippet
1360+
return [`
1361+
import outetts
1362+
1363+
enum = outetts.Models("${model.id}".split("/", 1)[1]) # VERSION_1_0_SIZE_1B
1364+
cfg = outetts.ModelConfig.auto_config(enum, outetts.Backend.HF)
1365+
tts = outetts.Interface(cfg)
1366+
1367+
speaker = tts.load_default_speaker("EN-FEMALE-1-NEUTRAL")
1368+
tts.generate(
1369+
outetts.GenerationConfig(
1370+
text="Hello there, how are you doing?",
1371+
speaker=speaker,
1372+
)
1373+
).save("output.wav")
1374+
`];
1375+
};
1376+
13541377
export const pxia = (model: ModelData): string[] => [
13551378
`from pxia import AutoModel
13561379

packages/tasks/src/model-libraries.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
630630
filter: false,
631631
countDownloads: `path:"Open_Sora_v2.safetensors"`,
632632
},
633+
outetts: {
634+
prettyLabel: "OuteTTS",
635+
repoName: "OuteTTS",
636+
repoUrl: "https://github.com/edwko/OuteTTS",
637+
snippets: snippets.outetts,
638+
filter: false,
639+
},
633640
paddlenlp: {
634641
prettyLabel: "paddlenlp",
635642
repoName: "PaddleNLP",

0 commit comments

Comments
 (0)