Auto-generating Audio Like HackerNoon In Pythonby@h3avren
322 reads
322 reads

Auto-generating Audio Like HackerNoon In Python

by Ajay Singh Rana3mJanuary 18th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

import pyttsx3 engine = pyttsx3.init() engine.setProperty('rate',125) text = '''And I have been seeing an audio file embedded with each article on the website which is auto-generated. It’s kinda cool. At least I think it is.''' engine.save_to_file(text,'text.mp3') # this command queues the text to be saved as an audio file engine.runAndWait()

Company Mentioned

Mention Thumbnail
featured image - Auto-generating Audio Like HackerNoon In Python
Ajay Singh Rana HackerNoon profile picture
Ajay Singh Rana

Ajay Singh Rana

@h3avren

Dreaming with Python... Under a sky in India...

About @h3avren
LEARN MORE ABOUT @H3AVREN'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Ajay Singh Rana HackerNoon profile picture
Ajay Singh Rana@h3avren
Dreaming with Python... Under a sky in India...

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!