You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)
import torchaudio
import torch
import time
from speechbrain.inference import EncoderClassifier

device = "cuda:5" if torch.cuda.is_available() else "cpu"
run_opts = {"device": device}
language_id = EncoderClassifier.from_hparams(source="./checkpoint", # change the cp folder path
                                             savedir="tmp",
                                             run_opts=run_opts)
# language_id.to('cuda:5')
# Download Thai language sample from Omniglot and convert to suitable form

signal = language_id.load_audio('test.wav')
prediction =  language_id.classify_batch(signal)
print(f"prediction: {prediction})
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support