Update app.py
Browse files
app.py
CHANGED
|
@@ -14,17 +14,17 @@ help_en = f"""
|
|
| 14 |
### Usage Instructions:
|
| 15 |
1. **Select a Label**: Choose a label from the dropdown menu, or select "Custom" to enter your own label.
|
| 16 |
2. **Enter User Name**: Input your user name, which will be used to generate a unique ID for your recordings.
|
| 17 |
-
3. **Record Audio**: Click the "Record Audio" button to start recording. The maximum length for each recording is {MAX_LENGTH}
|
| 18 |
-
4. **Submit Recording**: After recording, click the "Submit" button to save the
|
| 19 |
5. **Download Recordings**: Use the provided download links to retrieve all recorded files.
|
| 20 |
"""
|
| 21 |
help_zh_tw = f"""
|
| 22 |
### 使用流程:
|
| 23 |
-
1. **選擇標記**:
|
| 24 |
2. **輸入用戶名稱**: 輸入您的用戶名稱,用於生成錄音唯一ID。
|
| 25 |
-
3.
|
| 26 |
-
4. **提交錄音**:
|
| 27 |
-
5. **下載錄音**:
|
| 28 |
"""
|
| 29 |
|
| 30 |
# Function to save audio with label and speaker name
|
|
|
|
| 14 |
### Usage Instructions:
|
| 15 |
1. **Select a Label**: Choose a label from the dropdown menu, or select "Custom" to enter your own label.
|
| 16 |
2. **Enter User Name**: Input your user name, which will be used to generate a unique ID for your recordings.
|
| 17 |
+
3. **Record or Upload Audio**: Click the "Record Audio" button to start recording or upload an existing audio file. The maximum length for each recording or uploaded file is {MAX_LENGTH} seconds.
|
| 18 |
+
4. **Submit Recording**: After recording or uploading, click the "Submit" button to save the audio.
|
| 19 |
5. **Download Recordings**: Use the provided download links to retrieve all recorded files.
|
| 20 |
"""
|
| 21 |
help_zh_tw = f"""
|
| 22 |
### 使用流程:
|
| 23 |
+
1. **選擇標記**: 從下拉選單中選擇一個標記,或選擇“自定義”以輸入自己的標記。
|
| 24 |
2. **輸入用戶名稱**: 輸入您的用戶名稱,用於生成錄音唯一ID。
|
| 25 |
+
3. **錄製或上傳音頻**: 點擊“錄製音頻”按鈕開始錄音,或上傳現有的音頻文件。每次錄音或上傳文件的最長時間為{MAX_LENGTH}秒。
|
| 26 |
+
4. **提交錄音**: 錄製或上傳完成後,點擊“提交”按鈕保存音頻。
|
| 27 |
+
5. **下載錄音**: 使用提供的下載鏈接下載所有已錄製或上傳的文件。
|
| 28 |
"""
|
| 29 |
|
| 30 |
# Function to save audio with label and speaker name
|