]> git.giacomolli.uk - onechat/blob - nix/voice-model.nix
Benchmark local voice transcription
[onechat] / nix / voice-model.nix
1 { fetchurl }:
2 let
3 revision = "5359861c739e955e79d9a303bcbc70fb988958b1";
4 model =
5 name: hash:
6 fetchurl {
7 inherit name hash;
8 url = "https://huggingface.co/ggerganov/whisper.cpp/resolve/${revision}/${name}";
9 };
10 in
11 {
12 small = model "ggml-small.bin" "sha256-G+OpsgY4Z7k35k4ux0gzZKeZF+FX+pjF2UtcH//qmHs=";
13 turbo = model "ggml-large-v3-turbo-q5_0.bin" "sha256-OUIhcJzVrR9AxG5gMcphvOiJMebgiMGIKUxtWlX/p+I=";
14 }