Skip to content

Commit 3ba017b

Browse files
authored
Merge pull request #1231 from semnil/feat/asio-driver-support
Add ASIO driver support with multiprocessing voice changer
2 parents 8596426 + c353151 commit 3ba017b

70 files changed

Lines changed: 1005 additions & 505 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@
2323
now_dir = os.getcwd()
2424
sys.path.append(now_dir)
2525

26+
# Suppress ConnectionResetError on Windows when a remote peer forcibly closes the
27+
# connection during asyncio shutdown (WinError 10054 / ProactorBasePipeTransport).
28+
if sys.platform == "win32":
29+
import asyncio.proactor_events as _pe
30+
31+
_orig_ccl = _pe._ProactorBasePipeTransport._call_connection_lost
32+
33+
def _ccl_patched(self, exc):
34+
try:
35+
_orig_ccl(self, exc)
36+
except ConnectionResetError:
37+
pass
38+
39+
_pe._ProactorBasePipeTransport._call_connection_lost = _ccl_patched
40+
2641
# Zluda hijack
2742
import rvc.lib.zluda
2843

assets/i18n/languages/af_AF.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
"Drag your plugin.zip to install it": "Sleep jou plugin.zip om dit te installeer",
101101
"Duration of the fade between audio chunks to prevent clicks. Higher values create smoother transitions but may increase latency.": "Duur van die oorgang tussen klankstukke om klikgeluide te voorkom. Hoër waardes skep gladder oorgange, maar kan latensie verhoog.",
102102
"Embedder Model": "Inbedder Model",
103+
"Enable ASIO": "Aktiveer ASIO",
104+
"Enable ASIO driver support. (Requires restarting Applio)": "Aktiveer ASIO-bestuurder ondersteuning. (Vereis herbegin van Applio)",
103105
"Enable Applio integration with Discord presence": "Aktiveer Applio-integrasie met Discord-teenwoordigheid",
104106
"Enable VAD": "Aktiveer VAD",
105107
"Enable formant shifting. Used for male to female and vice-versa convertions.": "Aktiveer formantverskuiwing. Word gebruik vir manlike na vroulike en omgekeerde omskakelings.",
@@ -134,9 +136,6 @@
134136
"File to Speech": "Lêer na Spraak",
135137
"Filter": "Filter",
136138
"Folder Name": "Lêergids Naam",
137-
"For ASIO drivers, selects a specific input channel. Leave at -1 for default.": "Vir ASIO-drywers, kies 'n spesifieke invoerkanaal. Laat op -1 vir verstek.",
138-
"For ASIO drivers, selects a specific monitor output channel. Leave at -1 for default.": "Vir ASIO-drywers, kies 'n spesifieke monitor-uitvoerkanaal. Laat op -1 vir verstek.",
139-
"For ASIO drivers, selects a specific output channel. Leave at -1 for default.": "Vir ASIO-drywers, kies 'n spesifieke uitvoerkanaal. Laat op -1 vir verstek.",
140139
"For WASAPI (Windows), gives the app exclusive control for potentially lower latency.": "Vir WASAPI (Windows), gee die toepassing eksklusiewe beheer vir potensieel laer latensie.",
141140
"Formant Shifting": "Formantverskuiwing",
142141
"Fresh Training": "Vars Opleiding",
@@ -254,6 +253,7 @@
254253
"Reverb Wet Gain": "Galm Nat Versterking",
255254
"Reverb Width": "Galm Breedte",
256255
"Safeguard distinct consonants and breathing sounds to prevent electro-acoustic tearing and other artifacts. Pulling the parameter to its maximum value of 0.5 offers comprehensive protection. However, reducing this value might decrease the extent of protection while potentially mitigating the indexing effect.": "Beskerm duidelike konsonante en asemhalingsgeluide om elektro-akoestiese skeur en ander artefakte te voorkom. Deur die parameter na sy maksimum waarde van 0.5 te trek, bied dit omvattende beskerming. Die vermindering van hierdie waarde kan egter die mate van beskerming verminder terwyl die indekseringseffek moontlik versag word.",
256+
"Sample Rate": "Monsterkoers",
257257
"Sampling Rate": "Monsternemingskoers",
258258
"Save Every Epoch": "Stoor Elke Epog",
259259
"Save Every Weights": "Stoor Alle Gewigte",
@@ -326,6 +326,7 @@
326326
"Start": "Begin",
327327
"Start Training": "Begin Opleiding",
328328
"Status": "Status",
329+
"Stereo": "Stereo",
329330
"Stop": "Stop",
330331
"Stop Training": "Stop Opleiding",
331332
"Stop convert": "Stop omskakeling",
@@ -373,5 +374,6 @@
373374
"Volume level below which audio is treated as silence and not processed. Helps to save CPU resources and reduce background noise.": "Volumevlak waaronder klank as stilte behandel word en nie verwerk word nie. Help om SVE-hulpbronne te bespaar en agtergrondgeraas te verminder.",
374375
"Warming up... ({} blocks remaining)": "Warming up... ({} blokke oor)",
375376
"You can also use a custom path.": "U kan ook 'n pasgemaakte pad gebruik.",
376-
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[Ondersteuning](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)"
377+
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[Ondersteuning](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)",
378+
"Sample rate used for audio streaming. Specify the actual sample rate configured on your device, as drivers may report incorrect values.": "Monsterkoers wat vir oudio-stroom gebruik word. Ignoreer dit as die bestuurder 'n verkeerde koers aanmeld (bv. 48000 Hz in plaas van 44100 Hz)."
377379
}

