Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复按英文句号切分bug和英文前端处理问题
修复按英文句号切分方式
改动位置:
总结:解决了按英文句号切分会异常切分小数点及序号项的问题。详细的说明参见 #1700
英文前端处理的问题修复
改动位置:
改动说明:
from g2p_en.expand import normalize_numbers
以此导入的处理函数为基准新增..\GPT_SoVITS\text\en_normalization\expend.py
来处理切句后的输入,导入为from text.en_normalization.expend import normalize
。相较于原 g2p_en 新增的功能如下:
有待实现的部分 ( 但不确定是否有需求 )
略微调整
..\GPT_SoVITS\text\english.py
中内容,将 text_normalize 函数中的部分处理移入新增的en_normalization\expend.py
中。从 DDL 中抽出身来了终于hh,已经同步了期间的更新,应该没有冲突