HIllya51 / LunaTranslator

Galgame翻译器,支持HOOK、OCR、剪贴板等。Visual Novel Translator , support HOOK / OCR / clipboard
http://docs.lunatranslator.org/
GNU General Public License v3.0
4.92k stars 249 forks source link

TTS for Narration only #673

Closed carycary246 closed 7 months ago

carycary246 commented 7 months ago

Is there an option like VNR where the TTS will only automatically read the narration? I don't need it to read the voiced lines.

HIllya51 commented 7 months ago

The format of the Narration sentence differs greatly from voiced lines. You can filter the voiced lines before read.

屏幕截图 2024-04-19 101844
carycary246 commented 7 months ago

Do you have an example of how that works? I don't understand how I can use that function to stop it from reading voiced lines.

qwer666qwer commented 6 months ago

Do you have an example of how that works? I don't understand how I can use that function to stop it from reading voiced lines.

Perhaps you could add a regex to transform text with Japanese parentheses into blank lines. Snipaste_2024-04-20_01-43-42


regex: ^.*[「」].*$