FroxAI commited on
Commit
5c96cc1
Β·
verified Β·
1 Parent(s): 1468fc1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +63 -24
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  title: FroxAI Flex-Audio
3
  emoji: 🦊
4
  colorFrom: purple
@@ -7,24 +8,42 @@ sdk: gradio
7
  sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: false
 
10
  license: other
11
- ---
 
 
 
 
 
 
 
 
12
 
13
- # FroxAI β€” Flex-Audio
 
 
 
 
14
 
15
- Fine-tuned [XTTS-v2](https://huggingface.co/coqui/XTTS-v2) text-to-speech model with voice cloning, built by FroxAI.
16
 
17
- ## What's included
18
 
19
- - `model.pth` β€” fine-tuned weights
20
- - `config.json`, `vocab.json` β€” base model files required to reload (unchanged by fine-tuning)
21
- - `voice_refs/` β€” reference voice clips for cloning
22
- - `app.py` β€” Gradio demo (this Space)
23
- - `src/inference.py` β€” reusable inference code
24
 
25
- ## Repo structure
 
 
 
 
 
 
 
 
 
 
26
 
27
- ```
28
  .
29
  β”œβ”€β”€ app.py
30
  β”œβ”€β”€ config.json
@@ -37,30 +56,34 @@ Fine-tuned [XTTS-v2](https://huggingface.co/coqui/XTTS-v2) text-to-speech model
37
  β”œβ”€β”€ slt.wav
38
  β”œβ”€β”€ bdl.wav
39
  └── ...
40
- ```
41
 
42
- ## Usage (outside this Space)
 
 
43
 
44
- ```python
45
  from src.inference import generate
46
 
47
  path = generate(
48
  text="Hello, this is Flex-Audio speaking.",
49
  language="en",
50
- voice="slt", # any filename (without .wav) in voice_refs/
51
  )
52
- ```
53
 
54
- Or load the model directly:
55
 
56
- ```python
57
  from TTS.tts.configs.xtts_config import XttsConfig
58
  from TTS.tts.models.xtts import Xtts
59
 
60
  config = XttsConfig()
61
  config.load_json("config.json")
 
62
  model = Xtts.init_from_config(config)
63
- model.load_checkpoint(config, checkpoint_dir=".", eval=True)
 
 
 
 
 
64
  model.cuda()
65
 
66
  outputs = model.synthesize(
@@ -69,12 +92,28 @@ outputs = model.synthesize(
69
  speaker_wav="voice_refs/slt.wav",
70
  language="en",
71
  )
72
- ```
73
 
74
- ## Languages
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
- 17 languages with real voice cloning (inherited from XTTS-v2): `en, es, fr, de, it, pt, pl, tr, ru, nl, cs, ar, zh-cn, ja, hu, ko, hi`.
77
 
78
- ## Voices
79
 
80
- See `voice_refs/` for the full list of cloneable reference voices included in this repo.
 
1
  ---
2
+
3
  title: FroxAI Flex-Audio
4
  emoji: 🦊
5
  colorFrom: purple
 
8
  sdk_version: 5.9.1
9
  app_file: app.py
10
  pinned: false
11
+ pipeline_tag: text-to-speech
12
  license: other
13
+ license_name: proprietary
14
+
15
+ 🦊 FroxAI β€” Flex-Audio
16
+
17
+ Fine-tuned "XTTS-v2" (https://huggingface.co/coqui/XTTS-v2) text-to-speech model with real voice cloning, built by FroxAI.
18
+
19
+ πŸŽ™οΈ Demo
20
+
21
+ The repository includes a Gradio application in "app.py" with:
22
 
23
+ - Text input
24
+ - Language selection
25
+ - Voice selection
26
+ - Generated WAV output
27
+ - Clickable demo examples
28
 
29
+ Run the demo
30
 
31
+ python app.py
32
 
33
+ Β«Hugging Face: A model repository does not automatically execute "app.py" on its main page. The interactive model-page widget is available only when the model/task is supported by an Inference Provider. For this custom Gradio interface, deploy "app.py" as a Hugging Face Space to let visitors test it directly in a browser.Β»
 
 
 
 
34
 
35
+ What's included
36
+
37
+ - "model.pth" β€” fine-tuned model weights
38
+ - "config.json" β€” base XTTS-v2 configuration required to reload the model
39
+ - "vocab.json" β€” base model vocabulary required to reload the model
40
+ - "voice_refs/" β€” reference voice clips for voice cloning
41
+ - "app.py" β€” Gradio demo application
42
+ - "src/inference.py" β€” reusable inference code
43
+ - "requirements.txt" β€” Python dependencies
44
+
45
+ πŸ“ Repository structure
46
 
 
47
  .
48
  β”œβ”€β”€ app.py
49
  β”œβ”€β”€ config.json
 
56
  β”œβ”€β”€ slt.wav
57
  β”œβ”€β”€ bdl.wav
58
  └── ...
 
59
 
60
+ 🐍 Usage outside this Space
61
+
62
+ The reusable inference interface can be used directly from Python:
63
 
 
64
  from src.inference import generate
65
 
66
  path = generate(
67
  text="Hello, this is Flex-Audio speaking.",
68
  language="en",
69
+ voice="slt", # filename without .wav from voice_refs/
70
  )
 
71
 
72
+ Load the model directly
73
 
 
74
  from TTS.tts.configs.xtts_config import XttsConfig
75
  from TTS.tts.models.xtts import Xtts
76
 
77
  config = XttsConfig()
78
  config.load_json("config.json")
79
+
80
  model = Xtts.init_from_config(config)
81
+ model.load_checkpoint(
82
+ config,
83
+ checkpoint_dir=".",
84
+ eval=True,
85
+ )
86
+
87
  model.cuda()
88
 
89
  outputs = model.synthesize(
 
92
  speaker_wav="voice_refs/slt.wav",
93
  language="en",
94
  )
 
95
 
96
+ 🌍 Languages
97
+
98
+ Flex-Audio supports 17 languages with real voice cloning, inherited from XTTS-v2:
99
+
100
+ en, es, fr, de, it, pt, pl, tr, ru, nl, cs,
101
+ ar, zh-cn, ja, hu, ko, hi
102
+
103
+ 🎀 Voices
104
+
105
+ The "voice_refs/" directory contains the reference voice clips available for cloning.
106
+
107
+ To use a voice, provide its filename without the ".wav" extension:
108
+
109
+ voice="slt"
110
+
111
+ For the complete list of available voices, see the files inside "voice_refs/".
112
+
113
+ πŸ“œ License
114
 
115
+ Proprietary / All Rights Reserved.
116
 
117
+ No permission is granted to use, copy, modify, distribute, sublicense, sell, or deploy the model or its files except as expressly permitted by the copyright holder.
118
 
119
+ The model also inherits the applicable terms of its base model. Check the "XTTS-v2 license" (https://huggingface.co/coqui/XTTS-v2) before using or redistributing this model.