MediaTek Research Breeze 3:讓 AI 聽懂台語、說出台味、守護台灣 https://www.mediatek.com/zh-tw/tek-talk-blogs/mediatek-research-breeze-3
Integration with HuggingFace's Breeze ASR 26 model for automatic speech recognition in Taiwanese Hokkien (台語/Taigi).
Breeze ASR 26 is a state-of-the-art automatic speech recognition (ASR) model developed by MediaTek Research for Taiwanese Hokkien. It:
cd breeze-asr-26-project
# 1. 安裝依賴
uv sync
# 2. 下載模型到本地(約 3-6 GB,只需執行一次)
uv run download-model
# 3. 啟動即時轉錄
uv run live-transcribe
from transformers import pipeline
# Load model
pipe = pipeline("automatic-speech-recognition", model="MediaTek-Research/Breeze-ASR-26")
# Transcribe
result = pipe("audio.wav")
print(result['text'])
from main import BreezASR26
# Initialize
asr = BreezASR26()
# Transcribe file
result = asr.transcribe_file("your_audio.wav")
print(f"Text: {result['text']}")
# Interactive mode with menu
uv run live-transcribe
# Or use in code:
from main import BreezASR26
asr = BreezASR26()
result = asr.start_microphone_stream(duration=5.0)
print(result['text'])
See MICROPHONE_GUIDE.md for detailed microphone documentation.
import torch
import librosa
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
# Load model
processor = AutoProcessor.from_pretrained("MediaTek-Research/Breeze-ASR-26")
model = AutoModelForSpeechSeq2Seq.from_pretrained("MediaTek-Research/Breeze-ASR-26")
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
# Load audio
audio, sr = librosa.load("audio.wav", sr=16000)
# Process & transcribe
inputs = processor(audio, sampling_rate=sr, return_tensors="pt")
with torch.no_grad():
output = model.generate(**inputs)
# Decode
transcription = processor.batch_decode(output, skip_special_tokens=True)
print(transcription[0])
breeze-asr-26-project/
├── requirements.txt # Python dependencies
├── README.md # This file
├── main.py # Main BreezASR26 wrapper class
├── example_inference.py # Example usage scripts
└── sample_audio.wav # (Optional) Sample audio file
The BreezASR26 class provides:
transcribe_file(audio_path) - Transcribe from audio filetranscribe_array(audio_array, sampling_rate) - Transcribe from numpy arraytranscribe_url(audio_url) - Transcribe from URLload_audio(audio_path, sr) - Load audio using librosapython main.py
from main import BreezASR26
asr = BreezASR26()
result = asr.transcribe_file("path/to/your/audio.wav")
print(f"Transcription: {result['text']}")
from pathlib import Path
from main import BreezASR26
asr = BreezASR26()
audio_files = Path("audio_folder").glob("*.wav")
for audio_file in audio_files:
result = asr.transcribe_file(str(audio_file))
print(f"{audio_file.name}: {result['text']}")
| Property | Value |
|---|---|
| Model ID | MediaTek-Research/Breeze-ASR-26 |
| Base Model | Whisper-large-v2 |
| Language | Taiwanese Hokkien (Taigi) |
| Output Format | Mandarin Chinese characters |
| Training Data | ~10,000 hours synthetic speech |
| Performance | CER ~30.13% |
| Task | Automatic Speech Recognition |
HF_HOME environment variable if neededModel: Licensed by MediaTek Research Code: MIT License
For issues with the model, visit: https://huggingface.co/MediaTek-Research/Breeze-ASR-26/discussions
3 commits
Python
79.0%
HTML
21.0%
MediaTek Research Breeze 3:讓 AI 聽懂台語、說出台味、守護台灣 https://www.mediatek.com/zh-tw/tek-talk-blogs/mediatek-research-breeze-3
Integration with HuggingFace's Breeze ASR 26 model for automatic speech recognition in Taiwanese Hokkien (台語/Taigi).
Breeze ASR 26 is a state-of-the-art automatic speech recognition (ASR) model developed by MediaTek Research for Taiwanese Hokkien. It:
cd breeze-asr-26-project
# 1. 安裝依賴
uv sync
# 2. 下載模型到本地(約 3-6 GB,只需執行一次)
uv run download-model
# 3. 啟動即時轉錄
uv run live-transcribe
from transformers import pipeline
# Load model
pipe = pipeline("automatic-speech-recognition", model="MediaTek-Research/Breeze-ASR-26")
# Transcribe
result = pipe("audio.wav")
print(result['text'])
from main import BreezASR26
# Initialize
asr = BreezASR26()
# Transcribe file
result = asr.transcribe_file("your_audio.wav")
print(f"Text: {result['text']}")
# Interactive mode with menu
uv run live-transcribe
# Or use in code:
from main import BreezASR26
asr = BreezASR26()
result = asr.start_microphone_stream(duration=5.0)
print(result['text'])
See MICROPHONE_GUIDE.md for detailed microphone documentation.
import torch
import librosa
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
# Load model
processor = AutoProcessor.from_pretrained("MediaTek-Research/Breeze-ASR-26")
model = AutoModelForSpeechSeq2Seq.from_pretrained("MediaTek-Research/Breeze-ASR-26")
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
# Load audio
audio, sr = librosa.load("audio.wav", sr=16000)
# Process & transcribe
inputs = processor(audio, sampling_rate=sr, return_tensors="pt")
with torch.no_grad():
output = model.generate(**inputs)
# Decode
transcription = processor.batch_decode(output, skip_special_tokens=True)
print(transcription[0])
breeze-asr-26-project/
├── requirements.txt # Python dependencies
├── README.md # This file
├── main.py # Main BreezASR26 wrapper class
├── example_inference.py # Example usage scripts
└── sample_audio.wav # (Optional) Sample audio file
The BreezASR26 class provides:
transcribe_file(audio_path) - Transcribe from audio filetranscribe_array(audio_array, sampling_rate) - Transcribe from numpy arraytranscribe_url(audio_url) - Transcribe from URLload_audio(audio_path, sr) - Load audio using librosapython main.py
from main import BreezASR26
asr = BreezASR26()
result = asr.transcribe_file("path/to/your/audio.wav")
print(f"Transcription: {result['text']}")
from pathlib import Path
from main import BreezASR26
asr = BreezASR26()
audio_files = Path("audio_folder").glob("*.wav")
for audio_file in audio_files:
result = asr.transcribe_file(str(audio_file))
print(f"{audio_file.name}: {result['text']}")
| Property | Value |
|---|---|
| Model ID | MediaTek-Research/Breeze-ASR-26 |
| Base Model | Whisper-large-v2 |
| Language | Taiwanese Hokkien (Taigi) |
| Output Format | Mandarin Chinese characters |
| Training Data | ~10,000 hours synthetic speech |
| Performance | CER ~30.13% |
| Task | Automatic Speech Recognition |
HF_HOME environment variable if neededModel: Licensed by MediaTek Research Code: MIT License
For issues with the model, visit: https://huggingface.co/MediaTek-Research/Breeze-ASR-26/discussions
3 commits
Python
79.0%
HTML
21.0%