0.3.4 • Published 4 years ago

article-2-voice v0.3.4

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

Article-2-Voice

A command line tool that uses the Google text-to-speech api to convert an article from url to an mp3 audio file.


How to Install:

  1. npm install article-2-voice

Boom thats it.


How to use:

Prerequisites:

  • Create a google text to speech project, get your project id and get your text-to-speech json credentials

Parameters to use when running Article-2-voice

-u or --url The url of the article you want to convert -c or --config Where the json config file from google when your create your text-to-speech project is -o or --output where the output mp3 file will go when the article is converted -i or --id the project id from Google API -m or --exportmeta Export meta data from the article extraction such as title, content, and publish date


Example of what it should look like in practice:

a2v -c ./config.json -u "https://www.bleepingcomputer.com/news/security/severe-flaws-in-kubernetes-expose-all-servers-to-dos-attacks/" -o /Users/kevinhernandez/Desktop -i [project Id here] -m

Output log:

Extracting...
Stripping...
Chunking...
Converting...
Writing...
Done!
0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.2.3

4 years ago

0.3.1

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.9

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago