Coder Social home page Coder Social logo

oli_talk's Introduction

Text-to-Speech Application

Overview

This Text-to-Speech application allows users to convert written text into speech. It provides two modes of operation:

  1. GUI Mode: A simple graphical user interface where users can type text into a box and have it read aloud by clicking a "Talk" button.
  2. Command Line Mode: Allows users to input text directly through the command line for the application to speak.

Installation

Prerequisites

  • Python 3.x
  • pip (Python package installer)

Setup Virtual Environment

It's recommended to run this application within a Python virtual environment. This helps in managing dependencies and keeping your system tidy. Here's how you can set it up:

  1. Create a Virtual Environment

    Navigate to the project directory in your terminal and run the following command to create a virtual environment named venv (you can name it anything you prefer):

python3 -m venv venv

Activate the Virtual Environment

source /venv/bin/activate

Install Dependencies

With the virtual environment activated, install the required dependencies using pip:

pip install pyttsx3

Usage

After installing the dependencies, you can run the application in either mode.

GUI Mode:

To launch the GUI, run the following command:

python main.py -gui

python main.py -gui

Command Line Mode:

To use the application from the command line, provide the text you want to be spoken using the -say flag:

python main.py -say "Hello, world!"

Make sure to replace script_name.py with the actual name of your Python script file. This formatted README can be placed directly into your Python script for easy reference and documentation. Let me know if you need any more assistance!

oli_talk's People

Contributors

patpragman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.