Commit
·
3a9154f
1
Parent(s):
ede679d
doc: update readme
Browse files
README.md
CHANGED
@@ -5,4 +5,36 @@ tags:
|
|
5 |
- audio
|
6 |
- automatic-speech-recognition
|
7 |
library_name: ctranslate2
|
8 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
- audio
|
6 |
- automatic-speech-recognition
|
7 |
library_name: ctranslate2
|
8 |
+
---
|
9 |
+
# whisper-medium-id model for CTranslate2
|
10 |
+
|
11 |
+
This repository contains the conversion of [cahya/whisper-medium-id](https://huggingface.co/cahya/whisper-medium-id) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format.
|
12 |
+
|
13 |
+
This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/guillaumekln/faster-whisper).
|
14 |
+
|
15 |
+
## Example
|
16 |
+
|
17 |
+
```python
|
18 |
+
from faster_whisper import WhisperModel
|
19 |
+
|
20 |
+
model = WhisperModel("jerichosiahaya/faster-whisper-medium-id")
|
21 |
+
|
22 |
+
segments, info = model.transcribe("audio.mp3")
|
23 |
+
for segment in segments:
|
24 |
+
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
|
25 |
+
```
|
26 |
+
|
27 |
+
## Conversion details
|
28 |
+
|
29 |
+
The original model was converted with the following command:
|
30 |
+
|
31 |
+
```
|
32 |
+
ct2-transformers-converter --model cahya/whisper-medium-id --output_dir faster-whisper-medium-id \
|
33 |
+
--quantization float16
|
34 |
+
```
|
35 |
+
|
36 |
+
Note that the model weights are saved in FP16. This type can be changed when the model is loaded using the [`compute_type` option in CTranslate2](https://opennmt.net/CTranslate2/quantization.html).
|
37 |
+
|
38 |
+
## More information
|
39 |
+
|
40 |
+
**For more information about the original model, see its [model card](https://huggingface.co/cahya/whisper-medium-id).**
|