File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1351,6 +1351,29 @@ export const nemo = (model: ModelData): string[] => {
1351
1351
return command ?? [ `# tag did not correspond to a valid NeMo domain.` ] ;
1352
1352
} ;
1353
1353
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
+
1354
1377
export const pxia = ( model : ModelData ) : string [ ] => [
1355
1378
`from pxia import AutoModel
1356
1379
Original file line number Diff line number Diff line change @@ -630,6 +630,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
630
630
filter : false ,
631
631
countDownloads : `path:"Open_Sora_v2.safetensors"` ,
632
632
} ,
633
+ outetts : {
634
+ prettyLabel : "OuteTTS" ,
635
+ repoName : "OuteTTS" ,
636
+ repoUrl : "https://github.com/edwko/OuteTTS" ,
637
+ snippets : snippets . outetts ,
638
+ filter : false ,
639
+ } ,
633
640
paddlenlp : {
634
641
prettyLabel : "paddlenlp" ,
635
642
repoName : "PaddleNLP" ,
You can’t perform that action at this time.
0 commit comments