Skip to content

Commit 15b481a

Browse files
Deep-unlearningDeep-UnlearningWauplin
authored
Add OuteTTS snippet (#1362)
cc @Vaibhavs10 --------- Co-authored-by: Deep-Unlearning <[email protected]> Co-authored-by: Lucain <[email protected]>
1 parent 1e994d4 commit 15b481a

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
@@ -1320,6 +1320,29 @@ export const nemo = (model: ModelData): string[] => {
13201320
return command ?? [`# tag did not correspond to a valid NeMo domain.`];
13211321
};
13221322

1323+
export const outetts = (model: ModelData): string[] => {
1324+
// Don’t show this block on GGUF / ONNX mirrors
1325+
const t = model.tags ?? [];
1326+
if (t.includes("gguf") || t.includes("onnx")) return [];
1327+
1328+
// v1.0 HF → minimal runnable snippet
1329+
return [`
1330+
import outetts
1331+
1332+
enum = outetts.Models("${model.id}".split("/", 1)[1]) # VERSION_1_0_SIZE_1B
1333+
cfg = outetts.ModelConfig.auto_config(enum, outetts.Backend.HF)
1334+
tts = outetts.Interface(cfg)
1335+
1336+
speaker = tts.load_default_speaker("EN-FEMALE-1-NEUTRAL")
1337+
tts.generate(
1338+
outetts.GenerationConfig(
1339+
text="Hello there, how are you doing?",
1340+
speaker=speaker,
1341+
)
1342+
).save("output.wav")
1343+
`];
1344+
};
1345+
13231346
export const pxia = (model: ModelData): string[] => [
13241347
`from pxia import AutoModel
13251348

packages/tasks/src/model-libraries.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
623623
filter: false,
624624
countDownloads: `path:"Open_Sora_v2.safetensors"`,
625625
},
626+
outetts: {
627+
prettyLabel: "OuteTTS",
628+
repoName: "OuteTTS",
629+
repoUrl: "https://github.com/edwko/OuteTTS",
630+
snippets: snippets.outetts,
631+
filter: false,
632+
},
626633
paddlenlp: {
627634
prettyLabel: "paddlenlp",
628635
repoName: "PaddleNLP",

0 commit comments

Comments
 (0)