Giter Site home page Giter Site logo

jaiswalchitransh / python-sapi-voice-for-windows Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23 KB

The Python script utilizes the win32com library to interact with the Windows Speech API (SAPI), prompting the user to input text to be spoken aloud. It continuously speaks the input text using the default system text-to-speech engine until the user inputs "-1" to terminate the program.

Python 100.00%
project python python-3 python3 sapi text-to-speech win32 win32com windows sapi-voice

python-sapi-voice-for-windows's Introduction

Python-SAPI-Voice-for-Windows

Table of Contents

Project Overview

This Python script utilizes the win32com library to access the Windows Speech API (SAPI) for text-to-speech functionality. It prompts the user to input words or phrases to be spoken aloud, continuously looping until the user enters "-1" to terminate the program. Upon receiving user input, it speaks the inputted text using the default text-to-speech engine provided by Windows, facilitating an interactive text-to-speech experience directly within the console environment.

Installation

This project requires Python 3.12.1 or later. To set up the project:

  1. Ensure Python 3.12.1 or a later version is installed on your system. You can download Python from python.org.

  2. Clone or download the repository to your local machine.

         git clone https://github.com/jaiswalchitransh/Python-SAPI-Voice-for-Windows.git
    
  3. Open the project in your preferred Python environment (e.g., IDE or terminal).

  4. Install win32com library using pip:

         pip install pypiwin32
    
  5. Run the script (speaks.py) and observe the output.

Usage

Run the script:

        python speaks.py
  • Enter words or phrases when prompted. Each input will be spoken aloud immediately.
  • To stop the program, type "-1" and press Enter.

Features

  • Text-to-Speech: Utilizes the Windows Speech API (SAPI) for converting text input to spoken output.
  • Interactive: Allows continuous input and speech output until terminated by the user.
  • Ease of Use: Provides a simple interface within the console environment for speech synthesis.

Contribution

I, Chitransh Jaiswal developed this Project Individually. I was responsible for all aspects of the project, including design, development, testing, and documentation. Contributions to improve the efficiency, readability, or functionality of the code are welcome. To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/your-feature).
  6. Create a new Pull Request.

Please ensure your contributions adhere to the coding standards and follow the existing style and structure.


Thank you for your interest in the Python SAPI Voice for Windows!

python-sapi-voice-for-windows's People

Contributors

jaiswalchitransh 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.