{"id":21529602,"url":"https://github.com/sooftware/deepspeech2","last_synced_at":"2025-04-09T23:51:41.562Z","repository":{"id":59663586,"uuid":"344849556","full_name":"sooftware/deepspeech2","owner":"sooftware","description":"PyTorch implementation of \"Deep Speech 2: End-to-End Speech Recognition in English and Mandarin\" (ICML, 2016)","archived":false,"fork":false,"pushed_at":"2021-03-05T15:53:01.000Z","size":12,"stargazers_count":23,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T23:51:36.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sooftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-05T15:18:33.000Z","updated_at":"2024-10-13T09:50:59.000Z","dependencies_parsed_at":"2022-09-19T14:10:33.184Z","dependency_job_id":null,"html_url":"https://github.com/sooftware/deepspeech2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooftware%2Fdeepspeech2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooftware%2Fdeepspeech2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooftware%2Fdeepspeech2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sooftware%2Fdeepspeech2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sooftware","download_url":"https://codeload.github.com/sooftware/deepspeech2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131454,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T01:58:20.059Z","updated_at":"2025-04-09T23:51:41.545Z","avatar_url":"https://github.com/sooftware.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deepspeech2\n  \nReleased in 2015, Baidu Research's Deep Speech 2 model converts speech to text end to end from a normalized sound spectrogram to the sequence of characters. It consists of a few convolutional layers over both time and frequency, followed by gated recurrent unit (GRU) layers (modified with an additional batch normalization).\n  \n\u003cimg src=\"https://miro.medium.com/max/2116/1*D6mB5UY9p_0CwcaDXm9fig.png\" height=400\u003e  \n  \nThis repository contains only model code, but you can train with deepspeech2 with [this repository](https://github.com/sooftware/kospeech).\n  \n## Installation\nThis project recommends Python 3.7 or higher.\nWe recommend creating a new virtual environment for this project (using virtual env or conda).\n  \n### Prerequisites\n* Numpy: `pip install numpy` (Refer [here](https://github.com/numpy/numpy) for problem installing Numpy).\n* Pytorch: Refer to [PyTorch website](http://pytorch.org/) to install the version w.r.t. your environment.  \n  \n### Install from source\nCurrently we only support installation from source code using setuptools. Checkout the source code and run the\nfollowing commands:  \n  \n```\npip install -e .\n```\n\n## Usage\n\n```python\nimport torch\nimport torch.nn as nn\nfrom deepspeech2 import DeepSpeech2\n\nbatch_size, sequence_length, dim = 3, 12345, 80\n\ncuda = torch.cuda.is_available()  \ndevice = torch.device('cuda' if cuda else 'cpu')\n\ninputs = torch.rand(batch_size, sequence_length, dim).to(device)\ninput_lengths = torch.IntTensor([12345, 12300, 12000])\n\nmodel = DeepSpeech2(num_classes=10, input_dim=dimension).to(device)\n\n# Forward propagate\noutputs = model(inputs, input_lengths)\n\n# Recognize input speech\noutputs = model.module.recognize(inputs, input_lengths)\n```\n  \n## Troubleshoots and Contributing\nIf you have any questions, bug reports, and feature requests, please [open an issue](https://github.com/sooftware/conformer/issues) on github or   \ncontacts sh951011@gmail.com please.\n  \nI appreciate any kind of feedback or contribution.  Feel free to proceed with small issues like bug fixes, documentation improvement.  For major contributions and new features, please discuss with the collaborators in corresponding issues.  \n  \n## Code Style\nI follow [PEP-8](https://www.python.org/dev/peps/pep-0008/) for code style. Especially the style of docstrings is important to generate documentation.  \n  \n## Author\n  \n* Soohwan Kim [@sooftware](https://github.com/sooftware)\n* Contacts: sh951011@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsooftware%2Fdeepspeech2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsooftware%2Fdeepspeech2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsooftware%2Fdeepspeech2/lists"}