{ "info": { "author": "desbma", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Multimedia :: Sound/Audio :: Sound Synthesis", "Topic :: Multimedia :: Sound/Audio :: Speech", "Topic :: Utilities" ], "description": "Google Speech\n=============\n\n[![Latest version](https://img.shields.io/pypi/v/google_speech.svg?style=flat)](https://pypi.python.org/pypi/google_speech/)\n[![Tests status](https://img.shields.io/travis/desbma/GoogleSpeech/master.svg?label=tests&style=flat)](https://travis-ci.org/desbma/GoogleSpeech)\n[![Coverage](https://img.shields.io/coveralls/desbma/GoogleSpeech/master.svg?style=flat)](https://coveralls.io/github/desbma/GoogleSpeech?branch=master)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/google_speech.svg?style=flat)](https://pypi.python.org/pypi/google_speech/)\n[![License](https://img.shields.io/github/license/desbma/GoogleSpeech.svg?style=flat)](https://github.com/desbma/GoogleSpeech/blob/master/LICENSE)\n\nGoogle Speech is a simple multiplatform command line tool to read text using Google Translate TTS (Text To Speech) API.\n\nSee also [gTTS](https://github.com/pndurette/gTTS), for a similar but probably more advanced, and actively maintained projet.\n\n\n## Features\n\n* Support 64 different languages\n* Can read text without length limit\n* Can read text from standard input\n* Automatically pre download the next sentences while playing the current one to avoid long pauses between sentences\n* Automatically store downloaded data in a local cache\n* Can apply any [SoX effect](http://sox.sourceforge.net/sox.html#EFFECTS) to the audio while playing it\n\n\n## Installation\n\nGoogle Speech requires [Python](https://www.python.org/downloads/) >= 3.4.\n\n### From PyPI (with PIP)\n\n1. If you don't already have it, [install pip](https://pip.pypa.io/en/stable/installing/) for Python 3\n2. Install Google Speech: `pip3 install google_speech`\n3. Install [SoX](http://sox.sourceforge.net/), with MP3 support.\nOn Ubuntu and other Debian derivatives: `sudo apt-get install sox libsox-fmt-mp3`.\nWindows users can [download binaries on the SoX website](http://sourceforge.net/projects/sox/files/sox/), once installed you also need to copy [libmad DLL](http://ossbuild.googlecode.com/svn/trunk/Shared/Build/Windows/Win32/bin/libmad-0.dll) in the directory where you have installed SoX, and to add this directory to your PATH environment variable.\n\n### From source\n\n1. If you don't already have it, [install setuptools](https://pypi.python.org/pypi/setuptools#installation-instructions) for Python 3\n2. Clone this repository: `git clone https://github.com/desbma/GoogleSpeech`\n3. Install Google Speech: `python3 setup.py install`\n4. Install [SoX](http://sox.sourceforge.net/), with MP3 support.\nOn Ubuntu and other Debian derivatives: `sudo apt-get install sox libsox-fmt-mp3`.\nWindows users can [download binaries on the SoX website](http://sourceforge.net/projects/sox/files/sox/), once installed you also need to copy [libmad DLL](http://ossbuild.googlecode.com/svn/trunk/Shared/Build/Windows/Win32/bin/libmad-0.dll) in the directory where you have installed SoX, and to add this directory to your PATH environment variable.\n\n\n## Command line usage\n\nRun `google_speech -h` to get full command line reference.\n\n### Examples\n\n* Plane stall alarm:\n\n `google_speech -l en stall -e delay 0.5 overdrive 20 repeat 5 speed 0.9 gain -5`\n\n* Female robot voice (idea from [here](http://ubuntuforums.org/showthread.php?t=1813001&p=11090789#post11090789)):\n\n `google_speech -l en \"Hello, I am a stupid robot voice\" -e speed 0.9 overdrive 10 echo 0.8 0.7 6 0.7 echo 0.8 0.7 10 0.7 echo 0.8 0.7 12 0.7 echo 0.8 0.88 12 0.7 echo 0.8 0.88 30 0.7 echo 0.6 0.6 60 0.7`\n\n* Save to MP3 file :\n\t`google_speech -l en -o hello.mp3 \"Hello Google, greetings from France !\"`\n\nOn Unix systems, with Bash and pipes, you can be creative:\n\n* Bash greetings:\n\n `google_speech -l en \"Hello $USER, it is $(date)\"`\n\n* Countdown:\n\n `for i in {10..0}; do ( google_speech $i & ); sleep 1s; done`\n\n* Read a Chuck Norris joke:\n\n `curl -s http://api.icndb.com/jokes/random/ | python3 -c 'import html.parser, json, sys; print(html.parser.HTMLParser().unescape(json.load(sys.stdin)[\"value\"][\"joke\"]))' | google_speech -`\n\n\n## Python usage\n\nYou can use `google_speech` from any Python script or module.\n\nSample code:\n```\nfrom google_speech import Speech\n\n# say \"Hello World\"\ntext = \"Hello World\"\nlang = \"en\"\nspeech = Speech(text, lang)\nspeech.play()\n\n# you can also apply audio effects while playing (using SoX)\n# see http://sox.sourceforge.net/sox.html#EFFECTS for full effect documentation\nsox_effects = (\"speed\", \"1.5\")\nspeech.play(sox_effects)\n\n# save the speech to an MP3 file (no effect is applied)\nspeech.save(\"output.mp3\")\n\n```\n\n## License\n\n[LGPLv2](https://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/desbma/GoogleSpeech/archive/1.1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/desbma/GoogleSpeech", "keywords": "speech,audio,synthesis,voice,google,tts", "license": "", "maintainer": "", "maintainer_email": "", "name": "google-speech", "package_url": "https://pypi.org/project/google-speech/", "platform": "", "project_url": "https://pypi.org/project/google-speech/", "project_urls": { "Download": "https://github.com/desbma/GoogleSpeech/archive/1.1.0.tar.gz", "Homepage": "https://github.com/desbma/GoogleSpeech" }, "release_url": "https://pypi.org/project/google-speech/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Read text using Google Translate TTS API", "version": "1.1.0" }, "last_serial": 4609533, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c69ed4d3885fe398db6a3489d2cb1bc0", "sha256": "b725c8a8c215a50fbed5b2893ff9c7331d1fb5fc82c5c8d6b9da4659b87b2ae0" }, "downloads": -1, "filename": "google_speech-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c69ed4d3885fe398db6a3489d2cb1bc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9379, "upload_time": "2014-11-30T01:15:27", "url": "https://files.pythonhosted.org/packages/46/58/019a6e8170d800e06d55413d8e966421ad6adcec6a5ea2a1dd87184ae6b4/google_speech-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "40ebd083fce40db1e37d0108ed50c3f6", "sha256": "7143b2eeed08fa0ec34adbbd4439f433cf8bf8bc693c6c29eda7cefe3c779003" }, "downloads": -1, "filename": "google_speech-1.0.1.tar.gz", "has_sig": false, "md5_digest": "40ebd083fce40db1e37d0108ed50c3f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13437, "upload_time": "2014-11-30T13:38:48", "url": "https://files.pythonhosted.org/packages/5b/c4/e63832eaeefbd3f687052b442997e4125e4f14e66e0fa3290e75c138fa55/google_speech-1.0.1.tar.gz" } ], "1.0.10": [ { "comment_text": "", "digests": { "md5": "dd0f70e99216fa5d7438a7287569ceb3", "sha256": "5908e8a9102a89cae0c8be270c09edd2176a4f1a40daaf6eb5511d36b9713e97" }, "downloads": -1, "filename": "google_speech-1.0.10.tar.gz", "has_sig": false, "md5_digest": "dd0f70e99216fa5d7438a7287569ceb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17453, "upload_time": "2015-11-03T15:07:56", "url": "https://files.pythonhosted.org/packages/a9/f5/f4f53619f927c1728769f81f40f1d6a1d8a5fff555c534efb65dfaed6156/google_speech-1.0.10.tar.gz" } ], "1.0.12": [ { "comment_text": "", "digests": { "md5": "6fe84c0ac87bb383eebf8d023ac34aac", "sha256": "0e0ca61141fa758975263c03577c09ff386c570b0e9c887c746cc29411d40f8b" }, "downloads": -1, "filename": "google_speech-1.0.12.tar.gz", "has_sig": false, "md5_digest": "6fe84c0ac87bb383eebf8d023ac34aac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17961, "upload_time": "2016-01-17T13:47:55", "url": "https://files.pythonhosted.org/packages/f0/b9/da32ef833187a4404dcf6b55095e14fb5e50f9fcfa4eed28623ee00d7676/google_speech-1.0.12.tar.gz" } ], "1.0.13": [ { "comment_text": "", "digests": { "md5": "3b8f6224edc0760d002e5da13df6463a", "sha256": "9db857471a437f96b9456b9177ac779fef63c220e64d15a4f781b0eb9fae6db4" }, "downloads": -1, "filename": "google_speech-1.0.13.tar.gz", "has_sig": false, "md5_digest": "3b8f6224edc0760d002e5da13df6463a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17739, "upload_time": "2016-01-18T20:40:40", "url": "https://files.pythonhosted.org/packages/bf/7e/c71a5621b693c433e3794c93f2ba55914051725288bc1478de295ca4893d/google_speech-1.0.13.tar.gz" } ], "1.0.14": [ { "comment_text": "", "digests": { "md5": "dc55fc9839b2ff2dd895cc5e57c34d58", "sha256": "0315edd3865e923aa9c61e13deb2ec22bca68bb089ac34fb5426773c2cafecfc" }, "downloads": -1, "filename": "google_speech-1.0.14.tar.gz", "has_sig": false, "md5_digest": "dc55fc9839b2ff2dd895cc5e57c34d58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17143, "upload_time": "2016-02-04T01:00:41", "url": "https://files.pythonhosted.org/packages/8e/9d/9674b5255bec11240662d18b3359eaf3e3a11995bbe245d82fe6b5dfb35b/google_speech-1.0.14.tar.gz" } ], "1.0.15": [ { "comment_text": "", "digests": { "md5": "c609dfd602af059f6b59fdf7c063320e", "sha256": "6c22205cdd4cf1cf937eb7f1c89fdaf2edad54f68a261921f83f7b45cfeb98e1" }, "downloads": -1, "filename": "google_speech-1.0.15.tar.gz", "has_sig": false, "md5_digest": "c609dfd602af059f6b59fdf7c063320e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17094, "upload_time": "2016-05-18T19:50:29", "url": "https://files.pythonhosted.org/packages/c5/00/37d288ee778439ee1bb55b195e54e21907b52b83909a3128813981c15121/google_speech-1.0.15.tar.gz" } ], "1.0.16": [ { "comment_text": "", "digests": { "md5": "14f1f8617b08dc745db41f20a12fa3cf", "sha256": "38dd6c87e03aef00c0103ff7d535783bdbe82e66b37be91b298dda94288be63e" }, "downloads": -1, "filename": "google_speech-1.0.16.tar.gz", "has_sig": false, "md5_digest": "14f1f8617b08dc745db41f20a12fa3cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10303, "upload_time": "2017-04-23T02:02:04", "url": "https://files.pythonhosted.org/packages/5e/a5/22fcc7d695cd988ee0f09fb669327f813415cc302f587bf5f95aa27187fe/google_speech-1.0.16.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "11236a47959761fab55fbb73d709bdea", "sha256": "2ddb3e75656b19c995785393af3bee45431cf2c23000e69c590d4202eb2e5028" }, "downloads": -1, "filename": "google_speech-1.0.2.tar.gz", "has_sig": false, "md5_digest": "11236a47959761fab55fbb73d709bdea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14010, "upload_time": "2014-12-05T22:20:10", "url": "https://files.pythonhosted.org/packages/97/d7/1dbb1bad1c16b1dde53385699367df21f295fee2300309ecc894ac3641b8/google_speech-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6bf9f8899c6056f4e5cc5df366ef0e47", "sha256": "249e0584413ba0cbc9e11cab49a6d1d39ad717cf5fc5d7e23f1143fe165d7537" }, "downloads": -1, "filename": "google_speech-1.0.3.tar.gz", "has_sig": false, "md5_digest": "6bf9f8899c6056f4e5cc5df366ef0e47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17072, "upload_time": "2014-12-21T16:43:08", "url": "https://files.pythonhosted.org/packages/16/58/87df3334322396728186c381d3196540ee5ea7b12ba8d5eeeb761bff9c6b/google_speech-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "05d7d11c2dcff86ed9a920c226d9c587", "sha256": "2bca3695f80d5a24a09eab466db63b5956f7dd1629dd5287df4726d6442d7fd5" }, "downloads": -1, "filename": "google_speech-1.0.4.tar.gz", "has_sig": false, "md5_digest": "05d7d11c2dcff86ed9a920c226d9c587", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17271, "upload_time": "2015-04-04T14:22:24", "url": "https://files.pythonhosted.org/packages/9a/3b/4af8710bdf416049263941a4140ac29857922ffa7b4fe9db1d453ab49944/google_speech-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "f7cacb4f1b154acdbb4188b827010b46", "sha256": "57c664b4728c6db79f5cb0df8f87077ceb7ad938998459b86ba89294c922eee3" }, "downloads": -1, "filename": "google_speech-1.0.5.tar.gz", "has_sig": false, "md5_digest": "f7cacb4f1b154acdbb4188b827010b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17329, "upload_time": "2015-07-24T19:17:20", "url": "https://files.pythonhosted.org/packages/4f/37/690ab64fbaaace2780ccc410419e9bf79232cb665da7c9035729823ba2c4/google_speech-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "5ce5dc5f26603831cef2f15d0fece927", "sha256": "a4662101229c092ed076a6ea84ddb0edbc00b341d5f8935f7c4a5400dfa23783" }, "downloads": -1, "filename": "google_speech-1.0.6.tar.gz", "has_sig": false, "md5_digest": "5ce5dc5f26603831cef2f15d0fece927", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17343, "upload_time": "2015-08-01T22:38:28", "url": "https://files.pythonhosted.org/packages/89/fd/d78290fe664fcb10e0fe65c882b50e8dd0674518b5f30dd93b8f818a77d3/google_speech-1.0.6.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "220cfc1c9b335f41feddfdf4b3bba122", "sha256": "b6d0b9002a8c4873d40e9447f3bac565e892353b2ab65e946e516fe946dc14e4" }, "downloads": -1, "filename": "google_speech-1.0.8.tar.gz", "has_sig": false, "md5_digest": "220cfc1c9b335f41feddfdf4b3bba122", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17230, "upload_time": "2015-09-03T20:51:02", "url": "https://files.pythonhosted.org/packages/20/e8/b848b45d16934a3cadf51c4b4cff28858f4ecc3ad68476428f7738771352/google_speech-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "5f252bd5ce17bd321d4d7c5c92900863", "sha256": "67600f857a38303561ebf54c3802116cc36f6b2492e0e74575c805b761b02b78" }, "downloads": -1, "filename": "google_speech-1.0.9.tar.gz", "has_sig": false, "md5_digest": "5f252bd5ce17bd321d4d7c5c92900863", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16634, "upload_time": "2015-09-19T22:09:01", "url": "https://files.pythonhosted.org/packages/34/74/f8e8cb56f92c5ddbda5710309997a381fa6fc2e7cac855c89a7c59d0ac16/google_speech-1.0.9.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f854ad09932623783933a77cb25a62b4", "sha256": "15533bebd0a9271f4c6f6d39abcde41ff7732e01054cbd13b6e7c46c87a2010d" }, "downloads": -1, "filename": "google_speech-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f854ad09932623783933a77cb25a62b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17543, "upload_time": "2018-12-17T20:55:56", "url": "https://files.pythonhosted.org/packages/f3/2d/bf479ffe93a0b89a0cb56b0189e9488b0383dad872d4ae2119c024080004/google_speech-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f854ad09932623783933a77cb25a62b4", "sha256": "15533bebd0a9271f4c6f6d39abcde41ff7732e01054cbd13b6e7c46c87a2010d" }, "downloads": -1, "filename": "google_speech-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f854ad09932623783933a77cb25a62b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17543, "upload_time": "2018-12-17T20:55:56", "url": "https://files.pythonhosted.org/packages/f3/2d/bf479ffe93a0b89a0cb56b0189e9488b0383dad872d4ae2119c024080004/google_speech-1.1.0.tar.gz" } ] }