コミットを比較
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
|
|
114bd6e6ee
|
||
|
|
bdb843f2df
|
||
|
|
1941a9c168
|
||
|
|
a55a3849f9
|
||
|
|
3ae158b1a4
|
||
|
|
50e36725a9
|
||
|
|
e6064d3d37
|
||
|
|
8078ca06b1
|
検索条件に一致するファイルはありません
@@ -0,0 +1,24 @@
|
||||
NAudio
|
||||
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright © Mark Heath & Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+41
-1
@@ -1,5 +1,5 @@
|
||||
========================================
|
||||
UTAU for YMM4 v1.7.2
|
||||
UTAU for YMM4 v1.7.4
|
||||
========================================
|
||||
YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合成する
|
||||
音声合成プラグインです。
|
||||
@@ -109,6 +109,44 @@ WorldNet で分析して合成し直します。
|
||||
|
||||
- 本プラグインを使用する前に、YMM4 プロジェクトファイルのバックアップを
|
||||
作成することを推奨します。
|
||||
--------------------------------------------------------------------------------
|
||||
■ 不具合の報告
|
||||
--------------------------------------------------------------------------------
|
||||
本プラグインは、想定していない例外が起きたときに、その内容を開発者へ自動で
|
||||
送信します。同意は求めず、常に送信します。
|
||||
|
||||
送信する情報は次のとおりです。
|
||||
例外 : 型の完全名、メッセージ、スタックトレース
|
||||
発生位置 : モジュール名、関数名、ファイル名、行番号
|
||||
プラグイン : アセンブリ名、バージョン
|
||||
実行環境 : OS の名前とバージョン、.NET のバージョン、
|
||||
CPU のアーキテクチャ、論理プロセッサ数
|
||||
識別子 : YMM4 の起動ごとに決まるセッション識別子、報告ごとの識別子
|
||||
|
||||
利用者の名前、プロジェクトの名前、音源の名前、歌詞、音声ファイルの中身は
|
||||
送信しません。継続して個人を追跡する識別子も持ちません。セッション識別子は
|
||||
YMM4 を起動し直すと別の値になります。メッセージとファイル名に含まれる
|
||||
利用者名などの文字列は、送信の前に置き換えます。送信元の IP アドレスは
|
||||
受信側へ渡す手前で取り除いています。
|
||||
|
||||
送信するのは想定していない例外だけです。本プラグインが例外を握り潰す箇所と、
|
||||
YMM4 へ処理を返す境界の両方で報告します。画面の操作やバックグラウンドの
|
||||
処理で未処理になった例外も報告しますが、本プラグインのコードが関わる例外に
|
||||
限ります。YMM4 本体やほかのプラグインで起きた例外は送信しません。
|
||||
|
||||
次の例外は送信しません。
|
||||
利用者へ知らせるための失敗 : エイリアスが見つからない、合成できるノートが
|
||||
ない、セリフが空
|
||||
更新の確認の通信の失敗 : GitHub へ接続できない
|
||||
探索と設定ファイルの読み取りで想定している失敗 : フォルダーを開く権限が
|
||||
ない、文字コードを判別できない、パスが長すぎる
|
||||
|
||||
音源の音声ファイルを読み込めなかった場合は送信します。読み込みの不具合を
|
||||
見つけるためです。
|
||||
|
||||
送信できなかった報告は YMM4 のユーザーフォルダーへ退避し、次回の起動時に
|
||||
送り直します。送信も再送も非同期に行うため、起動と合成が遅くなることは
|
||||
ありません。
|
||||
--------------------------------------------------------------------------------
|
||||
■ 免責事項
|
||||
--------------------------------------------------------------------------------
|
||||
@@ -125,10 +163,12 @@ WorldNet で分析して合成し直します。
|
||||
本プラグインは音声の分析と合成に WorldNet(MIT License)を同梱しています。
|
||||
WorldNet は M. Morise 氏の WORLD(修正 BSD License)を C# へ移植した物で、
|
||||
高速フーリエ変換には Takuya OOURA 氏の FFT パッケージを用いています。
|
||||
音声ファイルの読み書きには NAudio(MIT License)を同梱しています。
|
||||
歌詞をまとめて編集するときの区切り方は OpenUtau(MIT License)の規約に
|
||||
合わせています。
|
||||
ライセンスの全文は同梱の LICENSE フォルダーに収録しています。
|
||||
WorldNet : Copyright (c) 2026 routersys
|
||||
NAudio : Copyright (c) Mark Heath & Contributors
|
||||
WORLD : Copyright (c) 2010 M. Morise
|
||||
Ooura FFT : Copyright Takuya OOURA, 1996-2001
|
||||
OpenUtau : Copyright (c) 2014 StAkira
|
||||
|
||||
@@ -112,8 +112,8 @@ jobs:
|
||||
New-Item -ItemType Directory -Path $stageRoot -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path "$stageRoot/LICENSE" -Force | Out-Null
|
||||
|
||||
foreach ($name in @("UTAU.dll", "WorldNet.dll")) {
|
||||
$path = "$outDir/$name"
|
||||
foreach ($path in @("$outDir/plugin/UTAU.dll", "$outDir/WorldNet.dll")) {
|
||||
$name = Split-Path $path -Leaf
|
||||
if (-not (Test-Path $path)) {
|
||||
Write-Error "ビルド結果に $name が見つかりませんでした: $path"
|
||||
exit 1
|
||||
|
||||
@@ -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
|
||||
@@ -34,9 +34,10 @@ YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合
|
||||
9. [対応フォーマット](#対応フォーマット)
|
||||
10. [制限事項](#制限事項)
|
||||
11. [注意事項](#注意事項)
|
||||
12. [免責事項](#免責事項)
|
||||
13. [サードパーティライセンス](#サードパーティライセンス)
|
||||
14. [ライセンス](#ライセンス)
|
||||
12. [不具合の報告](#不具合の報告)
|
||||
13. [免責事項](#免責事項)
|
||||
14. [サードパーティライセンス](#サードパーティライセンス)
|
||||
15. [ライセンス](#ライセンス)
|
||||
|
||||
---
|
||||
|
||||
@@ -269,6 +270,40 @@ YMM4 の設定画面の「音声」に「UTAU」として表示されます。
|
||||
|
||||
---
|
||||
|
||||
## 不具合の報告
|
||||
|
||||
本プラグインは、想定していない例外が起きたときに、その内容を開発者へ自動で送信します。同意は求めず、常に送信します。
|
||||
|
||||
送信する情報は次のとおりです。
|
||||
|
||||
| 種類 | 内容 |
|
||||
|---|---|
|
||||
| 例外 | 型の完全名、メッセージ、スタックトレース |
|
||||
| 発生位置 | モジュール名、関数名、ファイル名、行番号 |
|
||||
| プラグイン | アセンブリ名、バージョン |
|
||||
| 実行環境 | OS の名前とバージョン、.NET のバージョン、CPU のアーキテクチャ、論理プロセッサ数 |
|
||||
| 識別子 | YMM4 の起動ごとに決まるセッション識別子、報告ごとの識別子 |
|
||||
|
||||
利用者の名前、プロジェクトの名前、音源の名前、歌詞、音声ファイルの中身は送信しません。継続して個人を追跡する識別子も持ちません。セッション識別子は YMM4 を起動し直すと別の値になります。メッセージとファイル名に含まれる利用者名などの文字列は、送信の前に置き換えます。送信元の IP アドレスは受信側へ渡す手前で取り除いています。
|
||||
|
||||
送信するのは想定していない例外だけです。本プラグインが例外を握り潰す箇所と、YMM4 へ処理を返す境界の両方で報告します。画面の操作やバックグラウンドの処理で未処理になった例外も報告しますが、本プラグインのコードが関わる例外に限ります。YMM4 本体やほかのプラグインで起きた例外は送信しません。
|
||||
|
||||
次の例外は送信しません。
|
||||
|
||||
| 種類 | 例 |
|
||||
|---|---|
|
||||
| 利用者へ知らせるための失敗 | エイリアスが見つからない、合成できるノートがない、セリフが空 |
|
||||
| 更新の確認の通信の失敗 | GitHub へ接続できない |
|
||||
| 探索と設定ファイルの読み取りで想定している失敗 | フォルダーを開く権限がない、文字コードを判別できない、パスが長すぎる |
|
||||
|
||||
音源の音声ファイルを読み込めなかった場合は送信します。読み込みの不具合を見つけるためです。
|
||||
|
||||
送信できなかった報告は YMM4 のユーザーフォルダーへ退避し、次回の起動時に送り直します。送信も再送も非同期に行うため、起動と合成が遅くなることはありません。
|
||||
|
||||
実装は [YMM4-Telemetry](https://github.com/routersys/YMM4-Telemetry) をサブモジュールとして取り込んでいます。
|
||||
|
||||
---
|
||||
|
||||
## 免責事項
|
||||
|
||||
本プラグインは MIT ライセンスのもとで公開されています。
|
||||
@@ -287,6 +322,7 @@ YMM4 の設定画面の「音声」に「UTAU」として表示されます。
|
||||
| ソフトウェア | 用途 | ライセンス | 著作権表示 |
|
||||
|---|---|---|---|
|
||||
| [WorldNet](https://github.com/routersys/WorldNet) | 音声の分析と合成 | MIT License | Copyright (c) 2026 routersys |
|
||||
| [NAudio](https://github.com/naudio/NAudio) | 音声ファイルの読み書き | MIT License | Copyright (c) Mark Heath & Contributors |
|
||||
| [WORLD](https://github.com/mmorise/World) | WorldNet が移植した音声分析合成システム | 修正 BSD License | Copyright (c) 2010 M. Morise |
|
||||
| [Ooura FFT](https://www.kurims.kyoto-u.ac.jp/~ooura/fft.html) | WORLD が使う高速フーリエ変換 | 作者が定める条件 | Copyright Takuya OOURA, 1996-2001 |
|
||||
| [OpenUtau](https://github.com/stakira/OpenUtau) | 歌詞の区切り方の規約。試験には参照実装として原実装を転写しています | MIT License | Copyright (c) 2014 StAkira |
|
||||
|
||||
@@ -30,18 +30,9 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="NAudio">
|
||||
<HintPath>$(YMM4DirPath)NAudio.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NAudio.Core">
|
||||
<HintPath>$(YMM4DirPath)NAudio.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>$(YMM4DirPath)Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics.Tensors">
|
||||
<HintPath>$(YMM4DirPath)System.Numerics.Tensors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="YukkuriMovieMaker.Controls">
|
||||
<HintPath>$(YMM4DirPath)YukkuriMovieMaker.Controls.dll</HintPath>
|
||||
</Reference>
|
||||
|
||||
@@ -669,6 +669,7 @@ internal sealed class UtauRenderer(RenderSettings settings, RenderCurves curves,
|
||||
}
|
||||
catch (Exception exception) when (exception is IOException or InvalidOperationException or FormatException or NotSupportedException or ArgumentException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -695,6 +696,7 @@ internal sealed class UtauRenderer(RenderSettings settings, RenderCurves curves,
|
||||
}
|
||||
catch (Exception exception) when (exception is IOException or InvalidOperationException or FormatException or NotSupportedException or ArgumentException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ internal static class WaveIo
|
||||
var frames = new List<double>(Math.Max((int)(reader.Length / Math.Max(reader.WaveFormat.BlockAlign, 1)), 0));
|
||||
|
||||
int read;
|
||||
while ((read = reader.Read(buffer)) > 0)
|
||||
while ((read = reader.Read(buffer, 0, buffer.Length)) > 0)
|
||||
{
|
||||
for (var i = 0; i + channels <= read; i += channels)
|
||||
{
|
||||
|
||||
+12
-15
@@ -5,13 +5,15 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>1.7.2</Version>
|
||||
<Version>1.7.4</Version>
|
||||
<Platforms>AnyCPU;x64;x64</Platforms>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ILRepack" Version="2.0.46" PrivateAssets="all" ExcludeAssets="all" GeneratePathProperty="true" />
|
||||
<PackageReference Include="NAudio" Version="2.3.0" />
|
||||
<PackageReference Include="WorldNet" Version="1.1.0" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -22,18 +24,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="NAudio">
|
||||
<HintPath>$(YMM4DirPath)NAudio.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="NAudio.Core">
|
||||
<HintPath>$(YMM4DirPath)NAudio.Core.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="NAudio.Midi">
|
||||
<HintPath>$(YMM4DirPath)NAudio.Midi.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="NCalc.Core">
|
||||
<HintPath>$(YMM4DirPath)NCalc.Core.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
@@ -87,13 +77,20 @@
|
||||
<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" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(SkipPluginDeploy)' != 'true'">
|
||||
<Exec Command="mkdir "$(YMM4DirPath)user\plugin\$(ProjectName)" > NUL 2>&1
copy "$(TargetPath)" "$(YMM4DirPath)user\plugin\$(ProjectName)\"
copy "$(TargetDir)WorldNet.dll" "$(YMM4DirPath)user\plugin\$(ProjectName)\"" />
|
||||
<Target Name="MergePluginAssembly" AfterTargets="PostBuildEvent" Inputs="$(TargetPath);$(TargetDir)NAudio.dll;$(TargetDir)NAudio.Core.dll;$(TargetDir)NAudio.Asio.dll;$(TargetDir)NAudio.Midi.dll;$(TargetDir)NAudio.Wasapi.dll;$(TargetDir)NAudio.WinMM.dll" Outputs="$(TargetDir)plugin\$(TargetFileName)">
|
||||
<MakeDir Directories="$(TargetDir)plugin" />
|
||||
<Exec Command=""$(PkgILRepack)\tools\ILRepack.exe" /out:"$(TargetDir)plugin\$(TargetFileName)" /lib:"$([System.IO.Path]::GetDirectoryName('$(TargetPath)'))" /lib:"$([System.IO.Path]::GetDirectoryName('$(YMM4DirPath)'))" /internalize "$(TargetPath)" "$(TargetDir)NAudio.dll" "$(TargetDir)NAudio.Core.dll" "$(TargetDir)NAudio.Asio.dll" "$(TargetDir)NAudio.Midi.dll" "$(TargetDir)NAudio.Wasapi.dll" "$(TargetDir)NAudio.WinMM.dll"" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="MergePluginAssembly" Condition="'$(SkipPluginDeploy)' != 'true'">
|
||||
<Exec Command="mkdir "$(YMM4DirPath)user\plugin\$(ProjectName)" > NUL 2>&1
copy "$(TargetDir)plugin\$(TargetFileName)" "$(YMM4DirPath)user\plugin\$(ProjectName)\"
copy "$(TargetDir)WorldNet.dll" "$(YMM4DirPath)user\plugin\$(ProjectName)\"" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,100 @@
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using System.Windows.Threading;
|
||||
using Telemetry;
|
||||
|
||||
namespace UTAU;
|
||||
|
||||
internal static class UTAUTelemetry
|
||||
{
|
||||
private const int MaxChainLength = 5;
|
||||
private const int MaxFrames = 100;
|
||||
|
||||
private static readonly Assembly Own = typeof(UTAUTelemetry).Assembly;
|
||||
private static int _started;
|
||||
|
||||
public static void EnsureStartedOnce()
|
||||
{
|
||||
if (Interlocked.Exchange(ref _started, 1) != 0)
|
||||
return;
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
|
||||
TaskScheduler.UnobservedTaskException += OnUnobservedTaskException;
|
||||
|
||||
var application = Application.Current;
|
||||
if (application is not null)
|
||||
application.DispatcherUnhandledException += OnDispatcherUnhandledException;
|
||||
|
||||
TelemetryReporter.Start();
|
||||
}
|
||||
|
||||
public static void Report(Exception exception) => TelemetryReporter.Report(exception);
|
||||
|
||||
private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
=> ReportOwn(e.ExceptionObject as Exception);
|
||||
|
||||
private static void OnUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e)
|
||||
=> ReportOwn(e.Exception);
|
||||
|
||||
private static void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
|
||||
=> ReportOwn(e.Exception);
|
||||
|
||||
private static void ReportOwn(Exception? exception)
|
||||
{
|
||||
if (exception is not null && IsOwn(exception))
|
||||
TelemetryReporter.Report(exception);
|
||||
}
|
||||
|
||||
private static bool IsOwn(Exception exception)
|
||||
{
|
||||
var current = exception;
|
||||
for (var depth = 0; current is not null && depth < MaxChainLength; depth++)
|
||||
{
|
||||
if (HasOwnFrame(current))
|
||||
return true;
|
||||
|
||||
current = current is AggregateException aggregate && aggregate.InnerExceptions.Count > 0
|
||||
? aggregate.InnerExceptions[0]
|
||||
: current.InnerException;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool HasOwnFrame(Exception exception)
|
||||
{
|
||||
StackFrame[]? frames;
|
||||
|
||||
try
|
||||
{
|
||||
frames = new StackTrace(exception, false).GetFrames();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (frames is null)
|
||||
return false;
|
||||
|
||||
for (var index = 0; index < Math.Min(frames.Length, MaxFrames); index++)
|
||||
{
|
||||
MethodBase? method;
|
||||
|
||||
try
|
||||
{
|
||||
method = frames[index].GetMethod();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (method?.DeclaringType is { } declaringType && ReferenceEquals(declaringType.Assembly, Own))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -31,8 +31,10 @@ internal static class UTAUUpdateNotifier
|
||||
};
|
||||
await new Notifier(Owner, Repository, options).NotifyAsync().ConfigureAwait(false);
|
||||
}
|
||||
catch
|
||||
catch (Exception exception)
|
||||
{
|
||||
if (exception is not UpdateCheckException)
|
||||
UTAUTelemetry.Report(exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+16
-2
@@ -18,16 +18,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()
|
||||
{
|
||||
UTAUTelemetry.EnsureStartedOnce();
|
||||
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)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,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)
|
||||
{
|
||||
UTAUTelemetry.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);
|
||||
|
||||
@@ -78,6 +78,7 @@ internal sealed class UTAUSettingsViewModel : Bindable
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
StatusText = exception.Message;
|
||||
}
|
||||
finally
|
||||
@@ -138,6 +139,7 @@ internal sealed class UTAUSettingsViewModel : Bindable
|
||||
}
|
||||
catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or System.ComponentModel.Win32Exception)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
StatusText = exception.Message;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ internal sealed class VoiceBankViewModel(VoiceBank bank)
|
||||
}
|
||||
catch (Exception exception) when (exception is NotSupportedException or IOException or UriFormatException or ArgumentException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
サブモジュール
+1
サブモジュール YMM4-Telemetry が 04010903ca で追加されました。
新しいイシューから参照
ユーザーをブロックする