ybendou commited on
Commit
b1f991d
·
verified ·
1 Parent(s): 5536e5a

Adding documentation

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -144,7 +144,24 @@ def push_to_hub(hub_id, is_new_dataset, sampling_rate):
144
  gr.Warning("The hub_id field is empty, please provide a relevant hub id.")
145
  return update_display()
146
  with gr.Blocks() as demo:
147
- gr.Markdown("# 🗣️ TTS Dataset Recorder")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
  with gr.Row():
150
  json_file = gr.File(label="Upload Sentences JSON", file_types=[".json"])
 
144
  gr.Warning("The hub_id field is empty, please provide a relevant hub id.")
145
  return update_display()
146
  with gr.Blocks() as demo:
147
+ gr.Markdown("""# 🗣️ TTS Dataset Recorder
148
+
149
+ Welcome to the **TTS Dataset Recorder**! This tool helps you quickly create a high-quality dataset for Text-to-Speech (TTS) models. Whether you're starting from scratch or have a pre-existing set of text data, this app lets you record audio samples and export them with the corresponding metadata.
150
+
151
+ ### **How to Use?**
152
+ 1. **Upload a JSON File** containing the sentences you'd like to record (or manually input them through the app).
153
+ 2. **Record Audio** for each sentence. The app will automatically associate your recordings with the correct text.
154
+ 3. **Export the Dataset** as a JSON file or **Sync** to HuggingFace for easy sharing and use.
155
+
156
+ ### **Data Input Format**
157
+ Your JSON file should follow this structure:
158
+ ```json
159
+ [
160
+ { "id": "001", "text": "Hello, how are you?" },
161
+ { "id": "002", "text": "This is a sample sentence." }
162
+ ]
163
+
164
+ """)
165
 
166
  with gr.Row():
167
  json_file = gr.File(label="Upload Sentences JSON", file_types=[".json"])