Skip to main content

Installation

Install and run hns. This guide covers how to install hns, configure it, and upgrade to the latest version.

Prerequisites

hns is a Python application. While uv and pipx manage Python installations within isolated environments, having a system Python (3.10+) available is recommended.

Run Without Installing

For a quick trial or infrequent use, you can run hns directly without a permanent installation using uvx. If you have uv installed, uvx comes bundled with it.

uvx hns

This will run hns using a temporary, isolated virtual environment. All of the usual hns commands and features will work with uvx hns.

Installation

We recommend installing hns with uv for the best performance. pipx is also an excellent choice.

uv is an extremely fast Python package and project manager, written in Rust.

Install hns with uv
uv tool install hns

Installing uv: If you don't have uv installed yet, you can install it with the following commands. Check the detailed instructions in the uv installation guide.

curl -LsSf https://astral.sh/uv/install.sh | sh
First Run

The first time you transcribe with hns, it will download the configured Whisper model. This requires an internet connection. Subsequent transcriptions using the same model are fully offline.

Post-Installation: Quick Configuration (Optional)

You can control the transcription model and language using environment variables.

  • Model Selection: Override the default base model.
    export HNS_WHISPER_MODEL="small" # Options: tiny, base, small, medium, large-v3, etc.
  • Language: Force a specific language instead of auto-detecting.
    export HNS_LANG="ja" # ISO 639-1 code

For detailed instructions, including how to set these variables permanently, see the Configuration guide.

Upgrading to the Latest Version

Keep hns up-to-date to get the latest features and bug fixes.

How was hns installed?

If you don't remember the installation method, these commands can help you find out.

uv tool list | grep hns

Upgrade Commands

Once you know the method, use the corresponding command to upgrade.

uv tool upgrade hns
uvx

uvx does not require upgrading. It automatically fetches the latest version of hns every time it runs. To use a specific version, you can pin it: uvx hns@1.0.1.

Verification

To confirm hns is installed and working correctly, run:

hns --version
hns --list-models

Now that hns is installed, you're ready to start transcribing! Check out the Quick Start guide to make your first transcription. After that, explore the use cases to integrate hns into your workflows.