Downloads · 30 days
5
3% of all-time downloads
panchajanya-ai/lid_Indic_Vaani
lid_Indic_Vaani is a audio classification model from panchajanya-ai. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for speechbrain. The card lists the license as apache-2.0.
from speechbrain.inference.classifiers import EncoderClassifier import time
Downloads · 30 days
5
3% of all-time downloads
All-time downloads
155
Public
Repo size
83.3 MB
Likes
2
Public
Click a slice to open those files.
.ckpt83.3 MB · 100%
From the Hugging Face model README
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")