Skip to content

Commit

Permalink
#25 フォーマット
Browse files Browse the repository at this point in the history
  • Loading branch information
aiueo-1234 committed Apr 29, 2024
1 parent bd0d143 commit 00f638a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Epub/KoeBook.Epub/Services/AnalyzerService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
using System.Text.RegularExpressions;
using KoeBook.Core;
using KoeBook.Core.Contracts.Services;
Expand Down
4 changes: 2 additions & 2 deletions KoeBook.Core/Services/ClaudeAnalyzerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ private static (List<Character>, Dictionary<string, string>) 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++)
{
Expand Down

0 comments on commit 00f638a

Please sign in to comment.