Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ files = {}
|
|
35 |
logging.basicConfig(level=logging.DEBUG)
|
36 |
# Mock data for your interface
|
37 |
data = {
|
38 |
-
"speaker_options": ["en", "es", "de", "pl"],
|
39 |
"default_speaker": "en",
|
40 |
}
|
41 |
@app.get("/", response_class=HTMLResponse)
|
@@ -191,6 +191,7 @@ async def main(
|
|
191 |
# Create a URL to download the file
|
192 |
file_url = f'/download?fileId={file_id}'
|
193 |
# os.rename(temp_audio_file, renamed_audio_file)
|
|
|
194 |
# Specify the path to your MP3 audio file
|
195 |
# audio_file_path = "path/to/your/audio.mp3"
|
196 |
|
|
|
35 |
logging.basicConfig(level=logging.DEBUG)
|
36 |
# Mock data for your interface
|
37 |
data = {
|
38 |
+
"speaker_options": ["en","en-us","en-029","en-gb-x-gbclan","en-gb-x-rp","en-gb-scotland","en-gb-gbcwmd", "es", "de", "pl","ar","be","bn","bpy","bs","bg","ca","yue","hak","haw","cmn","hr","cs","da","nl","eo","et","fa","fa-latn","fi","fr-be","fr","ga","gd","ka","grc,"el","kl","gn","gu","ht","he","hi,"hu","id","io","it","ja","kn","kok","ko","ku","kk","ky","la","lb","ltg","lv","lfn","lt","jbo","mi","mk","ms","ml","mt","mr","nci","ne","nb","nog","or","om","pap","pt-br","pt","ro","ru","ru-lv","uk","sjn","sr","tn","sd","shn","si","sk","sl","es","es-419","sw","sv","ta","th","tk","tt","te","tr","ug","ur","uz","vi-vn-x-central","vi","vi0vn-x-south"],
|
39 |
"default_speaker": "en",
|
40 |
}
|
41 |
@app.get("/", response_class=HTMLResponse)
|
|
|
191 |
# Create a URL to download the file
|
192 |
file_url = f'/download?fileId={file_id}'
|
193 |
# os.rename(temp_audio_file, renamed_audio_file)
|
194 |
+
|
195 |
# Specify the path to your MP3 audio file
|
196 |
# audio_file_path = "path/to/your/audio.mp3"
|
197 |
|