Update README.md
Browse files
README.md
CHANGED
|
@@ -28,4 +28,42 @@ The Drax model family provides speech recognition models based on discrete flow
|
|
| 28 |
The `drax-v1` model supports eight languages: English, Spanish, French, Portuguese, German, Italian, Japanese and Chinese.
|
| 29 |
It is an encoder-decoder model consists of a Whisper-large-v3 encoder, and a DiT based decoder, with a total of ~1.2B parameters.
|
| 30 |
|
| 31 |
-
More details on usage in our GitHub repo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
The `drax-v1` model supports eight languages: English, Spanish, French, Portuguese, German, Italian, Japanese and Chinese.
|
| 29 |
It is an encoder-decoder model consists of a Whisper-large-v3 encoder, and a DiT based decoder, with a total of ~1.2B parameters.
|
| 30 |
|
| 31 |
+
More details on usage in our GitHub repo, [https://github.com/aiola-lab/drax]() and paper [TBD]().
|
| 32 |
+
|
| 33 |
+
## Usage
|
| 34 |
+
|
| 35 |
+
See [https://github.com/aiola-lab/drax]() for installation instructions.
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from drax import Transcriber
|
| 39 |
+
|
| 40 |
+
asr = Transcriber(model_path="aiola-labs/drax-v1")
|
| 41 |
+
result = asr.transcribe("/path/to/audio.wav", language="en")
|
| 42 |
+
print(result[0].transcript)
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Controll sampling steps, temperature etc.
|
| 46 |
+
|
| 47 |
+
```python
|
| 48 |
+
from drax import Transcriber
|
| 49 |
+
|
| 50 |
+
asr = Transcriber(model_path="aiola-labs/drax-v1")
|
| 51 |
+
result = asr.transcribe("/path/to/audio.wav", language="en", sampling_steps=32, temperature=1e-2)
|
| 52 |
+
print(result[0].transcript)
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Batch inference:
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from drax import Transcriber
|
| 59 |
+
|
| 60 |
+
asr = Transcriber(model_path="aiola-labs/drax-v1")
|
| 61 |
+
audio_paths = ["/path/to/audio1.wav", "/path/to/audio2.wav"]
|
| 62 |
+
languages = ["en", "de"]
|
| 63 |
+
result = asr.transcribe(audio_paths, language=languages)
|
| 64 |
+
print(result.transcript)
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Citation
|
| 68 |
+
|
| 69 |
+
TBD
|