termux-stt 1.1.3 → 1.1.5

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 (3) hide show
  1. package/README.pypi.md +34 -0
  2. package/index.js +14 -0
  3. package/package.json +5 -2
package/README.pypi.md ADDED
@@ -0,0 +1,34 @@
1
+ # termux-stt
2
+
3
+ > **On-Device Hybrid Speech-to-Text & Speaker Diarization Engine for Android Termux**
4
+ > *Whisper.cpp · Vosk · Sherpa-ONNX · Non-Root ARM64 Execution · 128d Vector Diarization*
5
+
6
+ ---
7
+
8
+ ## ⚡ 5-Minute Quickstart
9
+
10
+ ### Python Installation
11
+
12
+ `ash
13
+ # In Android Termux:
14
+ pkg update && pkg install -y python ffmpeg git
15
+ pip install termux-stt
16
+ `
17
+
18
+ ### Python SDK Usage
19
+
20
+ `python
21
+ from termux_stt import STTEngine
22
+
23
+ engine = STTEngine(backend="whisper")
24
+ result = engine.transcribe("sample.wav")
25
+ print("Transcription:", result.text)
26
+ `
27
+
28
+ ---
29
+
30
+ ## 📚 Official Documentation
31
+
32
+ - **Official Web Documentation**: [https://uno-km.vercel.app/lib/stt/](https://uno-km.vercel.app/lib/stt/)
33
+ - **GitHub Repository**: [https://github.com/uno-km/termux-stt](https://github.com/uno-km/termux-stt)
34
+ - **License**: Apache-2.0
package/index.js CHANGED
@@ -21,7 +21,21 @@ function createEngine(engineName = 'whisper', options = {}) {
21
21
  }
22
22
  }
23
23
 
24
+ class TermuxSTT {
25
+ constructor(options = {}) {
26
+ const engineName = options.engine || 'whisper';
27
+ this.engine = createEngine(engineName, options);
28
+ }
29
+ transcribe(filePath, options = {}) {
30
+ return this.engine.transcribe(filePath, options);
31
+ }
32
+ diarize(filePath, options = {}) {
33
+ return this.engine.diarize(filePath, options);
34
+ }
35
+ }
36
+
24
37
  module.exports = {
38
+ TermuxSTT,
25
39
  createEngine,
26
40
  Engine,
27
41
  TranscriptResult,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "termux-stt",
3
- "version": "1.1.3",
4
- "description": "Production-Grade On-Device Speech-to-Text & Speaker Diarization Framework for Android Termux & Samsung Galaxy",
3
+ "version": "1.1.5",
4
+ "description": "On-device Speech-to-Text & speaker diarization framework utilizing device resources for Android Termux",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "bin": {
@@ -46,6 +46,9 @@
46
46
  "url": "https://github.com/uno-km/termux-stt/issues"
47
47
  },
48
48
  "homepage": "https://uno-km.github.io/termux-stt/",
49
+ "dependencies": {
50
+ "ameva-vulkan-runtime": ">=1.0.0"
51
+ },
49
52
  "engines": {
50
53
  "node": ">=16.0.0"
51
54
  }