diff --git a/docs/cli.md b/docs/cli.md index f6617f3..c800262 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -58,10 +58,10 @@ This feature is integrated with [spacy-partial-tagger](https://github.com/doccan ## Automatic Speech Recognition -To use this feature, you need to install doccano-client as follows: +To use this feature, you need to install whisper as follows: ```bash -pip install doccano-client[whisper] +pip install git+https://github.com/openai/whisper.git ``` In this feature, you can annotate audio file with OpenAI [Whisper](https://github.com/openai/whisper). For a list of available models, please see the official repository. diff --git a/poetry.lock b/poetry.lock index a739eef..8b40419 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1283,24 +1283,6 @@ python-versions = ">=3.6" [package.extras] watchmedo = ["PyYAML (>=3.10)"] -[[package]] -name = "whisper" -version = "1.0" -description = "" -category = "main" -optional = false -python-versions = "*" -develop = false - -[package.extras] -dev = ["pytest"] - -[package.source] -type = "git" -url = "https://github.com/openai/whisper.git" -reference = "main" -resolved_reference = "d18e9ea5dd2ca57c697e8e55f9e654f06ede25d0" - [[package]] name = "wrapt" version = "1.14.1" @@ -1335,12 +1317,12 @@ docs = ["jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "jaraco.packaging (>=9) [extras] spacy = ["spacy", "spacy-partial-tagger", "tqdm"] -whisper = ["whisper", "tqdm"] +whisper = ["ffmpeg-python", "tqdm"] [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "d8f89e91c3a205dead912e506f793bb44ad4a9ab2a1fe7eeadded9a9ca8d0fec" +content-hash = "1adf7f2ae26bfd5204c3d7002c7a16bfa45f4cd0e8722e538ed17c65bc24fd45" [metadata.files] attrs = [] @@ -1546,7 +1528,6 @@ urllib3 = [] vcrpy = [] wasabi = [] watchdog = [] -whisper = [] wrapt = [] yarl = [] zipp = [] diff --git a/pyproject.toml b/pyproject.toml index b8d2b63..e2b9914 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,6 @@ spacy-partial-tagger = { version = "^0.9.1", optional = true } tqdm = { version = "^4.64.1", optional = true } pydantic = "^1.9.2" requests-toolbelt = "^0.9.1" -whisper = {git = "https://github.com/openai/whisper.git", rev = "main", extras = ["whisper"]} ffmpeg-python = {version = "^0.2.0", extras = ["whisper"]} [tool.poetry.dev-dependencies] @@ -48,7 +47,7 @@ mkdocstrings = {extras = ["python", "crystal"], version = "^0.19.0"} [tool.poetry.extras] spacy = ["spacy", "spacy-partial-tagger", "tqdm"] -whisper = ["whisper", "ffmpeg-python", "tqdm"] +whisper = ["ffmpeg-python", "tqdm"] [build-system] requires = ["poetry-core>=1.0.0"]