项目作者: anverbogatov

项目描述 :
Simple Java based console tool that transforms your text files to audio files.
高级语言: Java
项目地址: git://github.com/anverbogatov/text-to-audio-tool.git
创建时间: 2021-04-02T06:10:13Z
项目社区:https://github.com/anverbogatov/text-to-audio-tool

开源协议:Apache License 2.0

下载


Maven

🚀 text-to-audio-tool

Simple Java based console tool that transforms your text files to audio files.

💻 System Requirements

  • ☕️ Java 11 runtime environment installed
  • 🏗 Maven (http://maven.apache.org) must be installed
  • 👨‍💻 macOS device (the tool uses internal operating system’s feature that transforms textual data to audio data)

👷‍♂️ How to build

⚠️ There are no dedicataed releases available now. So, the only way to use the tool is to build it using guide below. If you are not scared - then let's go! 🤘
1) Open Terminal application and navigate to project’s folder
2) Use following command to build jar file mvn clean package. That command will build the tool for you and output where to find jar file.
3) Navigate to folder with the jar file

🕹 How to use

The usage of the tool is pretty simple. Just use -help flag when you execute your jar file and check what other options you have.

🎓 Examples

Use following command to see available options:

  1. java -jar text-to-audio-tool-0.1-SNAPSHOT.jar -help

Use following command to transform text file to an audio file:

  1. java -jar text-to-audio-tool-0.1-SNAPSHOT.jar -f /Users/anverbogatov/Desktop/temp/text.txt

where

  • temp.txt - is a file with written text for which we want to have an audio

As the result *.aiff audio files will be generated and saved near your textual file.

🚧 How to write right textual file?

The tool support generation of multiple audio files out from *.txt & *.md files that have required file structure.

Use ### symbols to define new text block in your file. Add some text right after these symbols to name that text block.
That information will be used later during an audio files generation.

Then, start new line and write down your script that must be pronounced by machine voice.

That is it.

So, your file must follow following structure:

  1. ### [name of text block]
  2. [text to audio]
  3. ### [name of another text block]
  4. [text to audio]

And here is example:

  1. ### Introduction
  2. Hello dear comrades! Let's talk about Soviet Russia today.
  3. ### What is Soviet Russia?
  4. Soviet Russia is the greatest country in the World.
  5. ### Outro
  6. Let the Great Bear be with you my dear comrade!

As the result of the tool work you will have following files in the same folder where your textual file is located:

  1. 0-introduction.aiff
  2. 1-what-is-soviet-russia?.aiff
  3. 2-outro.aiff

📘 Where the tool can be useful?

Basically, it is up to you, my friend! 🤝

But me personally found that tool useful for video edit and production. When I need to do a voice over and I do not want to record myself or somebody else, I can use that tool for that.
Here is example of video I produced with the tool:

IMAGE ALT TEXT HERE