assets/i18n/languages/am_AM.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
"Drag your plugin.zip to install it": "ለመጫን የእርስዎን plugin.zip ይጎትቱ",
101101
"Duration of the fade between audio chunks to prevent clicks. Higher values create smoother transitions but may increase latency.": "የሚሰነጠቁ ድምፆችን ለመከላከል በድምፅ ክፋዮች መካከል ያለው የድምፅ መደብዘዝ ቆይታ። ከፍተኛ እሴቶች ለስላሳ ሽግግሮችን ይፈጥራሉ ነገር ግን መዘግየትን ሊጨምሩ ይችላሉ።",
102102
"Embedder Model": "የኢምቤደር ሞዴል",
103+
"Enable ASIO": "ASIO ን አንቃ",
104+
"Enable ASIO driver support. (Requires restarting Applio)": "የ ASIO ድራይቨር ድጋፍን ያንቁ። ከላይ ያሉትን የቻናል ቁጥሮች አዘጋጅተው ASIO መሣሪያን እንደ ግቤት/ውፅዓት ይምረጡ። ለውጡ ተግባራዊ ለመሆን Applio ን ዳግም ማስጀመር ያስፈልጋል።(Applioን እንደገና ማስጀመር ያስፈልጋል)",
103105
"Enable Applio integration with Discord presence": "የ Applio ውህደትን ከ Discord መገኘት ጋር ያንቁ",
104106
"Enable VAD": "VAD አንቃ",
105107
"Enable formant shifting. Used for male to female and vice-versa convertions.": "የፎርማንት ሽግግርን አንቃ። ለወንድ ወደ ሴት እና ለተገላቢጦሽ ልወጣዎች ያገለግላል።",
@@ -134,9 +136,6 @@
134136
"File to Speech": "ከፋይል ወደ ንግግር",
135137
"Filter": "አጣራ",
136138
"Folder Name": "የአቃፊ ስም",
137-
"For ASIO drivers, selects a specific input channel. Leave at -1 for default.": "ለASIO ሾፌሮች፣ የተወሰነ የግቤት ቻናል ይመርጣል። ለነባሪው በ-1 ላይ ይተዉት።",
138-
"For ASIO drivers, selects a specific monitor output channel. Leave at -1 for default.": "ለASIO ሾፌሮች፣ የተወሰነ የክትትል ውፅዓት ቻናል ይመርጣል። ለነባሪው በ-1 ላይ ይተዉት።",
139-
"For ASIO drivers, selects a specific output channel. Leave at -1 for default.": "ለASIO ሾፌሮች፣ የተወሰነ የውፅዓት ቻናል ይመርጣል። ለነባሪው በ-1 ላይ ይተዉት።",
140139
"For WASAPI (Windows), gives the app exclusive control for potentially lower latency.": "ለWASAPI (Windows)፣ ዝቅተኛ መዘግየትን ለማምጣት መተግበሪያው ብቸኛ ቁጥጥር እንዲኖረው ያደርጋል።",
141140
"Formant Shifting": "የፎርማንት ሽግግር",
142141
"Fresh Training": "አዲስ ስልጠና",
@@ -254,6 +253,7 @@
254253
"Reverb Wet Gain": "የሪቨርብ ዌት ጌይን",
255254
"Reverb Width": "የሪቨርብ ስፋት",
256255
"Safeguard distinct consonants and breathing sounds to prevent electro-acoustic tearing and other artifacts. Pulling the parameter to its maximum value of 0.5 offers comprehensive protection. However, reducing this value might decrease the extent of protection while potentially mitigating the indexing effect.": "የኤሌክትሮ-አኮስቲክ መበጣጠስ እና ሌሎች ጉድለቶችን ለመከላከል ልዩ ተነባቢዎችን እና የአተነፋፈስ ድምፆችን ይጠብቁ። ፓራሜተሩን ወደ ከፍተኛው 0.5 እሴት መሳብ አጠቃላይ ጥበቃን ይሰጣል። ሆኖም ይህንን እሴት መቀነስ የማውጫውን ውጤት እየቀነሰ የጥበቃውን መጠን ሊቀንስ ይችላል።",
256+
"Sample Rate": "የናሙና መጠን",
257257
"Sampling Rate": "የናሙና መጠን",
258258
"Save Every Epoch": "በእያንዳንዱ ኢፖክ አስቀምጥ",
259259
"Save Every Weights": "ሁሉንም ክብደቶች አስቀምጥ",
@@ -326,6 +326,7 @@
326326
"Start": "ጀምር",
327327
"Start Training": "ስልጠና ጀምር",
328328
"Status": "ሁኔታ",
329+
"Stereo": "ስቴሪዮ",
329330
"Stop": "አቁም",
330331
"Stop Training": "ስልጠና አቁም",
331332
"Stop convert": "ልወጣ አቁም",
@@ -373,5 +374,6 @@
373374
"Volume level below which audio is treated as silence and not processed. Helps to save CPU resources and reduce background noise.": "ከዚህ በታች ያለው የድምፅ መጠን እንደ ጸጥታ የሚቆጠርበት እና የማይቀናበርበት ደረጃ። የCPU ሀብቶችን ለመቆጠብ እና የጀርባ ጫጫታን ለመቀነስ ይረዳል።",
374375
"Warming up... ({} blocks remaining)": "Warming up... ({} ብሎኮች ቀሪ)",
375376
"You can also use a custom path.": "ብጁ ዱካም መጠቀም ይችላሉ።",
376-
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[ድጋፍ](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)"
377+
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[ድጋፍ](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)",
378+
"Sample rate used for audio streaming. Specify the actual sample rate configured on your device, as drivers may report incorrect values.": "ለድምጽ ዥረት የሚያገለግለው የናሙና ሬሽዮ። ድራይቨሩ የተሳሳተ ሬሽዮ ሲያሳይ ይሄን ይቀይሩ (ለምሳሌ 44100 Hz ፈንታ 48000 Hz)።"
377379
}

