speechbrain/common_language
Updated โข 495 โข 45
How to use Library-Mutsumi/whisper-small-ft-common-language-id-onnx with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="Library-Mutsumi/whisper-small-ft-common-language-id-onnx") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Library-Mutsumi/whisper-small-ft-common-language-id-onnx")
model = AutoModelForAudioClassification.from_pretrained("Library-Mutsumi/whisper-small-ft-common-language-id-onnx", device_map="auto")This is the ONNX exported version of sanchit-gandhi/whisper-small-ft-common-language-id.
Base model
openai/whisper-small