Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ processor = WhisperProcessor.from_pretrained("Neurai/NeuraSpeech_WhisperBase")
|
|
58 |
model = WhisperForConditionalGeneration.from_pretrained("Neurai/NeuraSpeech_WhisperBase")
|
59 |
forced_decoder_ids = processor.get_decoder_prompt_ids(language="fa", task="transcribe")
|
60 |
|
61 |
-
array, sample_rate = librosa.load('persian_audio.mp3'
|
62 |
sr = 16000
|
63 |
array = librosa.to_mono(array)
|
64 |
array = librosa.resample(array, orig_sr=sample_rate, target_sr=16000)
|
|
|
58 |
model = WhisperForConditionalGeneration.from_pretrained("Neurai/NeuraSpeech_WhisperBase")
|
59 |
forced_decoder_ids = processor.get_decoder_prompt_ids(language="fa", task="transcribe")
|
60 |
|
61 |
+
array, sample_rate = librosa.load('persian_audio.mp3')
|
62 |
sr = 16000
|
63 |
array = librosa.to_mono(array)
|
64 |
array = librosa.resample(array, orig_sr=sample_rate, target_sr=16000)
|