mirror of
https://github.com/cactus-compute/needle.git
synced 2026-10-02 05:04:32 +08:00
* feat: add Echo speech-to-text with word timestamps * fix: rename 'phrases' parameter to 'keywords' in transcribe method for clarity * feat: implement Whistle speech-to-text functionality with WAV support and tests * feat: enhance Whistle audio processing with soxr support and update dependencies * fix: update test_samples_accept_lists_arrays_and_float32_bytes to include numpy array input and clean up test_missing_weights_fail_clearly * fix: update Whistle transcribe method to include additional return fields and adjust tests accordingly * feat: add Whistle speech-to-text and comparison functionality with CLI support * fix: align output formatting in status function and related tests for consistency * feat: implement Whistle speech-to-text and comparison functionality with CLI support * feat: enhance Whistle CLI with fetch and download commands, update library path handling, and improve tests * fix: standardize language argument naming in Whistle CLI and related documentation * feat: enhance audio handling and status reporting in Whistle CLI, add tests for new functionality * feat: restructure Whistle CLI by organizing modules and enhancing functionality with new playground and compare features * refactor: remove test_whistle_playground.py and consolidate tests into test_whistle.py * feat: enhance fetch module to support needle3_whistle engine and update related tests
25 lines
654 B
Batchfile
25 lines
654 B
Batchfile
@echo off
|
|
set VENV_DIR=.venv
|
|
|
|
set PYTHON_CMD=
|
|
py -c "import sys; sys.exit(0 if sys.version_info >= (3, 9) else 1)" >nul 2>&1
|
|
if %errorlevel% == 0 (
|
|
set PYTHON_CMD=py
|
|
) else (
|
|
python -c "import sys; sys.exit(0 if sys.version_info >= (3, 9) else 1)" >nul 2>&1
|
|
if %errorlevel% == 0 set PYTHON_CMD=python
|
|
)
|
|
|
|
if "%PYTHON_CMD%"=="" (
|
|
echo Python ^>= 3.9 is required. Install it from https://www.python.org/
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "%VENV_DIR%\Scripts\python.exe" %PYTHON_CMD% -m venv "%VENV_DIR%"
|
|
call "%VENV_DIR%\Scripts\activate.bat"
|
|
|
|
python -m pip install --upgrade pip -q
|
|
python -m pip install -e ".[train,whistle]" -q
|
|
|
|
needle --help
|