https://github.com/meqdaddev/articles-text-to-speech
Convert the text of articles to speech using nltk, newspaper and gTTS with Python.
https://github.com/meqdaddev/articles-text-to-speech
gtts natural-language-processing newspaper newspaper-crawler newspaper3k nlp nlp-machine-learning nltk nltk-library nltk-python python python3
Last synced: 6 months ago
JSON representation
Convert the text of articles to speech using nltk, newspaper and gTTS with Python.
- Host: GitHub
- URL: https://github.com/meqdaddev/articles-text-to-speech
- Owner: MeqdadDev
- License: mit
- Created: 2020-03-14T20:27:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T21:27:07.000Z (over 5 years ago)
- Last Synced: 2024-10-12T11:15:14.373Z (about 1 year ago)
- Topics: gtts, natural-language-processing, newspaper, newspaper-crawler, newspaper3k, nlp, nlp-machine-learning, nltk, nltk-library, nltk-python, python, python3
- Language: Python
- Homepage:
- Size: 1.07 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Articles text to Speech

_By: Meqdad Darweesh_
Convert the text of articles to speech using nltk, newspaper and gTTS with Python.
## What I did?
In this [code](text_to_speech.py), I've used Python with multiple libraries:
### nltk
_Natural Language Toolkit_, visit: https://www.nltk.org/### gTTS
_Google Text-to-Speech_, a Python library and CLI tool to interface with Google Translate's text-to-speech API.
For more details, visit: https://gtts.readthedocs.io/en/latest/### newspaper
_newspaper library_, visit: https://newspaper.readthedocs.io/en/latest/### Output sample:
In this code example, I've used this article:
[Coronavirus: How can AI help fight the pandemic?](https://www.bbc.com/news/technology-51851292) from BBC News.```
First 250 character of the article:
Image copyright Getty Images Image caption There is growing fear about the spread of the virusExecutives from Amazon, Google, Microsoft, Apple and Facebook met officials at Downing Street on Wednesday to discuss their role in
the coronavirus crisis
```
You can check the audio file as a result of this execution._Meqdad_
### License
[MIT](LICENSE)