Skip to main content

Generates how it's made titles

Project description

How it's made

How the how it's made package is made

This package recursively generates a title for the show "How It's Made" for n iterations. It can be run from a terminal, in which case it will also read the title allowed.

cropped-700bd0ce-3f1c-4cd3-a2f2-2931567a425a-HowItsMade_S26_Episode16-740x416

Requirements

How it's made requires two packages, gTTS and pyttsx3, which can be installed using:

pip3 install gTTS pyttsx3

Example

The command below will print, and then read aloud "How It's Made."

python3 how_its_made.py 1

The module can also be called within code, where the depth and the "it" can be customised.

how = how_its_made(3, "a chair")

# This will print "How How How A Chair's Made Is Made Is Made"
print(how.title)

# This will then create a 'how_its_made.mp3' file using Google's Text to Speech package
how.text_to_speech(delete_sound_file=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

how_its_made-1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

how_its_made-1.0-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page