zh-plus commited on
Commit
4063039
1 Parent(s): bcceeb1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -1
README.md CHANGED
@@ -4,6 +4,29 @@ datasets:
4
  - mozilla-foundation/common_voice_11_0
5
  language:
6
  - ja
 
 
 
 
 
 
 
 
7
  ---
8
 
9
- Converted from [clu-ling/whisper-large-v2-japanese-5k-steps](https://huggingface.co/clu-ling/whisper-large-v2-japanese-5k-steps) using [CTranslate](https://github.com/OpenNMT/CTranslate2).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  - mozilla-foundation/common_voice_11_0
5
  language:
6
  - ja
7
+ pipeline_tag: automatic-speech-recognition
8
+ tags:
9
+ - pytorch
10
+ - faster-whisper
11
+ - whisper
12
+ - CTranslate2
13
+ metrics:
14
+ - wer
15
  ---
16
 
17
+ Converted from [clu-ling/whisper-large-v2-japanese-5k-steps](https://huggingface.co/clu-ling/whisper-large-v2-japanese-5k-steps) using [CTranslate2](https://github.com/OpenNMT/CTranslate2).
18
+
19
+ Usage:
20
+ 1. Install `pip install faster-whisper` (Check [faster-whisper](https://github.com/guillaumekln/faster-whisper) for detailed instructions.)
21
+
22
+ 2. ```python
23
+ from faster_whisper import WhisperModel
24
+
25
+ model = WhisperModel('zh-plus/faster-whisper-large-v2-japanese-5k-steps', device="cuda", compute_type="float16")
26
+ segments, info = model.transcribe("audio.mp3", beam_size=5)
27
+
28
+ print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
29
+
30
+ for segment in segments:
31
+ print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
32
+ ```