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:
npm install article-2-voice
Boom thats it.
How to use:
- 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
--url The url of the article you want to convert
--config Where the json config file from google when your create your text-to-speech project is
--output where the output mp3 file will go when the article is converted
--id the project id from Google API
--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
Extracting... Stripping... Chunking... Converting... Writing... Done!