shethjenil commited on
Commit
c4574c2
·
verified ·
1 Parent(s): 79a0935

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -1
README.md CHANGED
@@ -24,4 +24,22 @@ language:
24
  - ur
25
  pipeline_tag: automatic-speech-recognition
26
  library_name: transformers
27
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  - ur
25
  pipeline_tag: automatic-speech-recognition
26
  library_name: transformers
27
+ ---
28
+
29
+ ```bash
30
+ pip install -q torch_state_bridge srt webrtcvad torchcodec
31
+ ```
32
+
33
+ ```python
34
+ from transformers import AutoModel
35
+ model = AutoModel.from_pretrained("shethjenil/Indic-STT", language="hi", trust_remote_code=True, dtype="auto")
36
+ wav , sr = torchaudio.load("audio.wav")
37
+ for i in model.transcribe(wav,sr,4):
38
+ print("".join(i.splitlines()[2::4]).replace("▁"," ").replace("<line>","\n"))
39
+
40
+ ```
41
+
42
+ ```python
43
+ full_model = AutoModel.from_pretrained("shethjenil/Indic-STT", trust_remote_code=True, dtype="auto")
44
+ full_model.language = "hi"
45
+ ```