Skip to content

Jarmahent/article-2-voice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published