qbsmlabs commited on
Commit
ca0f393
·
verified ·
1 Parent(s): aaba91c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -1
README.md CHANGED
@@ -5,4 +5,22 @@ language:
5
  tags:
6
  - ctranslate2
7
  - automatic-speech-recognition
8
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  tags:
6
  - ctranslate2
7
  - automatic-speech-recognition
8
+ ---
9
+
10
+ # PhoWhisper small model for CTranslate2
11
+
12
+ This repository contains the conversion of [vinai/PhoWhisper-small](https://huggingface.co/vinai/PhoWhisper-small) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format.
13
+
14
+ This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/systran/faster-whisper).
15
+
16
+ ## Example
17
+
18
+ ```python
19
+ from faster_whisper import WhisperModel
20
+
21
+ model = WhisperModel("PhoWhisper-small")
22
+
23
+ segments, info = model.transcribe("audio.mp3")
24
+ for segment in segments:
25
+ print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
26
+ ```