Skip to content

Commit 79eb397

Browse files
Merge pull request #16 from sanchit-gandhi/v0.2.1-release
Release: v0.2.1
2 parents c757285 + 890490c commit 79eb397

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Installation
1313

14-
**With `pip`** (official package)
14+
With `pip` (official package)
1515

1616
```bash
1717
pip install speechbox

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def run(self):
175175

176176
setup(
177177
name="speechbox",
178-
version="0.2.0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
178+
version="0.2.1", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
179179
description="Speechbox",
180180
long_description=open("README.md", "r", encoding="utf-8").read(),
181181
long_description_content_type="text/markdown",

src/speechbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# to defer the actual importing for when the objects are requested. This way `import transformers` provides the names
2323
# in the namespace without actually importing anything (and especially none of the backends).
2424

25-
__version__ = "0.2.0"
25+
__version__ = "0.2.1"
2626

2727
from .utils import (is_accelerate_available, is_pyannote_available,
2828
is_scipy_available, is_torchaudio_available,

src/speechbox/utils/dummy_transformers_and_torchaudio_and_pyannote_objects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66

77
class ASRDiarizationPipeline(metaclass=DummyObject):
8-
_backends = ["transformers", "torchaudio", "pyannote"]
8+
_backends = ["transformers", "torchaudio", "pyannote.audio"]
99

1010
def __init__(self, *args, **kwargs):
11-
requires_backends(self, ["transformers", "torchaudio", "pyannote"])
11+
requires_backends(self, ["transformers", "torchaudio", "pyannote.audio"])
1212

1313
@classmethod
1414
def from_config(cls, *args, **kwargs):
15-
requires_backends(cls, ["transformers", "torchaudio", "pyannote"])
15+
requires_backends(cls, ["transformers", "torchaudio", "pyannote.audio"])
1616

1717
@classmethod
1818
def from_pretrained(cls, *args, **kwargs):
19-
requires_backends(cls, ["transformers", "torchaudio", "pyannote"])
19+
requires_backends(cls, ["transformers", "torchaudio", "pyannote.audio"])

src/speechbox/utils/import_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
_torchaudio_available = importlib.util.find_spec("torchaudio") is not None
6262
try:
6363
_ = importlib_metadata.version("torchaudio")
64-
_torchaudio_metadata = importlib_metadata.metadata("orchaudio")
64+
_torchaudio_metadata = importlib_metadata.metadata("torchaudio")
6565
except importlib_metadata.PackageNotFoundError:
6666
_torchaudio_available = False
6767

utils/check_dummies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def create_dummy_files(backend_specific_objects=None):
116116

117117
for backend, objects in backend_specific_objects.items():
118118
backend_name = "[" + ", ".join(f'"{b}"' for b in backend.split("_and_")) + "]"
119+
backend_name = backend_name.replace("pyannote", "pyannote.audio")
119120
dummy_file = "# This file is autogenerated by the command `make fix-copies`, do not edit.\n"
120121
dummy_file += "# flake8: noqa\n\n"
121122
dummy_file += "from ..utils import DummyObject, requires_backends\n\n"

0 commit comments

Comments
 (0)