|
|
我有一个复读软件,它可以生成句库,句库是一个个的mp3文件,这些mp3文件都是像这样命名的(我列举二组例子来说明),这个软件按lrc歌词文件的断点,用lrc句子的文本加上句子序号和复制序号,生成相应的mp3文件组,所有文件都在一个文件夹下。
这个软件命名和生成的规则是这样的:
所有文件在同一文件夹下
这个软件按组生成mp3文件,每组包含若干个句子
每个文件的命名规则是这样的:句子序号1(红色部分)+句子主体+句子序号2(红色部分)
例子一组:
01As Valentine’s Day approaches, lovers everywhere are preparing for the most romantic day of the year 0.mp3
01As Valentine’s Day approaches, lovers everywhere are preparing for the most romantic day of the year 1.mp3
01As Valentine’s Day approaches, lovers everywhere are preparing for the most romantic day of the year 2.mp3
01As Valentine’s Day approaches, lovers everywhere are preparing for the most romantic day of the year 3.mp3
01As Valentine’s Day approaches, lovers everywhere are preparing for the most romantic day of the year 4.mp3
例子二组:
14'This is a private conversation!'0.mp3
14'This is a private conversation!'1.mp3
14'This is a private conversation!'2.mp3
14'This is a private conversation!'3.mp3
14'This is a private conversation!'4.mp3
我希望求一个批处理:
使得每组句子无论有几个都好,经过处理后,
(1)每组句子都只剩下一个句子(其余的都被删掉了),红色部分的句子序号都被去掉。
(2)注意到这个软件软件有一个bug,在句子序号2中,有些是空一格后再加(如例子组一),有些却不是(如例子组二),我想在,经过处理后,扩展名前面的空格都被去掉。
(3)这个软件有一个bug,转换后会把原文最后的句号去掉,所以要在表示扩展名的一点再加一点表示句号。
即是说最后,这两组文件会变为:
As Valentine’s Day approaches, lovers everywhere are preparing for the most romantic day of the year..mp3
(注意到扩展名前空格没有了,也加上一个句号了)
'This is a private conversation!'..mp3
(注意到扩展名前空格没有了,也加上一个句号了) |
评分
-
查看全部评分
|