assets/i18n/languages/ar_AR.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
"Drag your plugin.zip to install it": "اسحب ملف plugin.zip لتثبيته",
101101
"Duration of the fade between audio chunks to prevent clicks. Higher values create smoother transitions but may increase latency.": "مدة التلاشي بين قطع الصوت لمنع النقرات. القيم الأعلى تنشئ انتقالات أكثر سلاسة ولكنها قد تزيد من زمن الاستجابة.",
102102
"Embedder Model": "نموذج التضمين",
103+
"Enable ASIO": "تفعيل ASIO",
104+
"Enable ASIO driver support. (Requires restarting Applio)": "تفعيل دعم مشغل ASIO. (يتطلب إعادة تشغيل Applio)",
103105
"Enable Applio integration with Discord presence": "تمكين تكامل Applio مع حالة Discord",
104106
"Enable VAD": "تمكين VAD",
105107
"Enable formant shifting. Used for male to female and vice-versa convertions.": "تمكين إزاحة الترددات. يستخدم للتحويلات من ذكر إلى أنثى والعكس.",
@@ -134,9 +136,6 @@
134136
"File to Speech": "ملف إلى كلام",
135137
"Filter": "عامل تصفية (فلتر)",
136138
"Folder Name": "اسم المجلد",
137-
"For ASIO drivers, selects a specific input channel. Leave at -1 for default.": "لمشغلات ASIO، يحدد قناة إدخال معينة. اتركه عند -1 للافتراضي.",
138-
"For ASIO drivers, selects a specific monitor output channel. Leave at -1 for default.": "لمشغلات ASIO، يحدد قناة إخراج مراقبة معينة. اتركه عند -1 للافتراضي.",
139-
"For ASIO drivers, selects a specific output channel. Leave at -1 for default.": "لمشغلات ASIO، يحدد قناة إخراج معينة. اتركه عند -1 للافتراضي.",
140139
"For WASAPI (Windows), gives the app exclusive control for potentially lower latency.": "لـ WASAPI (Windows)، يمنح التطبيق تحكمًا حصريًا لزمن استجابة أقل محتمل.",
141140
"Formant Shifting": "إزاحة الترددات",
142141
"Fresh Training": "تدريب من البداية",
@@ -254,6 +253,7 @@
254253
"Reverb Wet Gain": "كسب رطب للصدى",
255254
"Reverb Width": "عرض الصدى",
256255
"Safeguard distinct consonants and breathing sounds to prevent electro-acoustic tearing and other artifacts. Pulling the parameter to its maximum value of 0.5 offers comprehensive protection. However, reducing this value might decrease the extent of protection while potentially mitigating the indexing effect.": "حماية الحروف الساكنة المميزة وأصوات التنفس لمنع التمزق الصوتي الكهربائي والتشوهات الأخرى. سحب المُعامِل إلى قيمته القصوى البالغة 0.5 يوفر حماية شاملة. ومع ذلك، فإن تقليل هذه القيمة قد يقلل من مدى الحماية مع احتمالية تخفيف تأثير الفهرسة.",
256+
"Sample Rate": "معدل أخذ العينات",
257257
"Sampling Rate": "معدل العينة",
258258
"Save Every Epoch": "حفظ كل حقبة",
259259
"Save Every Weights": "حفظ كل الأوزان",
@@ -326,6 +326,7 @@
326326
"Start": "ابدأ",
327327
"Start Training": "بدء التدريب",
328328
"Status": "الحالة",
329+
"Stereo": "ستيريو",
329330
"Stop": "إيقاف",
330331
"Stop Training": "إيقاف التدريب",
331332
"Stop convert": "إيقاف التحويل",
@@ -373,5 +374,6 @@
373374
"Volume level below which audio is treated as silence and not processed. Helps to save CPU resources and reduce background noise.": "مستوى الصوت الذي يُعتبر الصوت دونه صمتًا ولا تتم معالجته. يساعد على توفير موارد وحدة المعالجة المركزية (CPU) وتقليل الضوضاء الخلفية.",
374375
"Warming up... ({} blocks remaining)": "جارٍ التحضير... ({} كتل متبقية)",
375376
"You can also use a custom path.": "يمكنك أيضًا استخدام مسار مخصص.",
376-
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[الدعم](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)"
377+
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[الدعم](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)",
378+
"Sample rate used for audio streaming. Specify the actual sample rate configured on your device, as drivers may report incorrect values.": "معدل أخذ العينات المستخدم لبث الصوت. تجاوز هذا إذا أبلغ المشغل عن معدل غير صحيح (مثلاً 48000 هرتز بدلاً من 44100 هرتز)."
377379
}

