NetHyTech-DeepTTS


NameNetHyTech-DeepTTS JSON
Version 1.0 PyPI version JSON
download
home_pageNone
SummaryA Python package for text-to-speech conversion using DeepAI API.
upload_time2024-05-27 08:58:03
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.
            # Speech Synthesis with DeepAI API

This Python script uses the DeepAI API to convert text to speech and play the resulting audio. It allows you to choose from various voices provided by DeepAI.

## pip 

```python
from NetHyTech_DeepTTS import speak

speak("i dont know sir but i am felling not good today",l)

```

## Prerequisites

Before running the script, ensure you have the following installed:
- Python 3.11.4
- `playsound` library
- `requests` library

You can install the required libraries using pip:
```bash
pip install playsound requests
```

### Parameters

- `text` (str): The text you want to convert to speech.
- `model` (str, optional): The voice model to use. Defaults to "aura-luna-en".
- `filename` (str, optional): The name of the temporary file to save the audio. Defaults to "data.mp3".

### Voice Models

You can choose from the following voice models:
- `"aura-asteria-en"`: Sophia (Female US English)
- `"aura-luna-en"`: Emily (Female US English)
- `"aura-stella-en"`: Rachel (Female US English)
- `"aura-athena-en"`: Eliza (Female UK English)
- `"aura-hera-en"`: Pam (Female US English)
- `"aura-orion-en"`: Kevin (Male US English)
- `"aura-arcas-en"`: Jeff (Male US English)
- `"aura-perseus-en"`: Alex (Male US English)
- `"aura-angus-en"`: Rory (Male Irish English)
- `"aura-orpheus-en"`: John (Male US English)
- `"aura-helios-en"`: Pete (Male UK English)
- `"aura-zeus-en"`: James (Male US English)

### Example

Here's an example of how to use the `speak` function:

```python
speak("i dont know sir but i am felling not good today",l) 
```

This will convert the text "Hello, this is a test message." to speech using the "aura-luna-en" (Emily, Female US English) voice model and play the resulting audio.

## Notes

- Ensure you have an active internet connection as the script makes a request to the DeepAI API.
- Make sure to handle API keys securely if required by the DeepAI API for authentication.
- The temporary audio file is deleted after playing to keep your directory clean.

## Troubleshooting

- If you encounter an error, check the status code and response text returned by the API for more details.
- Ensure the `playsound` and `requests` libraries are properly installed.


## Created by NetHyTech (Anubhav Chaturvedi)
"Author of [NetHyTech_DeepTTS] is Anubhav Chaturvedi"
"Youtube : https://youtube.com//@nethytech "
## License

