From c6a2708e71fa10e11e5fd0192ec38579d797e376 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sat, 27 May 2023 20:33:24 +1000 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=B5=8B=E8=AF=95TTS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/VPet.Plugin.VPetTTS.dll | Bin 14336 -> 15872 bytes VPet.Plugin.EdgeTTS/EdgeTTS.cs | 2 +- VPet.Plugin.EdgeTTS/winSetting.xaml | 5 +- VPet.Plugin.EdgeTTS/winSetting.xaml.cs | 47 +++++++++++++++++- 4 files changed, 50 insertions(+), 4 deletions(-) diff --git a/VPet.Plugin.EdgeTTS/1101_EdgeTTS/plugin/VPet.Plugin.VPetTTS.dll b/VPet.Plugin.EdgeTTS/1101_EdgeTTS/plugin/VPet.Plugin.VPetTTS.dll index 43cad12afe70353d428a7951ba920557bd870635..bb77bbe3aacaa51624a6d63a1e0d347d33d18676 100644 GIT binary patch delta 4775 zcmai23vg7`8UD|?d(Yi_6PDc#c|j63PuCFg;QbPU;T0&5KoFvX$pQ* z^~pm7E{syK8buu)rb+{?S{w?BLli4ci`6n?1uSEns#wajY9;;7*@Z%#PA_x5`@bLO zwKv3CVn5mOP~PWjtGX%id_sA?Bvwu|3IY)qeq6Wn#XDSE>xkw`K_k&gZD(#ua*QY$ z{44W`#@GkTOYC}fi}mRUh@92v8)N^9-NGi=AG5roqlh4%85o>&I_)QVDwBvQ zDN)Pq(0LH4*skHnraHO|_#UlTEYtilXRr>5KWXHVp!V z(N&8-3zWYakd&4@B-wEO%s&&1GksCA)7aiL>`U&S1-^JxywU+3m>NehrIhP*G@gVa z15r&O@9;vy+ugvl(2w9#c&#kZ9Vrk;3&TxF$=myZ3Efa9QJE253e^xj9K6|L+a#=@ ze~b(<0A7XR*-G#FzY(rm{3k-RBNc8}1)3L;0)+G~j4^vC4dL35 zgY&Bbw20IoSg6+CWK56dpiPKT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Pet_Simulator.Core.ToolBar.MenuType.DIY, "EdgeTTS", Setting); } - private void Main_OnSay(string saythings) + public void Main_OnSay(string saythings) {//说话语音 var path = GraphCore.CachePath + $"\\voice\\{Sub.GetHashCode(saythings):X}.mp3"; if (File.Exists(path)) diff --git a/VPet.Plugin.EdgeTTS/winSetting.xaml b/VPet.Plugin.EdgeTTS/winSetting.xaml index 196a0a9..dfdcc85 100644 --- a/VPet.Plugin.EdgeTTS/winSetting.xaml +++ b/VPet.Plugin.EdgeTTS/winSetting.xaml @@ -69,6 +69,9 @@