ttastromech


Namettastromech JSON
Version 0.6.1 PyPI version JSON
download
home_pagehttps://pypi.org/project/ttastromech/
Summarypython library transform text strings into Astromech (like R2D2) sounds
upload_time2024-11-23 20:15:20
maintainerNone
docs_urlNone
authorwalchko
requires_python>=3.8
licenseMIT
keywords r2d2 tts star wars droid astromech
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/ttastromech/master/docs/pics/r2.gif
	:target: https://github.com/MomsFriendlyRobotCompany/ttastromech

Text to Astromech
========================

.. image:: https://img.shields.io/pypi/l/ttastromech.svg
	:target: https://github.com/MomsFriendlyRobotCompany/ttastromech
.. image:: https://img.shields.io/pypi/pyversions/ttastromech.svg
	:target: https://github.com/MomsFriendlyRobotCompany/ttastromech
.. image:: https://img.shields.io/pypi/wheel/ttastromech.svg
	:target: https://github.com/MomsFriendlyRobotCompany/ttastromech
.. image:: https://img.shields.io/pypi/v/ttastromech.svg
	:target: https://github.com/MomsFriendlyRobotCompany/ttastromech

This was originally created by `Hugo SCHOCH <https://github.com/hug33k/PyTalk-R2D2>`_.
I just packaged it on pypi and use it for an R2D2 project I am working on.

It works by assigning an R2-D2 sound to each letter of the alphabet, then, when you pass
it a string, it makes sounds like an astromech. Currently it only supports Linux and
macOS.

========= ================
OS        Audio Program
========= ================
macOS     ``afplay``
linux     ``play`` from libsox
linux     ``aplay`` from alsa
========= ================

Install
----------

The preferred method of installation is::

	pip install ttastromech

Usage
-------

.. code-block:: python

	from ttastromech import TTAstromech
	import time


	if __name__ == '__main__':
		r2 = TTAstromech()

		try:
			r2.run()  # make random astromech sounds by feeding it random strings of letters
			time.sleep(2)
		except KeyboardInterrupt:
			print('bye ...')

Or::

	astromech.py "my god, its full of stars ... oh wait, the wrong movie"

MIT License
============

**Copyright (c) 2015 SCHOCH Hugo**

**Copyright (c) 2017 Kevin J. Walchko**

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/ttastromech/",
    "name": "ttastromech",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "r2d2, tts, star wars, droid, astromech",
    "author": "walchko",
    "author_email": "walchko@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/0d/db/79253fca383a5b5c3139c9fa4a361a4e1a027100fa2975823b3d61dbcf37/ttastromech-0.6.1.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/ttastromech/master/docs/pics/r2.gif\n\t:target: https://github.com/MomsFriendlyRobotCompany/ttastromech\n\nText to Astromech\n========================\n\n.. image:: https://img.shields.io/pypi/l/ttastromech.svg\n\t:target: https://github.com/MomsFriendlyRobotCompany/ttastromech\n.. image:: https://img.shields.io/pypi/pyversions/ttastromech.svg\n\t:target: https://github.com/MomsFriendlyRobotCompany/ttastromech\n.. image:: https://img.shields.io/pypi/wheel/ttastromech.svg\n\t:target: https://github.com/MomsFriendlyRobotCompany/ttastromech\n.. image:: https://img.shields.io/pypi/v/ttastromech.svg\n\t:target: https://github.com/MomsFriendlyRobotCompany/ttastromech\n\nThis was originally created by `Hugo SCHOCH <https://github.com/hug33k/PyTalk-R2D2>`_.\nI just packaged it on pypi and use it for an R2D2 project I am working on.\n\nIt works by assigning an R2-D2 sound to each letter of the alphabet, then, when you pass\nit a string, it makes sounds like an astromech. Currently it only supports Linux and\nmacOS.\n\n========= ================\nOS        Audio Program\n========= ================\nmacOS     ``afplay``\nlinux     ``play`` from libsox\nlinux     ``aplay`` from alsa\n========= ================\n\nInstall\n----------\n\nThe preferred method of installation is::\n\n\tpip install ttastromech\n\nUsage\n-------\n\n.. code-block:: python\n\n\tfrom ttastromech import TTAstromech\n\timport time\n\n\n\tif __name__ == '__main__':\n\t\tr2 = TTAstromech()\n\n\t\ttry:\n\t\t\tr2.run()  # make random astromech sounds by feeding it random strings of letters\n\t\t\ttime.sleep(2)\n\t\texcept KeyboardInterrupt:\n\t\t\tprint('bye ...')\n\nOr::\n\n\tastromech.py \"my god, its full of stars ... oh wait, the wrong movie\"\n\nMIT License\n============\n\n**Copyright (c) 2015 SCHOCH Hugo**\n\n**Copyright (c) 2017 Kevin J. Walchko**\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "python library transform text strings into Astromech (like R2D2) sounds",
    "version": "0.6.1",
    "project_urls": {
        "Homepage": "https://pypi.org/project/ttastromech/",
        "Repository": "http://github.com/MomsFriendlyRobotCompany/ttastromech"
    },
    "split_keywords": [
        "r2d2",
        " tts",
        " star wars",
        " droid",
        " astromech"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "20c2f2c8ff016ed7a3753047e58fb1e9117c1e74bc803ad3d99846ce23a524a2",
                "md5": "3051a4dd1a52ddad348244cb6237e0bc",
                "sha256": "226ebce7be3c24f75e7dbee14447c0a4401354fe86357a8923e4b32a9184402b"
            },
            "downloads": -1,
            "filename": "ttastromech-0.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3051a4dd1a52ddad348244cb6237e0bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 313162,
            "upload_time": "2024-11-23T20:15:19",
            "upload_time_iso_8601": "2024-11-23T20:15:19.094186Z",
            "url": "https://files.pythonhosted.org/packages/20/c2/f2c8ff016ed7a3753047e58fb1e9117c1e74bc803ad3d99846ce23a524a2/ttastromech-0.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ddb79253fca383a5b5c3139c9fa4a361a4e1a027100fa2975823b3d61dbcf37",
                "md5": "92a884a0a1b75c861553f3e887170bc6",
                "sha256": "e20707144812d811d86e8b388479c2c97a19f61327e1ad5422932ae747749a61"
            },
            "downloads": -1,
            "filename": "ttastromech-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "92a884a0a1b75c861553f3e887170bc6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 308523,
            "upload_time": "2024-11-23T20:15:20",
            "upload_time_iso_8601": "2024-11-23T20:15:20.556630Z",
            "url": "https://files.pythonhosted.org/packages/0d/db/79253fca383a5b5c3139c9fa4a361a4e1a027100fa2975823b3d61dbcf37/ttastromech-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-23 20:15:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MomsFriendlyRobotCompany",
    "github_project": "ttastromech",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ttastromech"
}
        
Elapsed time: 1.55673s