This script is provided as-is without any warranty. Use at your own risk.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "NetHyTech-DeepTTS",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Anubhav Chaturvedi",
    "author_email": "chaturvedianubhav520@example.com",
    "download_url": "https://files.pythonhosted.org/packages/57/f4/67788a6f0ebe94ce7625845253980c4ac26b3a8fd7d2325b7c58596a26b1/NetHyTech-DeepTTS-1.0.tar.gz",
    "platform": null,
    "description": "# Speech Synthesis with DeepAI API\r\n\r\nThis Python script uses the DeepAI API to convert text to speech and play the resulting audio. It allows you to choose from various voices provided by DeepAI.\r\n\r\n## pip \r\n\r\n```python\r\nfrom NetHyTech_DeepTTS import speak\r\n\r\nspeak(\"i dont know sir but i am felling not good today\",l)\r\n\r\n```\r\n\r\n## Prerequisites\r\n\r\nBefore running the script, ensure you have the following installed:\r\n- Python 3.11.4\r\n- `playsound` library\r\n- `requests` library\r\n\r\nYou can install the required libraries using pip:\r\n```bash\r\npip install playsound requests\r\n```\r\n\r\n### Parameters\r\n\r\n- `text` (str): The text you want to convert to speech.\r\n- `model` (str, optional): The voice model to use. Defaults to \"aura-luna-en\".\r\n- `filename` (str, optional): The name of the temporary file to save the audio. Defaults to \"data.mp3\".\r\n\r\n### Voice Models\r\n\r\nYou can choose from the following voice models:\r\n- `\"aura-asteria-en\"`: Sophia (Female US English)\r\n- `\"aura-luna-en\"`: Emily (Female US English)\r\n- `\"aura-stella-en\"`: Rachel (Female US English)\r\n- `\"aura-athena-en\"`: Eliza (Female UK English)\r\n- `\"aura-hera-en\"`: Pam (Female US English)\r\n- `\"aura-orion-en\"`: Kevin (Male US English)\r\n- `\"aura-arcas-en\"`: Jeff (Male US English)\r\n- `\"aura-perseus-en\"`: Alex (Male US English)\r\n- `\"aura-angus-en\"`: Rory (Male Irish English)\r\n- `\"aura-orpheus-en\"`: John (Male US English)\r\n- `\"aura-helios-en\"`: Pete (Male UK English)\r\n- `\"aura-zeus-en\"`: James (Male US English)\r\n\r\n### Example\r\n\r\nHere's an example of how to use the `speak` function:\r\n\r\n```python\r\nspeak(\"i dont know sir but i am felling not good today\",l) \r\n```\r\n\r\nThis will convert the text \"Hello, this is a test message.\" to speech using the \"aura-luna-en\" (Emily, Female US English) voice model and play the resulting audio.\r\n\r\n## Notes\r\n\r\n- Ensure you have an active internet connection as the script makes a request to the DeepAI API.\r\n- Make sure to handle API keys securely if required by the DeepAI API for authentication.\r\n- The temporary audio file is deleted after playing to keep your directory clean.\r\n\r\n## Troubleshooting\r\n\r\n- If you encounter an error, check the status code and response text returned by the API for more details.\r\n- Ensure the `playsound` and `requests` libraries are properly installed.\r\n\r\n\r\n## Created by NetHyTech (Anubhav Chaturvedi)\r\n\"Author of [NetHyTech_DeepTTS] is Anubhav Chaturvedi\"\r\n\"Youtube : https://youtube.com//@nethytech \"\r\n## License\r\n\r\nThis script is provided as-is without any warranty. Use at your own risk.\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for text-to-speech conversion using DeepAI API.",
    "version": "1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c230b8a949bc8aba2757f048e1bb165e5e77e549771dbee1742bcae31ba07165",
                "md5": "535fc180bbad046bbd4a2061e1ac0f2f",
                "sha256": "05bb1ff6395365b5fa3221cfba6ea90314e78f75519605b5e6ef004144219960"
            },
            "downloads": -1,
            "filename": "NetHyTech_DeepTTS-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "535fc180bbad046bbd4a2061e1ac0f2f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3295,
            "upload_time": "2024-05-27T08:58:02",
            "upload_time_iso_8601": "2024-05-27T08:58:02.507806Z",
            "url": "https://files.pythonhosted.org/packages/c2/30/b8a949bc8aba2757f048e1bb165e5e77e549771dbee1742bcae31ba07165/NetHyTech_DeepTTS-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57f467788a6f0ebe94ce7625845253980c4ac26b3a8fd7d2325b7c58596a26b1",
                "md5": "f2b74d029179f44bfda2790a491c3f9c",
                "sha256": "b33d04bc5f4a4c9691f4f90814020c91869adf1b72fb2a14535d9195acd2bc55"
            },
            "downloads": -1,
            "filename": "NetHyTech-DeepTTS-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f2b74d029179f44bfda2790a491c3f9c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2989,
            "upload_time": "2024-05-27T08:58:03",
            "upload_time_iso_8601": "2024-05-27T08:58:03.810738Z",
            "url": "https://files.pythonhosted.org/packages/57/f4/67788a6f0ebe94ce7625845253980c4ac26b3a8fd7d2325b7c58596a26b1/NetHyTech-DeepTTS-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-27 08:58:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nethytech-deeptts"
}
        
Elapsed time: 0.24168s