Merge pull request #295456 from mweinelt/wyoming-faster-whisper-2.0.0
wyoming-faster-whisper: 1.1.0- -> 2.0.0
This commit is contained in:
commit
92b6792769
|
@ -37,22 +37,13 @@ in
|
||||||
enable = mkEnableOption (mdDoc "Wyoming faster-whisper server");
|
enable = mkEnableOption (mdDoc "Wyoming faster-whisper server");
|
||||||
|
|
||||||
model = mkOption {
|
model = mkOption {
|
||||||
# Intersection between available and referenced models here:
|
type = str;
|
||||||
# https://github.com/rhasspy/models/releases/tag/v1.0
|
|
||||||
# https://github.com/rhasspy/rhasspy3/blob/wyoming-v1/programs/asr/faster-whisper/server/wyoming_faster_whisper/download.py#L17-L27
|
|
||||||
type = enum [
|
|
||||||
"tiny"
|
|
||||||
"tiny-int8"
|
|
||||||
"base"
|
|
||||||
"base-int8"
|
|
||||||
"small"
|
|
||||||
"small-int8"
|
|
||||||
"medium-int8"
|
|
||||||
];
|
|
||||||
default = "tiny-int8";
|
default = "tiny-int8";
|
||||||
example = "medium-int8";
|
example = "Systran/faster-distil-whisper-small.en";
|
||||||
description = mdDoc ''
|
description = mdDoc ''
|
||||||
Name of the voice model to use.
|
Name of the voice model to use.
|
||||||
|
|
||||||
|
Check the [2.0.0 release notes](https://github.com/rhasspy/wyoming-faster-whisper/releases/tag/v2.0.0) for possible values.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,30 +1,21 @@
|
||||||
{ lib
|
{ lib
|
||||||
, python3
|
, python3Packages
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "wyoming-faster-whisper";
|
pname = "wyoming-faster-whisper";
|
||||||
version = "1.1.0";
|
version = "2.0.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rhasspy";
|
owner = "rhasspy";
|
||||||
repo = "wyoming-faster-whisper";
|
repo = "wyoming-faster-whisper";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-RD6J/Q7kvd+sgTpR6ERyV+D8gpm0fF38L3U/Jp7gOgk=";
|
hash = "sha256-CeFSxL2Mn9lgboKghbteCl6VMTqruJgrI0io+TdaV5k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = with python3Packages; [
|
||||||
(fetchpatch {
|
|
||||||
# fix setup.py
|
|
||||||
url = "https://github.com/rhasspy/wyoming-faster-whisper/commit/cdd1536997a091dcf9054da9ff424a2603067755.patch";
|
|
||||||
hash = "sha256-LGYo21FhKGXcAN9DjXzwIRqkOzTz3suXiQdgGrJSDBw=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
|
||||||
setuptools
|
setuptools
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
@ -33,9 +24,8 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
"wyoming"
|
"wyoming"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
ctranslate2
|
faster-whisper
|
||||||
tokenizers
|
|
||||||
wyoming
|
wyoming
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -47,6 +37,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/rhasspy/wyoming-faster-whisper/releases/tag/v${version}";
|
||||||
description = "Wyoming Server for Faster Whisper";
|
description = "Wyoming Server for Faster Whisper";
|
||||||
homepage = "https://github.com/rhasspy/wyoming-faster-whisper";
|
homepage = "https://github.com/rhasspy/wyoming-faster-whisper";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user