From 00f638a15510be7aa2489be661543467e1517c4f Mon Sep 17 00:00:00 2001 From: aiueo-1234 <130837816+aiueo-1234@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:39:23 +0900 Subject: [PATCH] =?UTF-8?q?#25=20=E3=83=95=E3=82=A9=E3=83=BC=E3=83=9E?= =?UTF-8?q?=E3=83=83=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Epub/KoeBook.Epub/Services/AnalyzerService.cs | 2 +- KoeBook.Core/Services/ClaudeAnalyzerService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Epub/KoeBook.Epub/Services/AnalyzerService.cs b/Epub/KoeBook.Epub/Services/AnalyzerService.cs index 0ac0bd8..71d024e 100644 --- a/Epub/KoeBook.Epub/Services/AnalyzerService.cs +++ b/Epub/KoeBook.Epub/Services/AnalyzerService.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using System.Text.RegularExpressions; using KoeBook.Core; using KoeBook.Core.Contracts.Services; diff --git a/KoeBook.Core/Services/ClaudeAnalyzerService.cs b/KoeBook.Core/Services/ClaudeAnalyzerService.cs index 8d1f5ef..d648f8e 100644 --- a/KoeBook.Core/Services/ClaudeAnalyzerService.cs +++ b/KoeBook.Core/Services/ClaudeAnalyzerService.cs @@ -166,10 +166,10 @@ private static (List, Dictionary) ExtractCharacterLis var characterId2Name = characterList.Select(x => (x.Id, x.Name)).ToDictionary(); var voiceIdLines = lines.SkipWhile(l => !l.StartsWith("[REVISE VOICE ID]")) - .Where((x,i)=>x.StartsWith(i.ToString())) //[REVISE VOICE ID]の分ズレる + .Where((x, i) => x.StartsWith(i.ToString())) //[REVISE VOICE ID]の分ズレる .ToArray().AsSpan(); - if(voiceIdLines.Length != scriptLines.Count) + if (voiceIdLines.Length != scriptLines.Count) throw new EbookException(ExceptionType.ClaudeTalkerAndStyleSettingFailed); for (var i = 0; i < voiceIdLines.Length; i++) {