Update README.md
Browse filesUpdate with more explanation.
README.md
CHANGED
@@ -10,11 +10,21 @@ This model was converted to MLX format from [`openai-whisper-tiny`]().
|
|
10 |
pip install mlx-whisper
|
11 |
```
|
12 |
|
|
|
13 |
```python
|
14 |
import mlx_whisper
|
15 |
|
16 |
result = mlx_whisper.transcribe(
|
17 |
-
|
18 |
-
path_or_hf_repo=Kimang18/whisper-tiny-khmer-mlx,
|
|
|
19 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
```
|
|
|
10 |
pip install mlx-whisper
|
11 |
```
|
12 |
|
13 |
+
Write a python script, `example.py`, as the following
|
14 |
```python
|
15 |
import mlx_whisper
|
16 |
|
17 |
result = mlx_whisper.transcribe(
|
18 |
+
SPEECH_FILE_NAME,
|
19 |
+
path_or_hf_repo="Kimang18/whisper-tiny-khmer-mlx-fp32",
|
20 |
+
fp16=False
|
21 |
)
|
22 |
+
print(result['text']) # print khmer text in SPEECH_FILE_NAME
|
23 |
+
```
|
24 |
+
Then execute this script to see the result.
|
25 |
+
|
26 |
+
You can also use command line in terminal
|
27 |
+
|
28 |
+
```bash
|
29 |
+
mlx_whisper --model Kimang18/whisper-tiny-khmer-mlx-fp32 --task transcribe SPEECH_FILE_NAME --fp16 False
|
30 |
```
|