termux-stt 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +39 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -64,33 +64,54 @@
64
64
 
65
65
  ---
66
66
 
67
- ## 1. Quick Scenario Playbook
67
+ ## 1. Installation & Provisioning
68
68
 
69
- ### Installation
69
+ ### Method A: 1-Click Automated Installation (Recommended)
70
+ `termux-stt install` automatically provisions lightweight system dependencies (`ffmpeg`, `libbluray`, `libxml2`) and fetches the **pre-compiled Bionic ARM64 `whisper-cli` binary from GitHub Releases in <1s** (with automatic local Clang/NEON compilation fallback if offline).
70
71
 
71
72
  #### Python SDK:
72
73
  ```bash
73
74
  pkg update -y && pkg install python ffmpeg git -y
74
- pip install termux-stt && termux-stt install
75
+ pip install --upgrade termux-stt && termux-stt install
75
76
  ```
76
77
 
77
78
  #### Node.js / TypeScript:
78
79
  ```bash
79
80
  pkg update -y && pkg install nodejs-lts ffmpeg git -y
80
- ---
81
+ npm install -g termux-stt && termux-stt install
82
+ ```
81
83
 
82
- ## 1. Quick Scenario Playbook
84
+ ---
83
85
 
84
- ### 1-Click Installation
86
+ ### Method B: Manual Pre-Compiled Binary Download (Direct GitHub Release)
87
+ If you prefer to manually download the pre-compiled ARM64 native binary without building from source:
85
88
 
86
- #### Python SDK:
87
89
  ```bash
88
- pip install termux-stt && termux-stt install
90
+ # 1. Download official ARM64 Bionic binary directly into ~/.local/bin
91
+ mkdir -p ~/.local/bin
92
+ curl -sL "https://github.com/uno-km/termux-stt/releases/download/v1.1.1/whisper-cli-arm64-android" -o ~/.local/bin/whisper-cli
93
+ chmod 755 ~/.local/bin/whisper-cli
94
+ ln -sf ~/.local/bin/whisper-cli ~/.local/bin/whisper-cpp
95
+
96
+ # 2. Ensure PATH includes ~/.local/bin
97
+ export PATH=$HOME/.local/bin:$PATH
98
+
99
+ # 3. Verify installation
100
+ whisper-cli --help
89
101
  ```
90
102
 
91
- #### Node.js / TypeScript:
103
+ ---
104
+
105
+ ### Method C: Manual Source Compilation (From Scratch)
106
+ If you wish to compile `whisper.cpp` directly with Snapdragon / Cortex NEON vector optimizations:
107
+
92
108
  ```bash
93
- npm install -g termux-stt && termux-stt install
109
+ pkg install -y clang cmake make git ffmpeg
110
+ git clone --depth 1 https://github.com/ggerganov/whisper.cpp.git ~/tmp/whisper.cpp
111
+ cmake -B ~/tmp/whisper.cpp/build -S ~/tmp/whisper.cpp -DWHISPER_NEON=ON -DCMAKE_BUILD_TYPE=Release
112
+ cmake --build ~/tmp/whisper.cpp/build -j$(nproc)
113
+ cp ~/tmp/whisper.cpp/build/bin/whisper-cli ~/.local/bin/whisper-cli
114
+ chmod 755 ~/.local/bin/whisper-cli
94
115
  ```
95
116
 
96
117
  ---
@@ -177,9 +198,9 @@ for seg in result.segments:
177
198
 
178
199
  *Output Example:*
179
200
  ```text
180
- [Speaker_0] (0.0s - 3.5s): 오늘 경제 브리핑을 시작하겠습니다.
181
- [Speaker_1] (3.8s - 7.2s): 네, 오늘 코스피 지수가 외국인 순매수로 상승 마감했습니다.
182
- [Speaker_0] (7.5s - 10.1s): 반도체 섹터 동향은 어떤가요?
201
+ [Speaker_0] (0.0s - 3.5s): Welcome to today's financial intelligence briefing.
202
+ [Speaker_1] (3.8s - 7.2s): Major equity indices closed higher following sustained foreign institutional inflows.
203
+ [Speaker_0] (7.5s - 10.1s): What is the latest outlook on the semiconductor sector?
183
204
  ```
184
205
 
185
206
  ---
@@ -258,7 +279,7 @@ engine = termux_stt.create_engine(
258
279
  threads=4, # CPU threads (defaults to big cores count)
259
280
  vad=True, # Enable Silero-VAD silence stripping
260
281
  quantization="q5_1", # "f16" | "q8_0" | "q5_1" | "q4_0"
261
- prompt="경제 브리핑", # Initial decoding context / vocabulary
282
+ prompt="Financial briefing", # Initial decoding context / vocabulary
262
283
  beam_size=5, # Beam search beam size
263
284
  temperature=0.0 # Sampling temperature
264
285
  )
@@ -317,7 +338,7 @@ termux-stt benchmark # Run performance benchmark suite
317
338
 
318
339
  ## 7. 🔍 15-Part Empirical Research Blog Series
319
340
 
320
- This framework is built upon the exhaustive 15-part research series published on [Eunho Kim's Technical Blog (우노킴 티스토리)](https://uno-kim.tistory.com/):
341
+ This framework is built upon the exhaustive 15-part research series published on [Eunho Kim's Technical Engineering Blog](https://uno-kim.tistory.com/):
321
342
 
322
343
  1. [[Whisper.cpp] #1. Edge Agent AI: Whisper.cpp Speech Processing (Base vs Tiny)](https://uno-kim.tistory.com/467)
323
344
  2. [[Audio Extraction] #2. Extracting Specific Audio Segments on Android](https://uno-kim.tistory.com/468)
@@ -337,18 +358,18 @@ This framework is built upon the exhaustive 15-part research series published on
337
358
 
338
359
  ---
339
360
 
340
- ## ⚖️ Disclaimer (면책 조항)
361
+ ## ⚖️ Disclaimer
341
362
 
342
363
  > **Disclaimer:**
343
364
  > *termux-stt is an independent open-source project developed for the Android Termux environment and is not officially affiliated with, endorsed by, or sponsored by the Termux project, OpenAI, or any other third party.*
344
365
  >
345
- > *(본 프로젝트는 안드로이드 Termux 환경을 위해 개발된 독립적인 오픈소스 라이브러리이며, Termux 공식 프로젝트, OpenAI 및 기타 제3자와 직접적인 제휴 관계가 아닙니다.)*
366
+ > *This project is an independent open-source library engineered for Android Termux and is not officially affiliated with or endorsed by the Termux project, OpenAI, or Google LLC.*
346
367
 
347
368
  ---
348
369
 
349
370
  ## 📄 License
350
371
 
351
- Released under the **MIT License**. Maintained by **AMEVA Foundation & uno-km (쌩초보코딩단) / Eunho Kim**.
372
+ Released under the **MIT License**. Maintained by **AMEVA Foundation & uno-km / Eunho Kim**.
352
373
 
353
374
 
354
375
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-stt",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Production-Grade On-Device Speech-to-Text & Speaker Diarization Framework for Android Termux & Samsung Galaxy",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",