Speech To Text logo

Speech To Text

Community
imMamdouhaboammar
speech-to-text

Directs the agent to use faster-whisper as the high-accuracy speech-to-text / Voice-over transcription engine. Use when the task requires converting audio, voice narration, or Voice-over tracks into text for AI pipelines, subtitles, or content workflows.

Overview

PublisherimMamdouhaboammar
Repositorymotion-graphics-skills
Skill namespeech-to-text
Stars
51
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by imMamdouhaboammar on GitHub. Read the source before you install it.

Installation

Install the Speech To Text AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/imMamdouhaboammar/motion-graphics-skills/tree/main/.agents/skills/speech-to-text
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/imMamdouhaboammar/motion-graphics-skills.git /tmp/motion-graphics-skills
mkdir -p .claude/skills
cp -r /tmp/motion-graphics-skills/.agents/skills/speech-to-text .claude/skills/speech-to-text
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Speech To Text in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Speech To Text on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Speech To Text is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Speech-to-Text via faster-whisper

Engine

Always use faster-whisper as the transcription engine.
faster-whisper is a reimplementation of OpenAI's Whisper using CTranslate2 — up to 4× faster than the original with lower memory usage, while maintaining identical or superior accuracy.

Do not default to openai-whisper, whisper.cpp, or any other engine unless the user explicitly requests it.


When to Apply This Skill

  • Transcribing audio files (.mp3, .wav, .ogg, .flac, .m4a, .mp4, etc.)
  • Extracting Voice-over (VO) narration from video or podcast files
  • Building AI pipelines that ingest spoken content (agents, RAG, subtitle generators)
  • Generating timestamped transcripts, SRT/VTT subtitle files, or speaker-diarized output

Setup

bash
# Install (requires Python 3.8+)
pip install faster-whisper

# Optional: GPU acceleration (requires CUDA 11.x / 12.x + cuDNN)
pip install faster-whisper[gpu]

Core Usage Pattern

python
from faster_whisper import WhisperModel

# Model sizes: "tiny", "base", "small", "medium", "large-v2", "large-v3"
# device: "cuda" (GPU) or "cpu"
# compute_type: "float16" (GPU), "int8" (CPU, fastest), "float32"

model = WhisperModel("large-v3", device="cuda", compute_type="float16")

segments, info = model.transcribe(
    "audio.mp3",
    beam_size=5,
    language="ar",          # Force language or omit for auto-detect
    vad_filter=True,        # Filter silence with Voice Activity Detection
    vad_parameters=dict(min_silence_duration_ms=500),
)

print(f"Detected language: {info.language} (prob: {info.language_probability:.2f})")

for segment in segments:
    print(f"[{segment.start:.2f}s → {segment.end:.2f}s]  {segment.text}")

Model Selection Guide

ModelSizeSpeedAccuracyBest For
tiny~39 MB⚡⚡⚡⚡⚡★★☆☆☆Quick drafts, real-time previews
base~74 MB⚡⚡⚡⚡★★★☆☆Fast lightweight transcription
small~244 MB⚡⚡⚡★★★★☆Balanced — good default for many tasks
medium~769 MB⚡⚡★★★★☆Better accuracy, moderate speed
large-v3~1.5 GB⚡★★★★★Recommended for production & AI pipelines

Default to large-v3 unless speed or memory constraints apply.


Voice-over (VO) Transcription — Best Practices

python
segments, info = model.transcribe(
    "voiceover.mp4",
    beam_size=5,
    vad_filter=True,                  # Remove silence between VO segments
    word_timestamps=True,             # Enable per-word timestamps
    condition_on_previous_text=False, # Prevent hallucination on long VO tracks
)

for segment in segments:
    for word in segment.words:
        print(f"[{word.start:.2f}s] {word.word}")

Key flags for VO accuracy

FlagValueWhy
vad_filterTrueStrips background music pauses; reduces hallucinated text
word_timestampsTrueEnables word-level SRT/VTT subtitle generation
condition_on_previous_textFalsePrevents the model from hallucinating filler between segments
beam_size5Standard accuracy/speed trade-off (increase to 10 for max accuracy)
temperature0Greedy decoding — more deterministic output for clean VO narration

Export to SRT Subtitles

python
def format_timestamp(seconds: float) -> str:
    h = int(seconds // 3600)
    m = int((seconds % 3600) // 60)
    s = int(seconds % 60)
    ms = int((seconds % 1) * 1000)
    return f"{h:02}:{m:02}:{s:02},{ms:03}"

segments, _ = model.transcribe("voiceover.mp4", word_timestamps=True, vad_filter=True)

with open("output.srt", "w", encoding="utf-8") as f:
    for i, seg in enumerate(segments, start=1):
        f.write(f"{i}\n")
        f.write(f"{format_timestamp(seg.start)} --> {format_timestamp(seg.end)}\n")
        f.write(f"{seg.text.strip()}\n\n")

CPU-Only Mode (No GPU)

python
# Use int8 quantization for fastest CPU inference
model = WhisperModel("medium", device="cpu", compute_type="int8")

Multilingual & Arabic Support

faster-whisper inherits full Whisper multilingual support. For Arabic content:

python
segments, info = model.transcribe(
    "arabic_voiceover.mp3",
    language="ar",          # Explicitly set to avoid mis-detection
    beam_size=5,
    vad_filter=True,
    word_timestamps=True,
)

Set language="ar" explicitly when transcribing Arabic audio to avoid accidental language mis-detection on short segments.


Do Not

  • ❌ Use openai-whisper (the original) — it is significantly slower without accuracy gains
  • ❌ Skip vad_filter=True on Voice-over files — it causes hallucinated text in silent gaps
  • ❌ Set condition_on_previous_text=True on long-form narration — it causes drift and repetition
  • ❌ Use tiny or base models for AI pipeline output — inaccuracies propagate downstream

References

Frequently asked questions

What does the Speech To Text AI skill do?

Directs the agent to use faster-whisper as the high-accuracy speech-to-text / Voice-over transcription engine. Use when the task requires converting audio, voice narration, or Voice-over tracks into text for AI pipelines, subtitles, or content workflows.

Why use Speech To Text on TypingMind?

Because you install it once and use it with any model. Speech To Text is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Speech To Text in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/imMamdouhaboammar/motion-graphics-skills/tree/main/.agents/skills/speech-to-text. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Speech To Text?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Speech To Text?

As many as you like. As long as a model supports skills, you can use Speech To Text with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Speech To Text AI skill free?

Yes. It is published on GitHub by imMamdouhaboammar under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