不具合の報告にTelemetryを取り込む
このコミットが含まれているのは:
6ファイル変更
+39
-2
検索条件に一致するファイルはありません
@@ -4,3 +4,6 @@
|
||||
[submodule "YMM4-GitHubUpdateNotifier"]
|
||||
path = YMM4-GitHubUpdateNotifier
|
||||
url = https://github.com/routersys/YMM4-GitHubUpdateNotifier.git
|
||||
[submodule "YMM4-Telemetry"]
|
||||
path = YMM4-Telemetry
|
||||
url = https://github.com/routersys/YMM4-Telemetry.git
|
||||
@@ -77,6 +77,8 @@
|
||||
<Compile Include="..\YMM4-GitHubUpdateNotifier\GitHubUpdateNotifier\*.cs" LinkBase="GitHubUpdateNotifier" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\YMM4-Telemetry\Telemetry.props" />
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\YukkuriMovieMaker.Generator\YukkuriMovieMaker.Generator\YukkuriMovieMaker.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
||||
<AdditionalFiles Include="**/*.csv" />
|
||||
|
||||
+17
-2
@@ -1,3 +1,4 @@
|
||||
using Telemetry;
|
||||
using UTAU.Models;
|
||||
using YukkuriMovieMaker.Plugin;
|
||||
using YukkuriMovieMaker.Plugin.Voice;
|
||||
@@ -18,16 +19,30 @@ internal sealed class UTAUVoicePlugin : IVoicePlugin
|
||||
|
||||
public bool IsVoicesCached => VoiceBankRepository.IsLoaded;
|
||||
|
||||
public Task UpdateVoicesAsync() => Task.Run(VoiceBankRepository.Reload);
|
||||
public Task UpdateVoicesAsync() => Task.Run(Reload);
|
||||
|
||||
static IEnumerable<IVoiceSpeaker> GetVoices()
|
||||
{
|
||||
TelemetryReporter.Start();
|
||||
UTAUUpdateNotifier.EnsureCheckedOnce();
|
||||
|
||||
if (!VoiceBankRepository.IsLoaded)
|
||||
VoiceBankRepository.Reload();
|
||||
Reload();
|
||||
|
||||
foreach (var bank in VoiceBankRepository.Banks)
|
||||
yield return new UTAUVoiceSpeaker(bank);
|
||||
}
|
||||
|
||||
static void Reload()
|
||||
{
|
||||
try
|
||||
{
|
||||
VoiceBankRepository.Reload();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
TelemetryReporter.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using Telemetry;
|
||||
using UTAU.Models;
|
||||
using UTAU.Notes;
|
||||
using UTAU.Phonemes;
|
||||
@@ -48,6 +49,19 @@ internal sealed class UTAUVoiceSpeaker(VoiceBank bank) : IVoiceSpeaker
|
||||
=> currentParameter is UTAUVoiceParameter ? currentParameter : CreateVoiceParameter();
|
||||
|
||||
public async Task<IVoicePronounce?> CreateVoiceAsync(string text, IVoicePronounce? pronounce, IVoiceParameter? parameter, string filePath)
|
||||
{
|
||||
try
|
||||
{
|
||||
return await CreateAsync(text, pronounce, parameter, filePath).ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception exception) when (exception is not InvalidOperationException)
|
||||
{
|
||||
TelemetryReporter.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
async Task<IVoicePronounce?> CreateAsync(string text, IVoicePronounce? pronounce, IVoiceParameter? parameter, string filePath)
|
||||
{
|
||||
var param = parameter as UTAUVoiceParameter ?? new UTAUVoiceParameter();
|
||||
var isUst = UstSource.TryGetPath(text, out var ustPath);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Windows.Input;
|
||||
using Telemetry;
|
||||
using UTAU.Models;
|
||||
using UTAU.Synthesis;
|
||||
using YukkuriMovieMaker.Commons;
|
||||
@@ -78,6 +79,7 @@ internal sealed class UTAUSettingsViewModel : Bindable
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
TelemetryReporter.Report(exception);
|
||||
StatusText = exception.Message;
|
||||
}
|
||||
finally
|
||||
|
||||
サブモジュール
+1
サブモジュール YMM4-Telemetry が 04010903ca で追加されました。
新しいイシューから参照
ユーザーをブロックする