Add flake.nix with portaudio + CUDA, microphone support in transcribe.py
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
description = "Cohere Transcribe dev environment with microphone support";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }: {
|
||||
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
|
||||
buildInputs = with nixpkgs.legacyPackages.x86_64-linux; [
|
||||
portaudio
|
||||
cudaPackages.cudatoolkit
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${cudaPackages.cudatoolkit}/lib:$LD_LIBRARY_PATH"
|
||||
echo "Dev shell ready - microphone input enabled"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user