{ "info": { "author": "Elie Khoury", "author_email": "elie.khoury@idiap.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], "description": "=========================\n Python Bindings for Sox\n=========================\n\nThis package is a simple Python wrapper to read and write functionalities in Sox .\nThe github version can be found here: https://github.com/bioidiap/xbob.sox\n\nInstallation\n------------\n\nYou can just add a dependence for ``xbob.sox`` on your ``setup.py`` to\nautomatically download and have this package available at your satellite\npackage. This works well if Bob is installed centrally at your machine. If not done, you need also to install bob-dev.\n\nOn ubuntu, you need something like::\n\n $ sudo apt-get install bob bob-dev sox libsox-dev\n \nOn Mac OSX, you need something like::\n\n $ sudo port install bob bob-dev sox libsox-dev\n\n\nOtherwise, you will need to tell ``buildout`` how to build the package locally\nand how to find Bob. For that, just add a recipe to your buildout that will\nfetch the package and compile it locally, setting the buildout variable\n``prefixes`` to where Bob is installed (a build directory will also work). For\nexample::\n\n [buildout]\n parts = xbob.sox \n prefixes = /Users/elie/work/bob/build/debug\n ...\n\n [xbob.sox]\n recipe = xbob.buildout:develop\n\n ...\n\nDevelopment\n-----------\n\nTo develop these bindings, you will need the open-source libraries `Bob `_ and `Sox `_ installed somewhere. This satellite package was tested with Bob version 1.2.x, and Sox version 14.3.x and 14.4.x, and on OSX and UBUNTU 10.x and 12.x. \nIf you have compiled Bob and Sox yourself and installed it on a non-standard location, you will need to note down the path leading to the root of that installation.\n\nJust type::\n\n $ python bootstrap.py\n $ ./bin/buildout\n\nIf Bob is installed in a non-standard location, edit the file ``buildout.cfg`` to set the root to Bob's local installation path. Remember to use the **same python interpreter** that was used to compile Bob, then execute the same steps\nas above.\n\nUsage\n-----\n\nTo read, just do something like::\n\n import xbob.sox\n infilename='xbob/sox/data/sample1.sph'\n audio = xbob.sox.reader(infilename)\n (rate, data) = audio.load()\n print rate\n print data\n\nThis allows to read more wave formats than ``scipy.io.wavfile`` module. The output data are the same as for the MATLAB ``wavread`` function, and comparable with ``scipy.io.wavfile`` module (just multiplied by 2^15). Unit-tests to compare the 3 implementations are available. Just run::\n\n $ bin/nosetests -vs\n\nTo write, do something like::\n \n outfilename='out.wav'\n writer=xbob.sox.writer(outfilename, rate)\n writer.save(data)\n \n\nThe ``xbob.sox.writer`` method accepts more parameters to optionally select the codec and the number of bits per sample (if the codec allows). Please refer to its built-in. By default, it uses the default codec and bits per sample that are associated with the extension of the file. \n\n\nSupported Encoding and Extensions\n----------------------------------\n\n`Encodings`: \n\n``SIGN2``, ``UNSIGNED``, ``FLOAT``, ``FLOAT_TEXT``, ``FLAC``, ``HCOM``, ``WAVPACK``, ``WAVPACKF``, ``ULAW``, ``ALAW``, ``G721``, ``G723``, ``CL_ADPCM``, ``CL_ADPCM16``, ``MS_ADPCM``, ``IMA_ADPCM``, ``OKI_ADPCM``, ``DPCM``, ``DWVW``, ``DWVWN``, ``GSM``, ``MP3``, ``VORBIS``, ``AMR_WB``, ``AMR_NB``, ``CVSD``, ``LPC10``.\n\n`Extensions`: \n\n``.voc``, ``.smp``, ``.wve``, ``.gsrt``, ``.amr-wb``, ``.prc``, ``.sph``, ``.amr-nb``, ``.txw``, ``.sndt``, ``.vorbis``, ``.speex``, ``.hcom``, ``.wav``, ``.aiff``, ``.aifc``, ``.8svx``, ``.maud``, ``.xa``, ``.au``, ``.flac``, ``.avr``, ``.caf``, ``.wv``, ``.paf``, ``.sf``, ``.sox``.", "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/xbob.sox", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "xbob.sox", "package_url": "https://pypi.org/project/xbob.sox/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xbob.sox/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/xbob.sox" }, "release_url": "https://pypi.org/project/xbob.sox/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Audio reader and writer using sox for bob and python", "version": "1.1.0" }, "last_serial": 1378900, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "70674c3294dfd0a076c78612bb622ec7", "sha256": "e1a39c871774196f7d7da7c07826934c2c3dc9a68f10bed83cd76908f39526ed" }, "downloads": -1, "filename": "xbob.sox-1.0.0.zip", "has_sig": false, "md5_digest": "70674c3294dfd0a076c78612bb622ec7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 449456, "upload_time": "2013-11-15T15:17:52", "url": "https://files.pythonhosted.org/packages/48/11/e8b0fe091a7525228f95e7704f8df8c0e9fb8fe02188ce81ea2c84e527de/xbob.sox-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "2cc79376e24026a1673ee8cf3f84fa03", "sha256": "ad933c120bc3db3713ceb3210ff55aac89cc0b1b221e1044233ef42533773c22" }, "downloads": -1, "filename": "xbob.sox-1.0.1.zip", "has_sig": false, "md5_digest": "2cc79376e24026a1673ee8cf3f84fa03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 449773, "upload_time": "2013-11-19T02:17:19", "url": "https://files.pythonhosted.org/packages/7c/44/43a90344551ed054220de1173953500d9254f428a9031810535c89ca226e/xbob.sox-1.0.1.zip" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "9d7a376681409abe46581c755985d03b", "sha256": "bd7c0ec22148772ee7b1212a5cba641de18ca6f6e281808ce3c2615e52b1111f" }, "downloads": -1, "filename": "xbob.sox-1.1.0.zip", "has_sig": false, "md5_digest": "9d7a376681409abe46581c755985d03b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 450373, "upload_time": "2013-11-19T22:53:40", "url": "https://files.pythonhosted.org/packages/a7/40/caf347337371145f7f94891dabb59cd3242f96389ddc74488b32a2203102/xbob.sox-1.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d7a376681409abe46581c755985d03b", "sha256": "bd7c0ec22148772ee7b1212a5cba641de18ca6f6e281808ce3c2615e52b1111f" }, "downloads": -1, "filename": "xbob.sox-1.1.0.zip", "has_sig": false, "md5_digest": "9d7a376681409abe46581c755985d03b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 450373, "upload_time": "2013-11-19T22:53:40", "url": "https://files.pythonhosted.org/packages/a7/40/caf347337371145f7f94891dabb59cd3242f96389ddc74488b32a2203102/xbob.sox-1.1.0.zip" } ] }