From 8c8e65fb1d56f3d76e069db04ad11ca9a0a7963b Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:00:33 +0000 Subject: [PATCH] Fixed outlier on character paragraph. On new chat, character paragraphs, found an outlier possibility where character/narrator wouldn't swap, so performed replace('"<. *', '"< *"').replace('< *"', '< *') which should capture it. --- script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.py b/script.py index db238dd..e9576f8 100644 --- a/script.py +++ b/script.py @@ -508,8 +508,10 @@ def output_modifier(string, state): .replace('"', '"<') # Capture new conversations which wont have things like "e in them .replace('"', '"<') - ) + #capturing another outlier in inital character paragraph + processed_string = processed_string.replace('"<. *', '"< *"') + processed_string = processed_string.replace('< *"', '< *') # Set up a tracking of the individual wav files. audio_files_all_paragraphs = [] # Split the line using " and ".* " (so end of sentences, leaving special characters added to the start of all OTHER sentences, bar possibly the first one if its starting with a *