Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
pipeline_tag: automatic-speech-recognition
|
| 4 |
+
language: en
|
| 5 |
+
license: mit
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Whisper MLX Model
|
| 9 |
+
|
| 10 |
+
This repository contains a CoreML and MLX-optimized Whisper model for efficient speech recognition.
|
| 11 |
+
|
| 12 |
+
## Model Components
|
| 13 |
+
|
| 14 |
+
- CoreML encoder for efficient inferencing on Apple devices
|
| 15 |
+
- MLX decoder for fast processing
|
| 16 |
+
- HuggingFace Whisper processor and model template
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
from asr_streaming import StreamingConfig, StreamingBackend
|
| 22 |
+
|
| 23 |
+
# Create config with HuggingFace repository
|
| 24 |
+
config = StreamingConfig(
|
| 25 |
+
use_huggingface=True,
|
| 26 |
+
huggingface_repo="TheStageAI/whisper-medium"
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
# Initialize the backend
|
| 30 |
+
backend = StreamingBackend(config)
|
| 31 |
+
|
| 32 |
+
# Now use the backend as normal
|
| 33 |
+
```
|