{ "info": { "author": "yliess", "author_email": "hatiyliess86@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "\nLPC Utility for Pytorch Library.\n\n# LPC Torch\n\nLPCTorch is a small pytorch utility for Linear Predictive Coding. It provides a simple way to compute windowed Linear Predictive Coding Coefficients on a input audio signal. The repo uses the Burg's methods [[1]] and is heavily inspired from the librosa audio library implementation [[2]].\n\n## Install\n\nInstall the module using the pip utility ( may require to run as sudo )\n\n```bash\npip3 install lpctorch\n```\n\n## Usage\n\n### LPC Coefficients\n\n```python\nfrom lpctorch import LPCCoefficients\n\n# Parameters\n# * sr : sample rate of the signal ( 16 kHz )\n# * frame_duration: duration of the window in seconds ( 16 ms )\n# * frame_overlap : frame overlapping factor\n# * K : number of linear predictive coding coefficients\nsr = 16000\nframe_duration = .016\nframe_overlap = .5\nK = 32\n\n# Initialize the module given all the parameters\nlpc_prep = LPCCoefficients(\n sr,\n frame_duration,\n frame_overlap,\n order = ( K - 1 )\n)\n\n# Get the coefficients given a signal\n# torch.Tensor of size ( Batch, Samples )\nalphas = lpc_prep( X )\n```\n\n## Example\n\nThe repository provides an example application with a 'sample.wav' file.\nThe output is the same as the one provided by librosa (bottom).\n\n![ Ex ]( ./examples/comparison.png )\n\n## Benchmarks\n\nHere are some benchmarks comparing cpu vs gpu inference times in seconds of the utility from 1 to 32 batch size.\n\n![ Bench ]( ./examples/benchmark.png )\n\n## References\n\n* [[1]] Larry Marple A New Autoregressive Spectrum Analysis Algorithm IEEE Transactions on Accoustics, Speech, and Signal Processing vol 28, no. 4, 1980\n* [[2]] Librosa LPC Burg's Method Implementation\n\n[1]: https://ieeexplore.ieee.org/document/1163429\n[2]: https://librosa.github.io/librosa/_modules/librosa/core/audio.html#lpc\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TowardHumanizedInteraction/LPCTorch", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "LPCTorch", "package_url": "https://pypi.org/project/LPCTorch/", "platform": "", "project_url": "https://pypi.org/project/LPCTorch/", "project_urls": { "Homepage": "https://github.com/TowardHumanizedInteraction/LPCTorch" }, "release_url": "https://pypi.org/project/LPCTorch/0.1.4/", "requires_dist": [ "numpy (==1.17.2)", "torch (==1.2.0)", "torchaudio (==0.3.0)", "tqdm (==4.36.1)", "matplotlib (==3.0.1)", "librosa (==0.7.1)" ], "requires_python": ">=3.4, <4", "summary": "LPC Utility for Pytorch Library.", "version": "0.1.4", "yanked": false, "yanked_reason": null }, "last_serial": 6186678, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8e5927456e3ae6f2bd2db0d4898d6ac0", "sha256": "0a162a182259167c9ee116c5f419e8c429b130763776ce2ed470de514e3ba499" }, "downloads": -1, "filename": "LPCTorch-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8e5927456e3ae6f2bd2db0d4898d6ac0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4, <4", "size": 4556, "upload_time": "2019-10-13T21:22:12", "upload_time_iso_8601": "2019-10-13T21:22:12.831784Z", "url": "https://files.pythonhosted.org/packages/31/36/15667c07216da6b274c3b23baf8a3c6dfd05bdda80f8d6745e698aacc360/LPCTorch-0.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e7c0fde8a946a2ae5e21eb7acc3a7257", "sha256": "e9244fc19b226dd7c849f0a700e8df84d7f0ae3eed558502bf5a8546e279fe52" }, "downloads": -1, "filename": "LPCTorch-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e7c0fde8a946a2ae5e21eb7acc3a7257", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4, <4", "size": 4177, "upload_time": "2019-10-13T21:22:15", "upload_time_iso_8601": "2019-10-13T21:22:15.378895Z", "url": "https://files.pythonhosted.org/packages/10/0e/0b635940954bf4888aaacdff1664d314236193feff5e6bdaf40e0532f778/LPCTorch-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "08fef2c409dd809e7e4af3640091617b", "sha256": "9ca71bffefa34b59efcaae90d694eb3e76f8fa09b272c6bcf6d9743fa3619e75" }, "downloads": -1, "filename": "LPCTorch-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "08fef2c409dd809e7e4af3640091617b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4, <4", "size": 4604, "upload_time": "2019-10-14T10:31:19", "upload_time_iso_8601": "2019-10-14T10:31:19.497779Z", "url": "https://files.pythonhosted.org/packages/22/79/fa71400b2a63ece6e37e9c34a239a84f6652befa9f689b8537b1485cfbb0/LPCTorch-0.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "47815e2b9c646ad6e076484d3200cb37", "sha256": "4f1475c4bba7eb5ff3ab3285e66aec5980361d431d1a2d1c5397860e267e5563" }, "downloads": -1, "filename": "LPCTorch-0.1.1.tar.gz", "has_sig": false, "md5_digest": "47815e2b9c646ad6e076484d3200cb37", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4, <4", "size": 4216, "upload_time": "2019-10-14T10:31:21", "upload_time_iso_8601": "2019-10-14T10:31:21.138778Z", "url": "https://files.pythonhosted.org/packages/ed/2a/bf9f604f7678d78e3dc35d2774658fa649a15d61dfe591a201292f4059be/LPCTorch-0.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "35515eb8b33f0fcdccc54d96b65c60ce", "sha256": "791f1c18a1bc4be456f0734d73b552357c6968bd647f69b2d839a53fe2da9639" }, "downloads": -1, "filename": "LPCTorch-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "35515eb8b33f0fcdccc54d96b65c60ce", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4, <4", "size": 4650, "upload_time": "2019-10-22T13:53:35", "upload_time_iso_8601": "2019-10-22T13:53:35.779882Z", "url": "https://files.pythonhosted.org/packages/4c/d7/e3bda799681bf90de22e2340b235990f58a3df7802e293161d7f045754c4/LPCTorch-0.1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "75fa7175961e3b1097d4771ca8e87f8a", "sha256": "8cfe0998e41110f9b48c04db87de68248f9c5d960775e4e716b6f2cc0d7c4368" }, "downloads": -1, "filename": "LPCTorch-0.1.2.tar.gz", "has_sig": false, "md5_digest": "75fa7175961e3b1097d4771ca8e87f8a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4, <4", "size": 4260, "upload_time": "2019-10-22T13:53:37", "upload_time_iso_8601": "2019-10-22T13:53:37.438444Z", "url": "https://files.pythonhosted.org/packages/69/fa/21f42e5a2869f013d065e453a164a6865f8bec84fae11a747c0f167871b7/LPCTorch-0.1.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "39e45d2cb498cdd495b00f002a9fc310", "sha256": "24dc48b472299783ba40a66d92145f79f2f191476e578302bc054d08c919a1b8" }, "downloads": -1, "filename": "LPCTorch-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "39e45d2cb498cdd495b00f002a9fc310", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4, <4", "size": 4649, "upload_time": "2019-11-23T14:25:30", "upload_time_iso_8601": "2019-11-23T14:25:30.255158Z", "url": "https://files.pythonhosted.org/packages/d3/42/0e17e262607361313fcf9c5d35c670ce41f0b40e2f0d4a13db3d0000e471/LPCTorch-0.1.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "0015e1900133c3c19df96410e8bcfc37", "sha256": "4c332f98efabbd8aa4466a277b1602a04b16db76ad2de7fc8819e293a023f2cd" }, "downloads": -1, "filename": "LPCTorch-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0015e1900133c3c19df96410e8bcfc37", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4, <4", "size": 4265, "upload_time": "2019-11-23T14:25:31", "upload_time_iso_8601": "2019-11-23T14:25:31.592416Z", "url": "https://files.pythonhosted.org/packages/bc/54/e9876243c44912951cee28d6834afbd741a60de5eaab3f5d350668a34b52/LPCTorch-0.1.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "aee4015a20407379e4a32dd7d2c31e49", "sha256": "ed9f858e5fb2f9a1ac170adf3cf410c25f1a7634c63e2bf927ba40e28f87782f" }, "downloads": -1, "filename": "LPCTorch-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "aee4015a20407379e4a32dd7d2c31e49", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4, <4", "size": 4647, "upload_time": "2019-11-23T14:28:55", "upload_time_iso_8601": "2019-11-23T14:28:55.522839Z", "url": "https://files.pythonhosted.org/packages/4f/a8/96eebd6f7a54d53315eccafafa26f06c44cb67df7be32d73fa26a8b3bb82/LPCTorch-0.1.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "bf1210741d70018f0cc42747d36976c7", "sha256": "41d66a154d95431b670bf166e48eda50aa7b332ee643e02ca50bd12887a9049f" }, "downloads": -1, "filename": "LPCTorch-0.1.4.tar.gz", "has_sig": false, "md5_digest": "bf1210741d70018f0cc42747d36976c7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4, <4", "size": 4265, "upload_time": "2019-11-23T14:28:57", "upload_time_iso_8601": "2019-11-23T14:28:57.021976Z", "url": "https://files.pythonhosted.org/packages/85/14/b4b6c8ed3eae47a9c26fb3b6380d74f8d163eecb89edde20890bf41818d1/LPCTorch-0.1.4.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aee4015a20407379e4a32dd7d2c31e49", "sha256": "ed9f858e5fb2f9a1ac170adf3cf410c25f1a7634c63e2bf927ba40e28f87782f" }, "downloads": -1, "filename": "LPCTorch-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "aee4015a20407379e4a32dd7d2c31e49", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4, <4", "size": 4647, "upload_time": "2019-11-23T14:28:55", "upload_time_iso_8601": "2019-11-23T14:28:55.522839Z", "url": "https://files.pythonhosted.org/packages/4f/a8/96eebd6f7a54d53315eccafafa26f06c44cb67df7be32d73fa26a8b3bb82/LPCTorch-0.1.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "bf1210741d70018f0cc42747d36976c7", "sha256": "41d66a154d95431b670bf166e48eda50aa7b332ee643e02ca50bd12887a9049f" }, "downloads": -1, "filename": "LPCTorch-0.1.4.tar.gz", "has_sig": false, "md5_digest": "bf1210741d70018f0cc42747d36976c7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4, <4", "size": 4265, "upload_time": "2019-11-23T14:28:57", "upload_time_iso_8601": "2019-11-23T14:28:57.021976Z", "url": "https://files.pythonhosted.org/packages/85/14/b4b6c8ed3eae47a9c26fb3b6380d74f8d163eecb89edde20890bf41818d1/LPCTorch-0.1.4.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }