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 @@ -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+
13231346export const pxia = ( model : ModelData ) : string [ ] => [
13241347 `from pxia import AutoModel
13251348
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments