termux-stt Logo

termux-stt

v1.0.0 (Unified STT)
PyPI (pip) npm (Node.js) 💖 Sponsor GitHub

Live Audio Showcase & Playback

Interactive speech playback and empirical transcription results generated natively on-device by termux-stt.

⚡ Verified Empirical Run: Audio duration: 37.91s • Inference Engine: whisper.cpp Base • Elapsed Time: 32.79s (RTF: 0.865x) • Sentence Repetition Rate: 0%.

1. Interactive Audio Player

Sample Track: continuous_speech.wav (16kHz Mono PCM, 37.91s)
⬇ Download MP3 (297 KB) ⬇ Download WAV (1.18 MB)

2. Synchronized Transcribed Segments (Live Timeline)

Click any segment to jump playback to that timestamp:

00:00.00 → 00:09.36 Segment 1

"And so my fellow Americans, ask not what your country can do for you, ask what you can

00:09.36 → 00:11.60 Segment 2

do for your country."

00:11.60 → 00:16.18 Segment 3

He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and

00:16.18 → 00:22.00 Segment 4

fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce.

00:22.00 → 00:25.36 Segment 5

Stuff it into you, his belly counseled him.

00:25.36 → 00:29.88 Segment 6

After early nightfall, the yellow lamps would light up here and there, the squalid quarter

00:29.88 → 00:37.14 Segment 7

of the brothels.

3. Multi-Format Export Results

"And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country." He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce. Stuff it into you, his belly counseled him. After early nightfall, the yellow lamps would light up here and there, the squalid quarter of the brothels.
1
00:00:00,000 --> 00:00:09,360
"And so my fellow Americans, ask not what your country can do for you, ask what you can

2
00:00:09,360 --> 00:00:11,600
do for your country."

3
00:00:11,600 --> 00:00:16,180
He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and

4
00:00:16,180 --> 00:00:22,000
fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce.

5
00:00:22,000 --> 00:00:25,360
Stuff it into you, his belly counseled him.

6
00:00:25,360 --> 00:00:29,880
After early nightfall, the yellow lamps would light up here and there, the squalid quarter

7
00:00:29,880 --> 00:00:37,140
of the brothels.
WEBVTT

00:00:00.000 --> 00:00:09.360
"And so my fellow Americans, ask not what your country can do for you, ask what you can

00:00:09.360 --> 00:00:11.600
do for your country."

00:00:11.600 --> 00:00:16.180
He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and

00:00:16.180 --> 00:00:22.000
fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce.

00:00:22.000 --> 00:00:25.360
Stuff it into you, his belly counseled him.

00:00:25.360 --> 00:00:29.880
After early nightfall, the yellow lamps would light up here and there, the squalid quarter

00:00:29.880 --> 00:00:37.140
of the brothels.
{
  "language": "en",
  "duration": 37.91,
  "segments_count": 7,
  "rtf": 0.865,
  "text": "\"And so my fellow Americans, ask not what your country can do for you...\""
}

4. How To Run This on Your Android Phone (3 Lines)

# 1. Install via Termux
pip install termux-stt

# 2. In your Python script or REPL:
from termux_stt import create_engine

engine = create_engine("whisper", model="base", lang="en")
result = engine.transcribe("speech.wav")
print(result.text)

# Save to subtitle
with open("subtitles.srt", "w") as f:
    f.write(result.to_srt())