RoachLin commited on
Commit
0711cd7
·
verified ·
1 Parent(s): ebc14bc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -3
README.md CHANGED
@@ -1,3 +1,41 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - ja
5
+ base_model:
6
+ - kotoba-tech/kotoba-whisper-v2.2
7
+ pipeline_tag: automatic-speech-recognition
8
+ ---
9
+
10
+ # Whisper kotoba-whisper-v2.2 model for CTranslate2
11
+ This repository contains the conversion of [kotoba-tech/kotoba-whisper-v2.2](https://huggingface.co/kotoba-tech/kotoba-whisper-v2.2) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format.
12
+ This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/systran/faster-whisper).
13
+
14
+ # Example
15
+ Install library and get a sample audio.
16
+ ```python
17
+ pip install faster-whisper
18
+ ```
19
+
20
+ Inference with the kotoba-whisper-v2.2-faster.
21
+ ```python
22
+ from faster_whisper import WhisperModel
23
+
24
+ if __name__ == '__main__':
25
+ model = WhisperModel(model_size_or_path="./kotoba-whisper-v2.2-faster", device="cuda", compute_type="float32", local_files_only=True)
26
+ segments, info = model.transcribe(audio="./123.wav", language="ja", chunk_length=5, condition_on_previous_text=False, hotwords="ノイミー")
27
+
28
+ for segment in segments:
29
+ print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
30
+
31
+ ```
32
+
33
+ # Conversion details
34
+ The original model was converted with the following command:
35
+ ```python
36
+ ct2-transformers-converter --model kotoba-tech/kotoba-whisper-v2.2 --output_dir kotoba-whisper-v2.2-faster --copy_files tokenizer.json preprocessor_config.json --quantization float32
37
+ ```
38
+ Note that the model weights are saved in FP32. This type can be changed when the model is loaded using the [compute_type option in CTranslate2](https://opennmt.net/CTranslate2/quantization.html).
39
+
40
+ # More information
41
+ For more information about the kotoba-whisper-v2.0, refer to the original [model card](https://huggingface.co/kotoba-tech/kotoba-whisper-v2.2).