LokerL / tts-vue

🎤 微软语音合成工具,使用 Electron + Vue + ElementPlus + Vite 构建。
https://tts-doc.loker.vip/home.html
MIT License
5.83k stars 839 forks source link

批量功能能否实现每行作为一个导出文件 #142

Open hzinchengdu opened 1 year ago

hzinchengdu commented 1 year ago

你好开发者,批量功能能否实现每行作为一个导出文件。 比如勾选“分段导出”后,一个文本中的单词或句子(以换行为一段)会逐条导出为音频。我有制作anki卡片的需求,估计也有外语学习者以每段句子作跟读和精听的需求,如果能实现就好了。

比如一个txt的列表为: grit great beach bitch The main goal of this chapter is to introduce the notion of a worldview. As with most of the topics we will explore in this book, the notion of a worldview turns out to be substantially more complex than it at first appears.

导出时以每段作为序号,过长的句子省略,比如:

  1. grit.mp3
  2. great.mp3
  3. beach.mp3
  4. bitch.mp3
  5. The main goal of this chapter….mp3
haauto commented 1 year ago

A good suggestion!!! That's what I want.

LokerL commented 1 year ago

下个版本我会尝试增加此功能。

  1. 导出的文件标题为文本首行(有最大字符限制)、
  2. 长文本按换行拆分为多个文件

In the next version, I will try to add this functionality:

  1. The exported file will have the title based on the first line of the text (with a maximum character limit).
  2. Long texts will be split into multiple files based on line breaks.