Update README.md
Browse files
README.md
CHANGED
@@ -34,6 +34,7 @@ model = AutoModel.from_pretrained("ai4bharat/indic-conformer-600m-multilingual",
|
|
34 |
|
35 |
# Load an audio file
|
36 |
wav, sr = torchaudio.load("audio.flac")
|
|
|
37 |
|
38 |
target_sample_rate = 16000 # Expected sample rate
|
39 |
if sr != target_sample_rate:
|
|
|
34 |
|
35 |
# Load an audio file
|
36 |
wav, sr = torchaudio.load("audio.flac")
|
37 |
+
wav = torch.mean(wav, dim=0, keepdim=True)
|
38 |
|
39 |
target_sample_rate = 16000 # Expected sample rate
|
40 |
if sr != target_sample_rate:
|