Skip to content

Commit

Permalink
Merge pull request #8 from imbesat-rizvi/main
Browse files Browse the repository at this point in the history
Initial release v0.1.0 with tested (non-language model based) published wheel file on pypi.
  • Loading branch information
imbesat-rizvi authored Jun 16, 2021
2 parents 9d637c0 + f0e5247 commit 475f0d9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 31 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To install `fairseq`, refer to [requirements and installations](https://github.c

`pyaudio` has a dependency on `portaudio`. If not using conda, make sure `portaudio` is installed. For example, for Ubuntu, the same can be installed by executing:

`sudo apt install portaudio19-dev`
`sudo apt install portaudio19-dev` or `conda install pyaudio` in case of working in a conda environment which will install `pyaudio` along with `portaudio`.

Finally, install requirements by executing:

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ scipy>=1.6.2
webrtcvad>=2.0.10
pyaudio>=0.2.11
librosa>=0.8.0
tqdm>=4.59.0
tqdm>=4.49.0
torch>=1.7.1
transformers>=4.4.2
omegaconf>=2.0.6
Expand Down
26 changes: 18 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,46 @@

curr_dir = Path(__file__).parent

with open(curr_dir/"requirements.txt", "r") as f:
with open(curr_dir / "requirements.txt", "r") as f:
# include all requirements which are not commented
reqs = [i for i in f.read().splitlines() if i.strip()]
install_requires = reqs[reqs.index("#required")+1:reqs.index("#speechlm")]
extras_require = {"speechlm": [x[1:] for x in reqs[reqs.index("#speechlm")+1:]]}
install_requires = reqs[reqs.index("#required") + 1 : reqs.index("#speechlm")]
extras_require = {"speechlm": [x[1:] for x in reqs[reqs.index("#speechlm") + 1 :]]}

description = r"""Named after a spell in the Harry Potter Universe, where it
amplies the sound of a speaker. In muggles' terminology, this is a repository
of modules for audio and speech processing for and on top of machine learning
based tasks such as speech-to-text."""

README = (curr_dir/"README.md").read_text()
README = (curr_dir / "README.md").read_text()

setup(name="sonorus",
setup(
name="sonorus",
version="0.1.0",
description=description,
long_description=README,
long_description_content_type="text/markdown",
author="Md Imbesat Hassan Rizvi",
author_email="imbugene@gmail.com",
url="https://github.com/pensieves/sonorus",
download_url="https://github.com/pensieves/sonorus/releases",
packages=find_packages(exclude=["contrib", "docs", "examples", "tests"]), # Required
packages=find_packages(
exclude=["contrib", "docs", "tests"]
), # Required
install_requires=install_requires,
extras_require=extras_require,
license="MIT",
keywords=["deep learning", "speech recognition", "speech to text", "language modelling"],
keywords=[
"deep learning",
"speech recognition",
"speech to text",
"language modelling",
],
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Langauge :: Python :: 3",
"Environment :: GPU :: NVIDIA CUDA :: 11.2",
],
)

0 comments on commit 475f0d9

Please sign in to comment.