Add Wyoming protocol ASR server and nix devshell
New wyoming-whisper-rs binary crate implementing the Wyoming protocol over TCP, making whisper-rs usable with Home Assistant's voice pipeline. Includes nix flake devshell with Vulkan, ROCm/hipBLAS, clippy, and rustfmt support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d38738df8d
commit
50fdb08a38
12 changed files with 840 additions and 1 deletions
56
flake.nix
Normal file
56
flake.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
pkgs.rustc
|
||||
pkgs.cargo
|
||||
pkgs.clippy
|
||||
pkgs.rustfmt
|
||||
pkgs.cmake
|
||||
pkgs.pkg-config
|
||||
pkgs.shaderc
|
||||
pkgs.rocmPackages.llvm.clang
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pkgs.libclang.lib
|
||||
pkgs.openssl
|
||||
pkgs.vulkan-headers
|
||||
pkgs.vulkan-loader
|
||||
pkgs.rocmPackages.clr
|
||||
pkgs.rocmPackages.hipblas
|
||||
pkgs.rocmPackages.rocblas
|
||||
pkgs.rocmPackages.rocm-runtime
|
||||
];
|
||||
|
||||
env = {
|
||||
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
|
||||
VULKAN_SDK = "${pkgs.vulkan-headers}";
|
||||
HIP_PATH = "${pkgs.rocmPackages.clr}";
|
||||
BINDGEN_EXTRA_CLANG_ARGS = builtins.toString [
|
||||
"-isystem ${pkgs.libclang.lib}/lib/clang/${pkgs.lib.versions.major pkgs.libclang.version}/include"
|
||||
"-isystem ${pkgs.glibc.dev}/include"
|
||||
];
|
||||
};
|
||||
|
||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
||||
pkgs.vulkan-loader
|
||||
pkgs.rocmPackages.clr
|
||||
pkgs.rocmPackages.hipblas
|
||||
pkgs.rocmPackages.rocblas
|
||||
pkgs.rocmPackages.rocm-runtime
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue