NetHyTech-HindiTTS


NameNetHyTech-HindiTTS JSON
Version 1.1 PyPI version JSON
download
home_pagehttps://github.com/AnubhavChaturvedi-GitHub/NetHyTech-TTS.git
SummaryText To Speech In British Brian Voice
upload_time2024-05-03 17:13:24
maintainerNone
docs_urlNone
authorAnubhav Chaturvedi
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Text-to-Speech (TTS) using Edge TTS and Pygame

This Python script provides a simple implementation of text-to-speech (TTS) using the Edge TTS API and Pygame library for audio playback.

## Requirements

- Python 3.11.4
- edge_tts module (for Edge TTS API)
- Pygame library

## Installation

1. Install the required modules:
    ```bash
    pip install NetHyTech-HindiTTS
    ```

## Usage

The `Speak` function in the script takes the text input and an optional output file path as arguments. If no output file path is provided, it saves the audio file as "speech.mp3" in the current directory.

Example usage:
```python
from NetHyTech_HindiTTS import Speak

text = "Hello, how are you?"
Speak(text, "output.mp3")  # Save audio to output.mp3
```

## Functionality

- The `Speak` function converts the input text to speech using the Edge TTS API and saves it to the specified output file.
- If no output file is provided, it saves the audio as "speech.mp3" in the current directory.
- The script handles the asynchronous operation using asyncio for better performance.
- Pygame is utilized for playing the generated audio file.

## Additional Notes

- Ensure you have valid credentials for the Edge TTS API and replace the `VOICE` variable with the desired voice.
- The `remove_file` function handles the removal of temporary files after audio playback.
- Error handling is implemented to catch any exceptions during the process.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AnubhavChaturvedi-GitHub/NetHyTech-TTS.git",
    "name": "NetHyTech-HindiTTS",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Anubhav Chaturvedi",
    "author_email": "chaturvedianubhav520@example.com",
    "download_url": null,
    "platform": null,
    "description": "# Text-to-Speech (TTS) using Edge TTS and Pygame\r\n\r\nThis Python script provides a simple implementation of text-to-speech (TTS) using the Edge TTS API and Pygame library for audio playback.\r\n\r\n## Requirements\r\n\r\n- Python 3.11.4\r\n- edge_tts module (for Edge TTS API)\r\n- Pygame library\r\n\r\n## Installation\r\n\r\n1. Install the required modules:\r\n    ```bash\r\n    pip install NetHyTech-HindiTTS\r\n    ```\r\n\r\n## Usage\r\n\r\nThe `Speak` function in the script takes the text input and an optional output file path as arguments. If no output file path is provided, it saves the audio file as \"speech.mp3\" in the current directory.\r\n\r\nExample usage:\r\n```python\r\nfrom NetHyTech_HindiTTS import Speak\r\n\r\ntext = \"Hello, how are you?\"\r\nSpeak(text, \"output.mp3\")  # Save audio to output.mp3\r\n```\r\n\r\n## Functionality\r\n\r\n- The `Speak` function converts the input text to speech using the Edge TTS API and saves it to the specified output file.\r\n- If no output file is provided, it saves the audio as \"speech.mp3\" in the current directory.\r\n- The script handles the asynchronous operation using asyncio for better performance.\r\n- Pygame is utilized for playing the generated audio file.\r\n\r\n## Additional Notes\r\n\r\n- Ensure you have valid credentials for the Edge TTS API and replace the `VOICE` variable with the desired voice.\r\n- The `remove_file` function handles the removal of temporary files after audio playback.\r\n- Error handling is implemented to catch any exceptions during the process.\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Text To Speech In British Brian Voice",
    "version": "1.1",
    "project_urls": {
        "Demo Video": "https://www.youtube.com/channel/UC7YDMgu0dMRZotLMuB3oEcQ",
        "Homepage": "https://github.com/AnubhavChaturvedi-GitHub/NetHyTech-TTS.git",
        "Source Code": "https://github.com/AnubhavChaturvedi-GitHub/NetHyTech-TTS.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3291e81cd24d5f9f96beb36e7fceb5e025a164564f9a2470e549a46f3661b035",
                "md5": "2f6eb71d0a5a196f3f1a47e1d5090dc9",
                "sha256": "8595f09bec7142ba64691cc671a394327dc4e126de8440775ac667c6f8b0368f"
            },
            "downloads": -1,
            "filename": "NetHyTech_HindiTTS-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f6eb71d0a5a196f3f1a47e1d5090dc9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3100,
            "upload_time": "2024-05-03T17:13:24",
            "upload_time_iso_8601": "2024-05-03T17:13:24.913235Z",
            "url": "https://files.pythonhosted.org/packages/32/91/e81cd24d5f9f96beb36e7fceb5e025a164564f9a2470e549a46f3661b035/NetHyTech_HindiTTS-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-03 17:13:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AnubhavChaturvedi-GitHub",
    "github_project": "NetHyTech-TTS",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nethytech-hinditts"
}
        
Elapsed time: 0.77015s