Update webui.py
Browse files
webui.py
CHANGED
@@ -55,12 +55,12 @@ def download_voices_with_dynamic_counting(output_folder='genshin_voices_sample_5
|
|
55 |
with io.BytesIO(audio_data['bytes']) as audio_bytes:
|
56 |
data, samplerate = sf.read(audio_bytes)
|
57 |
sf.write(audio_path, data, samplerate)
|
58 |
-
|
59 |
-
elif 'path' in audio_data and os.path.exists(audio_data['path']):
|
60 |
# ๅฆๆๆไพpathไธๆไปถๅญๅจ๏ผ็ดๆฅๅคๅถ
|
61 |
-
data, samplerate = sf.read(audio_data['path'])
|
62 |
-
sf.write(audio_path, data, samplerate)
|
63 |
-
|
64 |
else:
|
65 |
print(f"่ญฆๅ: {speaker}็้ณ้ขๆฐๆฎๆ ผๅผไธๆฏๆ๏ผ่ทณ่ฟ")
|
66 |
speaker_counts[speaker] -= 1 # ๅๆป่ฎกๆฐ
|
|
|
55 |
with io.BytesIO(audio_data['bytes']) as audio_bytes:
|
56 |
data, samplerate = sf.read(audio_bytes)
|
57 |
sf.write(audio_path, data, samplerate)
|
58 |
+
|
59 |
+
#elif 'path' in audio_data and os.path.exists(audio_data['path']):
|
60 |
# ๅฆๆๆไพpathไธๆไปถๅญๅจ๏ผ็ดๆฅๅคๅถ
|
61 |
+
#data, samplerate = sf.read(audio_data['path'])
|
62 |
+
#sf.write(audio_path, data, samplerate)
|
63 |
+
|
64 |
else:
|
65 |
print(f"่ญฆๅ: {speaker}็้ณ้ขๆฐๆฎๆ ผๅผไธๆฏๆ๏ผ่ทณ่ฟ")
|
66 |
speaker_counts[speaker] -= 1 # ๅๆป่ฎกๆฐ
|