From 3472c25de7131611d927a0da80ba92ed98c97583 Mon Sep 17 00:00:00 2001 From: EX3 Date: Fri, 27 Sep 2024 10:35:30 +0900 Subject: [PATCH] Fixed typo --- Mirivoice/Views/VoicersStyleBox.axaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mirivoice/Views/VoicersStyleBox.axaml.cs b/Mirivoice/Views/VoicersStyleBox.axaml.cs index 2506e36..0bc3fb2 100644 --- a/Mirivoice/Views/VoicersStyleBox.axaml.cs +++ b/Mirivoice/Views/VoicersStyleBox.axaml.cs @@ -56,13 +56,17 @@ public async void OnSamplePlayButtonClick(object sender, RoutedEventArgs e) if (File.Exists(cachePath)) { isPlaying = true; + v.PlayAudio(cachePath); + return; } if (voicer != null) { isPlaying = true; string ipa = await phonemizer.ConvertToIPA(phrase, DispatcherPriority.ApplicationIdle); voicer.Inference(ipa, cachePath, null, sid); + v.PlayAudio(cachePath); + return; } - v.PlayAudio(cachePath); + } } \ No newline at end of file