From e202e4bb0a4448222542647558bc5cbc236d5091 Mon Sep 17 00:00:00 2001 From: gabrieldemarmiesse Date: Wed, 18 Jun 2025 10:32:31 +0000 Subject: [PATCH] Add uv instructions and ignore the sample audio file --- .gitignore | 3 ++- README.md | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7b004e5..09cda53 100644 --- a/.gitignore +++ b/.gitignore @@ -191,4 +191,5 @@ cython_debug/ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data # refer to https://docs.cursor.com/context/ignore-files .cursorignore -.cursorindexingignore \ No newline at end of file +.cursorindexingignore +bria.mp3 diff --git a/README.md b/README.md index ed7100b..2ffafb2 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,12 @@ with version 0.2.5 or later, which can be installed via pip. python -m moshi.run_inference --hf-repo kyutai/stt-2.6b-en bria.mp3 ``` +If you have `uv` installed, you can skip the installation step and run directly: +```bash +uvx --with moshi python -m moshi.run_inference --hf-repo kyutai/stt-2.6b-en bria.mp3 +``` +It will install the moshi package in a temporary environment and run the speech-to-text. + ### MLX implementation Hugging Face @@ -44,6 +50,13 @@ with version 0.2.5 or later, which can be installed via pip. python -m moshi_mlx.run_inference --hf-repo kyutai/stt-2.6b-en-mlx bria.mp3 --temp 0 ``` +If you have `uv` installed, you can skip the installation step and run directly: +```bash +uvx --with moshi-mlx python -m moshi_mlx.run_inference --hf-repo kyutai/stt-2.6b-en-mlx bria.mp3 --temp 0 + +``` +It will install the moshi package in a temporary environment and run the speech-to-text. + ### Rust implementation Hugging Face