Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hns/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import numpy as np
import pyperclip
import sounddevice as sd
from faster_whisper import WhisperModel
from rich.console import Console
from rich.progress import Progress, SpinnerColumn, TextColumn, TimeElapsedColumn

Expand Down Expand Up @@ -187,7 +186,9 @@ def _get_model_name(self, model_name: Optional[str]) -> str:

return model

def _load_model(self) -> WhisperModel:
def _load_model(self):
from faster_whisper import WhisperModel

try:
return WhisperModel(self.model_name, device="cpu", compute_type="int8")
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "hns"
version = "1.0.5"
version = "1.0.6"
description = "A simple, privacy-focused speech-to-text CLI tool"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.