Speech Recognition
Speech Recognition
Converting speech to text. Whisper, STT services.
Speech Recognition
Converting speech to text. Whisper, STT services.
Speech Recognition (ASR - Automatic Speech Recognition) is a technology that converts human speech into text that computers can understand. Also called STT (Speech-to-Text), it is used in a variety of fields such as voice assistants, automatic caption generation, call center automation, and medical dictation. As of 2024-2025, OpenAI Whisper, Google Speech-to-Text, and AWS Transcribe are representative services.
Speech recognition technology began with single-digit recognition in the 1950s and advanced rapidly after the deep learning revolution of 2012. In particular, the Whisper model released by OpenAI in 2022 was trained on 680,000 hours of multilingual data, achieved human-level accuracy (WER 5-6%) for English, and became an industry standard by being released as open source.
The core structure of modern speech recognition systems is the encoder-decoder architecture. After the speech signal is converted into a Mel spectrogram, a Transformer-based encoder extracts acoustic features, and the decoder generates text. The Whisper large-v3 model supports more than 100 languages with 1.5 billion parameters, and its Korean recognition accuracy in particular has improved significantly compared to previous models.
Points to consider when adopting speech recognition in practice are accuracy (WER/CER), latency, cost, and privacy. When real-time streaming is required, specialized services such as Deepgram or AssemblyAI are recommended, and Whisper is recommended for offline batch processing. As of 2025, domestic Korean services such as Naver CLOVA and Kakao also show high accuracy in Korean speech recognition.
# OpenAI Whisper를 사용한 음성 인식 예제
# pip install openai-whisper torch
import whisper
# 모델 로드 (tiny, base, small, medium, large-v3)
model = whisper.load_model("base")
# 오디오 파일 음성 인식
result = model.transcribe("audio.mp3", language="ko")
print("인식된 텍스트:", result["text"])
print("신뢰도:", result.get("confidence", "N/A"))
# 세그먼트별 타임스탬프 출력
for segment in result["segments"]:
start = segment["start"]
end = segment["end"]
text = segment["text"]
print(f"[{start:.2f}s - {end:.2f}s] {text}")
# 실시간 스트리밍용 faster-whisper 사용 예제
# pip install faster-whisper
from faster_whisper import WhisperModel
# GPU 사용 시 device="cuda", 없으면 device="cpu"
fast_model = WhisperModel("base", device="cpu", compute_type="int8")
segments, info = fast_model.transcribe("audio.mp3", language="ko")
print(f"언어 감지: {info.language} (확률: {info.language_probability:.2%})")
for segment in segments:
print(f"[{segment.start:.2f}s -> {segment.end:.2f}s] {segment.text}")
| Services | Korean WER | Cost (per hour) | Features |
|---|---|---|---|
| Whisper large-v3 | ~8% | Free (local) | Open source, offline capable |
| OpenAI Whisper API | ~8% | $0.006/min | Simple API, fast response |
| Google Speech-to-Text | ~7% | $0.016/min | Real-time streaming, diverse models |
| AWS Transcribe | ~9% | $0.024/min | AWS ecosystem integration |
| Deepgram | ~10% | $0.0125/min | Ultra-low-latency real-time specialization |
* As of January 2025. WER (Word Error Rate) is better when lower. Measured on general Korean conversation.
"For call center automation, real-time streaming is essential, so we recommend Deepgram or Google STT. Whisper has high accuracy but has latency, so it's better suited for converting meeting minutes in batch processing."
"Most modern ASR systems have a Transformer-based encoder-decoder structure. Whisper takes a Mel spectrogram as input, the encoder extracts acoustic features, and the decoder generates text autoregressively. WER (Word Error Rate) and CER (Character Error Rate) are used as evaluation metrics, and for Korean, CER should also be checked because of the word-unit (eojeol) segmentation characteristics."
"Using faster-whisper lets you run inference up to 4 times faster than the original Whisper. It is based on the CTranslate2 engine, so it also supports INT8 quantization, and it delivers practical speeds even on low-end GPUs or CPUs."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Accuracy drops sharply when there is a lot of background noise. Consider noise-cancelling preprocessing (the noisereduce library) or using a beamforming microphone.
General models have difficulty recognizing specialized terms in medicine, law, and similar fields. Consider registering a custom vocabulary or fine-tuning a domain-specific model.
Structuring a pipeline of audio quality enhancement preprocessing + speech recognition + punctuation insertion/spelling correction postprocessing lets you achieve practical-level accuracy.