{ "info": { "author": "fito_segrera", "author_email": "fitosegrera@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "=======\r\ngosttpy\r\n=======\r\n\r\n**Google Speech To Text for Python**\r\n\r\nPython module for speech recognition using Google's speech recognition API.
\r\nTested in ubuntu 13.10 with python_2.7\r\n\r\nDependencies\r\n============\r\nFor LINUX - Please install the sox and simplejson with the following lines in your terminal::\r\n\r\n sudo apt-get install sox \r\n\r\n sudo pip install simplejson\r\n\r\nFor OSX you need to install Homebrew first and then the dependencies (PIP already comes with python so you might want to test in your terminal to verify your version) otherwise if you haven't installed python yet please do with \"sudo brew install python\" as shown in the following lines::\r\n\r\n sudo ruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\"\r\n\r\n sudo brew install sox\r\n\r\n sudo brew install python\r\n\r\n sudo pip install simplejson\r\n\r\n\r\nHOW TO USE\r\n----------\r\ngosttPy module recieves a voice command from the user (through the microphone) and executes a google search...\r\nIt achieves this by recording a .flac audio file and uploading it to google's speech\r\nrecognition engine which converts it into readable text. The output from google is a \r\nJSON object with a list of posible interpretations/transcripts (translations from voice to text. **A google speech API KEY will be needed for the module to work. Please get one from the google developers wesite:** \r\n\r\nhttp://www.chromium.org/developers/how-tos/api-keys\r\n\r\n**The JSON object looks like this:**\r\n************************************\r\n {\"result\":[{\"alternative\":[{\"transcript\":\"world\",\"confidence\":0.43871391}, {\"transcript\":\"World\"},{\"transcript\":\"solo\"},{\"transcript\":\"solo world\"},{\"transcript\":\"so wharo\"}],\"final\":true}],\"result_index\":0}\r\n\r\nThe result of this operation becomes a google search engine query that outputs \r\nsome result related to the original voice command...\r\n\r\nThe goosttPy module allows you to choose between different outputs:\r\n\r\n1. 'RAW' --> Google's speech API JSON object (Complete / not-parsed)raw-data\r\n\r\n2. 'FIRST' --> Just the first transcripted version of your voice \r\n\r\n3. 'ALL' --> The list of all the transcripts returned by the google speech API\r\n\r\n4. 'SEARCH' --> includes the search result returned from google \r\n\r\n**Example / Usage**\r\n*******************\r\npython code::\r\n\r\n from gosttpy import gosttpy # From the file goosttPy.py import the class goosttPy \r\n\r\n speech = gosttpy.gosttpy()\r\n\r\n # Google API key for voice recognition (Replace the string 'YOUR-GOOGLE-SPEECH-API-KEY' with\r\n #your google API Key. Follow this link: http://www.chromium.org/developers/how-tos/api-keys\r\n apiKey = 'YOUR-GOOGLE-SPEECH-API-KEY'\r\n \r\n #returnType --> options are: 'RAW', 'FIRST', 'ALL', 'SEARCH' \r\n returnType = 'FIRST'\r\n returnedText = speech.voiceRecognitionAndSearch(apiKey, returnType)\r\n print returnedText", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/gosttpy/", "keywords": "", "license": "LICENSE.txt", "maintainer": "fito_segrera", "maintainer_email": "", "name": "gosttpy", "package_url": "https://pypi.org/project/gosttpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gosttpy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/gosttpy/" }, "release_url": "https://pypi.org/project/gosttpy/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python module for speech recognition using Google speech recognition API", "version": "0.1.0" }, "last_serial": 1124672, "releases": { "0.1.0": [] }, "urls": [] }