{ "info": { "author": "Will Breaden Madden", "author_email": "wbm@protonmail.ch", "bugtrack_url": null, "classifiers": [], "description": "deep throat\n===========\n\ncredits\n=======\n\n- name by Liam Moore\n\nintroduction\n============\n\nDeep throat is a Python program that can synthesize speech. A simple\napproach to unrestricted text-to-speech translation uses a small set of\nletter-to-sound rules, each rule specifying a pronunciation for one or\nmore letters in some context. Deep throat features a small set of\nletter-to-sound rules that translate English text to phonemes producing\nusably accurate pronunciations of words. Deep throat can produce sounds\nby combining stored representations of phoneme sounds in accordance with\ngenerated phoneme translations. It can output these sounds to computer\nsound hardware using PortAudio and it can save them to sound file.\n\nDeep throat can accept text as a command line option argument, from a\npipe and it can be set into an interactive mode.\n\nDeep throat can be set to read the date and time in various ways, such\nas in a loop. It can translate text to phonemes, it can translate\nspecified phonemes to sounds and it can translate numbers to English\ntext. It can engage visual and sound analyses.\n\nsetup\n=====\n\n.. code:: bash\n\n sudo apt-get -y install libasound-dev\n sudo apt-get -y install portaudio\n sudo apt-get install python-pyaudio\n sudo apt-get install python3-pyaudio\n sudo pip install deep_throat\n sudo python -m nltk.downloader all\n\nphonemes\n========\n\nThere are data for 36 phonemes defined in deep throat:\n\n+----------------+\n| **phonemes** |\n+================+\n| space |\n+----------------+\n| A |\n+----------------+\n| B |\n+----------------+\n| D |\n+----------------+\n| F |\n+----------------+\n| G |\n+----------------+\n| H |\n+----------------+\n| J |\n+----------------+\n| K |\n+----------------+\n| L |\n+----------------+\n| M |\n+----------------+\n| N |\n+----------------+\n| P |\n+----------------+\n| R |\n+----------------+\n| S |\n+----------------+\n| T |\n+----------------+\n| U |\n+----------------+\n| V |\n+----------------+\n| W |\n+----------------+\n| Y |\n+----------------+\n| Z |\n+----------------+\n| AE |\n+----------------+\n| AH |\n+----------------+\n| AW |\n+----------------+\n| CH |\n+----------------+\n| EE |\n+----------------+\n| EH |\n+----------------+\n| IH |\n+----------------+\n| OH |\n+----------------+\n| OO |\n+----------------+\n| SH |\n+----------------+\n| TZ |\n+----------------+\n| TH |\n+----------------+\n| UH |\n+----------------+\n| WH |\n+----------------+\n| ZH |\n+----------------+\n\nletter-to-sound rules\n=====================\n\nDeep throat letter-to-sound rules rules are defined in strings in a form\neasy for humans to read and write. Rules have the form ``A/B/C/D``: the\ncharacter string occurring with left context ``A`` and right context\n``C`` gets the pronunciation ``D``. Some simple example rules are as\nfollows:\n\n::\n\n ARE/ / /AH-R\n FIRST/ //F-U-R-S-T\n COMPUTER/ //K-AH-M-P-Y-OO-T-OH-R\n SHITFACED/ //S-H-IH-T-F-A-S-D\"\n\nusage examples\n==============\n\n+----------------------------------------------------+-----------------------+\n| **command** | **comment** |\n+====================================================+=======================+\n| ``deep_throat.py --help`` | help with options and |\n| | arguments |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --text=\"hello world\"`` | speak specified text |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --timeloop`` | speak time in a loop |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --infile=\"text.txt\"`` | speak input text file |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --text=\"hello world\" --savetowave | save text to WAVE |\n| file --outfile=\"test.wav\"`` | file |\n+----------------------------------------------------+-----------------------+\n| ``echo \"test\" | deep_throat.py`` | speak pipe text |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --interactive`` | engage interactive |\n| | mode |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --analysisvisual`` | engage visual |\n| | analysis mode |\n+----------------------------------------------------+-----------------------+\n| ``deep_throat.py --analysissound`` | engage sound analysis |\n| | mode |\n+----------------------------------------------------+-----------------------+\n\nvisual and sound analyses\n=========================\n\nThe visual analysis mode saves histograms of all of the phonemes, saves\nmultigraph comparisons of phonemes of different resolutions and saves\ngraph comparisons of phonemes data and fast Fourier transform\nsynthesized phonemes data. The sound analysis mode speaks the 50 most\nfrequent Brown Corpus words.\n\n.. figure:: histogram_phoneme_S.png\n :alt: \n\n.. figure:: resolutions_phoneme_S.png\n :alt: \n\n.. figure:: synthetic_versus_data_S.png\n :alt: \n\nfuture\n======\n\nUnder consideration is improvement of rules interpretations, phonemes\ndata of higher resolution, improvements in efficiency, and system checks\n(such as PortAudio checks).\n\nreferences\n==========\n\n- H. S. Elovitz, R. W. Johnson, A. McHugh and J. E. Shore, Automatic\n Translation of English Text to Phonetics by Means of Letter-to-Sound\n Rules, Naval Research Laboratory Report 7948 (21 January 1976)\n- H. S. Elovitz, R. Johnson, A. McHugh and J. Shore, Letter-to-Sound\n Rules for Automatic Translation of English Text to Phonetics, IEEE\n Transactions on Acoustics, Speech, and Signal Processing, Volume.\n ASSP-24, Number 6 (December 1976)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wdbm/deep_throat", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "deep_throat", "package_url": "https://pypi.org/project/deep_throat/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/deep_throat/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wdbm/deep_throat" }, "release_url": "https://pypi.org/project/deep_throat/2017.2.5.145/", "requires_dist": null, "requires_python": null, "summary": "speech", "version": "2017.2.5.145" }, "last_serial": 2619838, "releases": { "2016.11.25.121": [ { "comment_text": "", "digests": { "md5": "e4570577eac0d3c9f0ade917a5897227", "sha256": "7dfc3d1a3d6f196a872404a30595529fd71fcb130ecb20e53567b4370f71bc69" }, "downloads": -1, "filename": "deep_throat-2016.11.25.121.tar.gz", "has_sig": false, "md5_digest": "e4570577eac0d3c9f0ade917a5897227", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46418, "upload_time": "2016-11-25T01:23:07", "url": "https://files.pythonhosted.org/packages/0c/17/6e0e9d2fd8b7163b1c57ab8005172e66fbbefe0a205db1d41937d7f9e8f5/deep_throat-2016.11.25.121.tar.gz" } ], "2016.11.25.50": [ { "comment_text": "", "digests": { "md5": "eb52ce62b02eb24c70a5993d514c7016", "sha256": "514dab6bb24878b52ffe3b4cc081830603d2537a88fa20d55da62ade8a8a181c" }, "downloads": -1, "filename": "deep_throat-2016.11.25.50.tar.gz", "has_sig": false, "md5_digest": "eb52ce62b02eb24c70a5993d514c7016", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46439, "upload_time": "2016-11-25T01:18:19", "url": "https://files.pythonhosted.org/packages/b4/37/bf1f1477285c8217695945102d2c4f5c1638283bf5029b5e151810c0a85b/deep_throat-2016.11.25.50.tar.gz" } ], "2016.11.27.1131": [ { "comment_text": "", "digests": { "md5": "dcd58ae1038f79c750e65aff3354f227", "sha256": "5e26248f1146dc711a4204fbe7c7ef152ffbe3d20e3bce5a8c8865a57fce9eb2" }, "downloads": -1, "filename": "deep_throat-2016.11.27.1131.tar.gz", "has_sig": false, "md5_digest": "dcd58ae1038f79c750e65aff3354f227", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48260, "upload_time": "2016-11-27T11:40:54", "url": "https://files.pythonhosted.org/packages/49/db/fc69191c13f3a9f0df45fb3603eb8cded7e24508107eea9ea54d7406090c/deep_throat-2016.11.27.1131.tar.gz" } ], "2017.1.16.1628": [ { "comment_text": "", "digests": { "md5": "56f6e0b91238e147b06093eae9025e6b", "sha256": "d1ff215e05efca50678e5f1ff0b961d5de09771f88a26384060fec868ba70db9" }, "downloads": -1, "filename": "deep_throat-2017.1.16.1628.tar.gz", "has_sig": false, "md5_digest": "56f6e0b91238e147b06093eae9025e6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46599, "upload_time": "2017-01-16T16:38:18", "url": "https://files.pythonhosted.org/packages/dc/f5/f011ea51657c84dabb2076e9f58af214926629336f918981bdc90a3da8c3/deep_throat-2017.1.16.1628.tar.gz" } ], "2017.1.16.1643": [ { "comment_text": "", "digests": { "md5": "75ae95bebd125e9a308397ff6690f7bb", "sha256": "63f89a4e0e608f64e9879986ffd99f1fb44fb790521caf617e8af9310ad0e2d1" }, "downloads": -1, "filename": "deep_throat-2017.1.16.1643.tar.gz", "has_sig": false, "md5_digest": "75ae95bebd125e9a308397ff6690f7bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46597, "upload_time": "2017-01-16T16:44:32", "url": "https://files.pythonhosted.org/packages/92/78/255f51ee11b38cc76c37281f4168975dee86e932f64713f5c7a6b190fec2/deep_throat-2017.1.16.1643.tar.gz" } ], "2017.2.5.145": [ { "comment_text": "", "digests": { "md5": "3535d302bd9d729284fd275d7f6399d3", "sha256": "51a445a9c1dfd92eafc5d0bec4a928f9d82d32b9514a330625f4d140932f5ed4" }, "downloads": -1, "filename": "deep_throat-2017.2.5.145.tar.gz", "has_sig": false, "md5_digest": "3535d302bd9d729284fd275d7f6399d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46655, "upload_time": "2017-02-05T01:47:14", "url": "https://files.pythonhosted.org/packages/6a/fc/5e5e106ffb6efe375f798e9e7c0428593dc74a8b67c88ace46e33532b15d/deep_throat-2017.2.5.145.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3535d302bd9d729284fd275d7f6399d3", "sha256": "51a445a9c1dfd92eafc5d0bec4a928f9d82d32b9514a330625f4d140932f5ed4" }, "downloads": -1, "filename": "deep_throat-2017.2.5.145.tar.gz", "has_sig": false, "md5_digest": "3535d302bd9d729284fd275d7f6399d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46655, "upload_time": "2017-02-05T01:47:14", "url": "https://files.pythonhosted.org/packages/6a/fc/5e5e106ffb6efe375f798e9e7c0428593dc74a8b67c88ace46e33532b15d/deep_throat-2017.2.5.145.tar.gz" } ] }