{ "info": { "author": "Sam Lavigne", "author_email": "splavigne@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Topic :: Multimedia :: Sound/Audio", "Topic :: Multimedia :: Sound/Audio :: Editors", "Topic :: Multimedia :: Sound/Audio :: Speech" ], "description": "Audiogrep\n=========\n\nAudiogrep transcribes audio files and then creates \"audio supercuts\" based on search phrases. It uses [CMU Pocketsphinx](http://cmusphinx.sourceforge.net/) for speech-to-text and [pydub](http://pydub.com/) to stitch things together.\n\nHere's some [sample output](http://lav.io/2015/02/audiogrep-automatic-audio-supercuts/).\n\n## Requirements\nInstall using pip\n```\npip install audiogrep\n```\nInstall [ffmpeg](http://ffmpeg.org/) with Ogg/Vorbis support. If you're on a mac with [homebrew](http://brew.sh/) you can install ffmpeg with:\n```\nbrew install ffmpeg --with-libvpx --with-libvorbis\n```\nFinally, install [CMU Pocketsphinx](http://cmusphinx.sourceforge.net/). For mac\nusers I followed [these instructions](https://github.com/watsonbox/homebrew-cmu-sphinx) to get it working:\n```\nbrew tap watsonbox/cmu-sphinx\nbrew install --HEAD watsonbox/cmu-sphinx/cmu-sphinxbase\nbrew install --HEAD watsonbox/cmu-sphinx/cmu-sphinxtrain # optional\nbrew install --HEAD watsonbox/cmu-sphinx/cmu-pocketsphinx\n```\n\n## How to use it\nFirst, transcribe the audio (you'll only need to do this once per audio track, but it can take some time)\n```\n# transcribes all mp3s in the selected folder\naudiogrep --input path/to/*.mp3 --transcribe\n```\nThen, basic use:\n```\n# returns all phrases with the word 'word' in them\naudiogrep --input path/to/*.mp3 --search 'word'\n```\nThe previous example will extract phrase chunks containing the search term, but you can also just get individual words:\n```\naudiogrep --input path/to/*.mp3 --search 'word' --output-mode word\n```\nIf you add the '--regex' flag you can use regular expressions. For example:\n```\n# creates a supercut of every instance of the words \"spectre\", \"haunting\" and \"europe\"\naudiogrep --input path/to/*.mp3 --search 'spectre|haunting|europe' --output-mode word --regex\n```\nYou can also construct 'frankenstein' sentences (mileage may vary):\n```\n# stupid joke\naudiogrep --input path/to/*.mp3 --search 'my voice is my passport' --output-mode franken\n```\nOr you can just extract individual words into files.\n```\n# extracts each individual word into its own file in a directory called 'extracted_words'\naudiogrep --input path/to/*.mp3 --extract\n\nExporting to: extracted_words/i.mp3\nExporting to: extracted_words/am.mp3\nExporting to: extracted_words/the.mp3\nExporting to: extracted_words/key.mp3\nExporting to: extracted_words/master.mp3\n```\n\n### Options\n\naudiogrep can take a number of options:\n\n#### --input / -i\nmp3 file or pattern for input\n\n#### --output / -o\nName of the file to generate. By default this is \"supercut.mp3\"\n\n#### --search / -s\nSearch term\n\n#### --output-mode / -m\nSplice together phrases, single words, fragments with wildcards, or \"frankenstein\" sentences.\nOptions are:\n* sentence: (this is the default)\n* word\n* fragment\n* franken\n\n#### --padding / -p\nTime in milliseconds to add between audio segments. Default is 0.\n\n#### --crossfade / -c\nTime in milliseconds to crossfade audio segments. Default is 0.\n\n#### --extract / -x\n\n#### --demo / -d\nShow the results of the search without outputing a file\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://antiboredom.github.io/audiogrep", "keywords": "audio supercut pydub transcribe transcription", "license": "LICENSE", "maintainer": "", "maintainer_email": "", "name": "audiogrep", "package_url": "https://pypi.org/project/audiogrep/", "platform": "", "project_url": "https://pypi.org/project/audiogrep/", "project_urls": { "Homepage": "http://antiboredom.github.io/audiogrep" }, "release_url": "https://pypi.org/project/audiogrep/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "Creates audio supercuts", "version": "0.1.5" }, "last_serial": 3922234, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "ac444498413a6768c2215177c8f21e90", "sha256": "7eaf18c90778facd34a39ac5863471927244fcb7910309af4bfe986965fcd0cd" }, "downloads": -1, "filename": "audiogrep-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ac444498413a6768c2215177c8f21e90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6520, "upload_time": "2015-06-26T07:20:30", "url": "https://files.pythonhosted.org/packages/07/fa/03922ae03c446591200c50cd3da79b8a704282b7592e5f27aec6dbb2677d/audiogrep-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "48f2d321ad51172828059a4d10cb0110", "sha256": "52e98bb0c3e375f3b55a0e14bd07c916c9354f8d173de2d4b43ef76371563dad" }, "downloads": -1, "filename": "audiogrep-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "48f2d321ad51172828059a4d10cb0110", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8310, "upload_time": "2015-06-27T22:21:57", "url": "https://files.pythonhosted.org/packages/bd/36/732ac22bb17a0057c871ad37daf66a228ad3b88b5bf07441fa52f315ee80/audiogrep-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6152cab2d8e2e7d2a14626bef13a7351", "sha256": "4be30581e01178ce819e48f67ac728595172a4eaeb080c113825730c0009ba23" }, "downloads": -1, "filename": "audiogrep-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6152cab2d8e2e7d2a14626bef13a7351", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6491, "upload_time": "2015-06-27T22:21:54", "url": "https://files.pythonhosted.org/packages/00/f1/c2bbd3cd21a1ffce74a1a6188da5c6d8c47168998359056cf2c93038a9e0/audiogrep-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "5406ff262e3630276f24c3b02441b593", "sha256": "1bedda89556df1fc19c5896f4fb152060f86b12cde015fc2c1bd1f457bf2f1d9" }, "downloads": -1, "filename": "audiogrep-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "5406ff262e3630276f24c3b02441b593", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9062, "upload_time": "2018-02-04T23:03:12", "url": "https://files.pythonhosted.org/packages/d8/16/781c7c7429fbdd9c51e9cefbdf7d54eb469f93236f22b20155608cfad1d7/audiogrep-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cbf668ab38cbe23a2d4f50259856401d", "sha256": "5689b11f1c260b024c48011f774816bfbab0347fdf4ddd037a480d935a141494" }, "downloads": -1, "filename": "audiogrep-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cbf668ab38cbe23a2d4f50259856401d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7173, "upload_time": "2018-02-04T23:02:28", "url": "https://files.pythonhosted.org/packages/e5/a2/6d0c1191094228cdef1cb7e06b058d6e4ba55d54ecb108623f8e0ebcd576/audiogrep-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "4ebecf9a75f09e01a7a33ba4ceaa4281", "sha256": "9446963c9d9723beff502978062a7d8d465241ac571895fbd63207dc11f65a1c" }, "downloads": -1, "filename": "audiogrep-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "4ebecf9a75f09e01a7a33ba4ceaa4281", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9063, "upload_time": "2018-02-09T02:03:00", "url": "https://files.pythonhosted.org/packages/4f/90/d2b52c95cd93a0d1ce385d668eebfdf3d47baabe15d2b2b1cd5bb9e6a550/audiogrep-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e17285d0e6cc6c8863f831e731098396", "sha256": "e77ffe147d27418537a3a153e856231542d0bb526520808dd0e7b313782f5207" }, "downloads": -1, "filename": "audiogrep-0.1.4.tar.gz", "has_sig": false, "md5_digest": "e17285d0e6cc6c8863f831e731098396", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7173, "upload_time": "2018-02-09T02:02:56", "url": "https://files.pythonhosted.org/packages/52/0b/19b63059e3e6d3aa0a1c1ab564d7361fcbb4ec0f31deca10129c6204aad9/audiogrep-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "d8d9636175d2e886d71c2b0515c0f7c3", "sha256": "c4583cee07adf421ec38dbf4b60efb733e58694b2918e34e325e6a1abffbf077" }, "downloads": -1, "filename": "audiogrep-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "d8d9636175d2e886d71c2b0515c0f7c3", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9036, "upload_time": "2018-06-01T21:02:58", "url": "https://files.pythonhosted.org/packages/f2/a9/d4a17342d8e6ecb4ddd72e9da5b7b437abbbfcfc0c25b18c0ebd77fb1aa9/audiogrep-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cac13a7df5eb1f4808e48f9f13d5a548", "sha256": "2f1d4142a5f09ede52432c772631de11285b7f651ee8747311380092824a208a" }, "downloads": -1, "filename": "audiogrep-0.1.5.tar.gz", "has_sig": false, "md5_digest": "cac13a7df5eb1f4808e48f9f13d5a548", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7610, "upload_time": "2018-06-01T21:02:44", "url": "https://files.pythonhosted.org/packages/e8/af/f6ec8b523e78fc00d2bc17a2a8f0129518588e77c17773cfac558731e281/audiogrep-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d8d9636175d2e886d71c2b0515c0f7c3", "sha256": "c4583cee07adf421ec38dbf4b60efb733e58694b2918e34e325e6a1abffbf077" }, "downloads": -1, "filename": "audiogrep-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "d8d9636175d2e886d71c2b0515c0f7c3", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9036, "upload_time": "2018-06-01T21:02:58", "url": "https://files.pythonhosted.org/packages/f2/a9/d4a17342d8e6ecb4ddd72e9da5b7b437abbbfcfc0c25b18c0ebd77fb1aa9/audiogrep-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cac13a7df5eb1f4808e48f9f13d5a548", "sha256": "2f1d4142a5f09ede52432c772631de11285b7f651ee8747311380092824a208a" }, "downloads": -1, "filename": "audiogrep-0.1.5.tar.gz", "has_sig": false, "md5_digest": "cac13a7df5eb1f4808e48f9f13d5a548", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7610, "upload_time": "2018-06-01T21:02:44", "url": "https://files.pythonhosted.org/packages/e8/af/f6ec8b523e78fc00d2bc17a2a8f0129518588e77c17773cfac558731e281/audiogrep-0.1.5.tar.gz" } ] }