Is it possible to use local wav file?
#1
by
prisar
- opened
Right now only uploading to remote file runs in my code
from transformers import AutoProcessor, AutoModelForCTC, pipeline
processor = AutoProcessor.from_pretrained("ai4bharat/indicwav2vec_v1_bengali")
model = AutoModelForCTC.from_pretrained("ai4bharat/indicwav2vec_v1_bengali")
pipe = pipeline(model="ai4bharat/indicwav2vec_v1_bengali")
bangla = pipe("https://github.com/prisar/electro/raw/main/py/bangla.wav")
print(bangla)