π§ Inference Example
from speechbrain.inference.classifiers import EncoderClassifier
import time
# Load the model from Hugging Face
classifier = EncoderClassifier.from_hparams(
source="panchajanya-ai/lid_Indic_Vaani",
run_opts={"device": "cuda"} # use "cpu" if CUDA is not available
)
# Start timer
start_time = time.time()
# Run classification on an audio file
out_prob, score, index, text_lab = classifier.classify_file("sample_audio.wav")
# End timer
end_time = time.time()
# Print results
print("Probabilities:", out_prob)
print("Score:", score)
print("Index:", index)
print("Label:", text_lab)
print("Time taken:", end_time - start_time, "seconds")
- Downloads last month
- 38
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support
Model tree for panchajanya-ai/lid_Indic_Vaani
Base model
speechbrain/lang-id-commonlanguage_ecapa