whisper
ما الذي تفعله
تشرح هذه المهارة Whisper، نموذج OpenAI للتعرّف على الكلام. وهي مناسبة لمن يحتاج إلى نصوص للاجتماعات والبودكاست والفيديوهات والتسجيلات متعددة اللغات.
متى تستخدمها
- ✓عندما تحتاج إلى نص لحلقة بودكاست أو فيديو أو تسجيل اجتماع.
- ✓عندما يكون الصوت بلغة أخرى وتريد ترجمة إنجليزية له.
- ✓عندما يكون التسجيل مشوّشًا وتحتاج إلى تفريغ متين.
رابط المهارة
https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/18-multimodal/whisper/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“فرّغ حلقة البودكاست هذه مع التوقيتات، وأعطني ترجمة إنجليزية لها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحمّل Whisper واحدًا من ستة أحجام للنموذج، ويعالج الصوت على أجزاء. يُعيد النص مع مقاطع مؤقتة بالتوقيت، ويستطيع ترجمة الكلام إلى الإنجليزية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Whisper - Robust Speech Recognition
OpenAI's multilingual speech recognition model.
When to use Whisper
Use when:
- Speech-to-text transcription (99 languages)
- Podcast/video transcription
- Meeting notes automation
- Translation to English
- Noisy audio transcription
- Multilingual audio processing
Metrics:
- 72,900+ GitHub stars
- 99 languages supported
- Trained on 680,000 hours of audio
- MIT License
Use alternatives instead:
- AssemblyAI: Managed API, speaker diarization
- Deepgram: Real-time streaming ASR
- Google Speech-to-Text: Cloud-based
Quick start
Installation
# Requires Python 3.8-3.11
pip install -U openai-whisper
# Requires ffmpeg
# macOS: brew install ffmpeg
# Ubuntu: sudo apt install ffmpeg
# Windows: choco install ffmpeg
Basic transcription
import whisper
# Load model
model = whisper.load_model("base")
# Transcribe
result = model.transcribe("audio.mp3")
# Print text
print(result["text"])
# Access segments
for segment in result["segments"]:
print(f"[{segment['start']:.2f}s - {segment['end']:.2f}s] {segment['text']}")
Model sizes
# Available models
models = ["tiny", "base", "small", "medium", "large", "turbo"]
# Load specific model
model = whisper.load_model("turbo") # Fastest, good quality
| Model | Parameters | English-only | Multilingual | Speed | VRAM |
|---|---|---|---|---|---|
| tiny | 39M | ✓ | ✓ | ~32x | ~1 GB |
| base | 74M | ✓ | ✓ | ~16x | ~1 GB |
| small | 244M | ✓ | ✓ | ~6x | ~2 GB |
| medium | 769M | ✓ | ✓ | ~2x | ~5 GB |
| large | 1550M | ✗ | ✓ | 1x | ~10 GB |
| turbo | 809M | ✗ | ✓ | ~8x | ~6 GB |
Recommendation: Use turbo for best speed/quality, base for prototyping
Transcription options
Language specification
# Auto-detect language
result = model.transcribe("audio.mp3")
# Specify language (faster)
result = model.transcribe("audio.mp3", language="en")
# Supported: en, es, fr, de, it, pt, ru, ja, ko, zh, and 89 more
Task selection
# Transcription (default)
result = model.transcribe("audio.mp3", task="transcribe")
# Translation to English
result = model.transcribe("spanish.mp3", task="translate")
# Input: Spanish audio → Output: English text
Initial prompt
# Improve accuracy with context
result = model.transcribe(
"audio.mp3",
initial_prompt="This is a technical podcast about machine learning and AI."
)
# Helps with:
# - Technical terms
# - Proper nouns
# - Domain-specific vocabulary
Timestamps
# Word-level timestamps
result = model.transcribe("audio.mp3", word_timestamps=True)
for segment in result["segments"]:
for word in segment["words"]:
print(f"{word['word']} ({word['start']:.2f}s - {word['end']:.2f}s)")
Temperature fallback
# Retry with different temperatures if confidence low
result = model.transcribe(
"audio.mp3",
temperature=(0.0, 0.2, 0.4, 0.6, 0.8, 1.0)
)
Command line usage
# Basic transcription
whisper audio.mp3
# Specify model
whisper audio.mp3 --model turbo
# Output formats
whisper audio.mp3 --output_format txt # Plain text
whisper audio.mp3 --output_format srt # Subtitles
whisper audio.mp3 --output_format vtt # WebVTT
whisper audio.mp3 --output_format json # JSON with timestamps
# Language
whisper audio.mp3 --language Spanish
# Translation
whisper spanish.mp3 --task translate
Batch processing
import os
audio_files = ["file1.mp3", "file2.mp3", "file3.mp3"]
for audio_file in audio_files:
print(f"Transcribing {audio_file}...")
result = model.transcribe(audio_file)
# Save to file
output_file = audio_file.replace(".mp3", ".txt")
with open(output_file, "w") as f:
f.write(result["text"])
Real-time transcription
# For streaming audio, use faster-whisper
# pip install faster-whisper
from faster_whisper import WhisperModel
model = WhisperModel("base", device="cuda", compute_type="float16")
# Transcribe with streaming
segments, info = model.transcribe("audio.mp3", beam_size=5)
for segment in segments:
print(f"[{segment.start:.2f}s -> {segment.end:.2f}s] {segment.text}")
GPU acceleration
import whisper
# Automatically uses GPU if available
model = whisper.load_model("turbo")
# Force CPU
model = whisper.load_model("turbo", device="cpu")
# Force GPU
model = whispe
الأسئلة الشائعة
أي حجم للنموذج أختار؟
تذكر المهارة أحجامًا من tiny بـ 39 مليون معامل إلى large بـ 1550 مليون، مع turbo كخيار سريع.
هل أحتاج إلى تثبيت شيء آخر؟
نعم. تقول المهارة إن ffmpeg يجب أن يكون مثبتًا، وإن Python من 3.8 إلى 3.11 مطلوب.
ما اللغات المشمولة؟
تقول المهارة إن 99 لغة مدعومة.
التفاصيل
الوصف الأصلي من المؤلف
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
الشعبية
- نجوم GitHub
- 14k
- الترتيب
- #11238
- الترخيص
- MIT
- آخر تحديث
- 10/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
autoresearch
14kيرشد وكيلك خلال مشروع بحث كامل في الذكاء الاصطناعي، من مراجعة الأدبيات إلى التجارب والكتابة، بدورة متكررة من الاختبار والمراجعة.
prompt-guard
14kيتيح لوكيلك فحص النصوص بحثًا عن محاولات حقن الأوامر وكسر القيود قبل وصولها إلى تطبيق الذكاء الاصطناعي، باستخدام مصنّف Meta الصغير.
pytorch-fsdp2
14kيوضح لوكيلك كيفية إضافة تجزئة PyTorch FSDP2 إلى سكربت التدريب، حتى تُقسَّم النماذج الكبيرة على عدة وحدات معالجة رسومية وتُحفظ بشكل صحيح.
ml-training-recipes
14kيمنح وكيلك وصفات تدريب مجربة للشبكات العصبية، تشمل اختيار النموذج والمحسّنات ومعدلات التعلم ومعالجة قفزات الخسارة.
مهارات مشابهة
openai-whisper-api
394kيتيح لوكيلك تحويل التسجيل الصوتي إلى نص عبر خدمة النسخ لدى OpenAI، مع خيارات لتمييز المتحدثين وملفات الإخراج.
openai-whisper
394kيساعد وكيلك على نسخ الصوت على جهازك باستخدام أمر Whisper، دون مفتاح API ودون الحاجة إلى رفع الملفات إلى السحابة.
sag
394kيساعد وكيلك على قراءة النص بصوت عالٍ بأصوات ElevenLabs وتشغيل الناتج على حاسوبك، مع نصائح للنطق والتعبير.