assets/i18n/languages/az_AZ.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
"Drag your plugin.zip to install it": "Quraşdırmaq üçün plugin.zip faylınızı sürükləyin",
101101
"Duration of the fade between audio chunks to prevent clicks. Higher values create smoother transitions but may increase latency.": "Kliklərin qarşısını almaq üçün səs hissələri arasındakı keçidin müddəti. Daha yüksək dəyərlər daha rəvan keçidlər yaradır, lakin gecikməni artıra bilər.",
102102
"Embedder Model": "Daxil Edici Model",
103+
"Enable ASIO": "ASIO-nu aktivləşdirin",
104+
"Enable ASIO driver support. (Requires restarting Applio)": "ASIO sürücü dəstəyini aktivləşdirin. (Applio-nu yenidən başlatmağı tələb edir)",
103105
"Enable Applio integration with Discord presence": "Applio-nun Discord mövcudluğu ilə inteqrasiyasını aktivləşdirin",
104106
"Enable VAD": "VAD-ı Aktivləşdir",
105107
"Enable formant shifting. Used for male to female and vice-versa convertions.": "Formant sürüşməsini aktivləşdirin. Kişidən qadına və əksinə çevirmələr üçün istifadə olunur.",
@@ -134,9 +136,6 @@
134136
"File to Speech": "Fayldan Nitqə",
135137
"Filter": "Filtr",
136138
"Folder Name": "Qovluq Adı",
137-
"For ASIO drivers, selects a specific input channel. Leave at -1 for default.": "ASIO drayverləri üçün xüsusi bir giriş kanalı seçir. Standart üçün -1-də saxlayın.",
138-
"For ASIO drivers, selects a specific monitor output channel. Leave at -1 for default.": "ASIO drayverləri üçün xüsusi bir monitor çıxış kanalı seçir. Standart üçün -1-də saxlayın.",
139-
"For ASIO drivers, selects a specific output channel. Leave at -1 for default.": "ASIO drayverləri üçün xüsusi bir çıxış kanalı seçir. Standart üçün -1-də saxlayın.",
140139
"For WASAPI (Windows), gives the app exclusive control for potentially lower latency.": "WASAPI (Windows) üçün potensial olaraq daha aşağı gecikmə üçün tətbiqə eksklüziv nəzarət verir.",
141140
"Formant Shifting": "Formant Sürüşməsi",
142141
"Fresh Training": "Yeni Təlim",
@@ -254,6 +253,7 @@
254253
"Reverb Wet Gain": "Reverb Nəm Gücləndirmə",
255254
"Reverb Width": "Reverb Genişliyi",
256255
"Safeguard distinct consonants and breathing sounds to prevent electro-acoustic tearing and other artifacts. Pulling the parameter to its maximum value of 0.5 offers comprehensive protection. However, reducing this value might decrease the extent of protection while potentially mitigating the indexing effect.": "Elektro-akustik cırılma və digər artefaktların qarşısını almaq üçün fərqli samitləri və nəfəs səslərini qoruyun. Parametri maksimum 0.5 dəyərinə çəkmək hərtərəfli qoruma təmin edir. Lakin bu dəyərin azaldılması, indeksasiya effektini potensial olaraq yüngülləşdirərkən qorunma dərəcəsini azalda bilər.",
256+
"Sample Rate": "Nümunə Dərəcəsi",
257257
"Sampling Rate": "Nümunə Götürmə Tezliyi",
258258
"Save Every Epoch": "Hər Epoxda Yadda Saxla",
259259
"Save Every Weights": "Hər Çəkini Yadda Saxla",
@@ -326,6 +326,7 @@
326326
"Start": "Başlat",
327327
"Start Training": "Təlimə Başla",
328328
"Status": "Status",
329+
"Stereo": "Stereo",
329330
"Stop": "Dayandır",
330331
"Stop Training": "Təlimi Dayandır",
331332
"Stop convert": "Çevirməni dayandır",
@@ -373,5 +374,6 @@
373374
"Volume level below which audio is treated as silence and not processed. Helps to save CPU resources and reduce background noise.": "Səsin səssizlik kimi qəbul edildiyi və emal edilmədiyi səs səviyyəsi. CPU resurslarına qənaət etməyə və arxa plan səs-küyünü azaltmağa kömək edir.",
374375
"Warming up... ({} blocks remaining)": "Hazırlanır... ({} blok qalıb)",
375376
"You can also use a custom path.": "Siz həmçinin xüsusi bir yoldan istifadə edə bilərsiniz.",
376-
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[Dəstək](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)"
377+
"[Support](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)": "[Dəstək](https://discord.gg/urxFjYmYYh) — [GitHub](https://github.com/IAHispano/Applio)",
378+
"Sample rate used for audio streaming. Specify the actual sample rate configured on your device, as drivers may report incorrect values.": "Audio axını üçün istifadə edilən nümunə dərəcəsi. Sürücü yanlış dərəcə bildirirsə bunu dəyişdirin (məs. 44100 Hz əvəzinə 48000 Hz)."
377379
}

0 commit comments

Comments
 (0)