Audio Classification
Transformers
Safetensors
Vietnamese
English
audio_decision
feature-extraction
audio
speech
vietnamese
audio-question-answering
calibration
keyword-spotting
custom_code
Run this model with HF Jobs
Run v1olet/vi-audio-sys1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/v1olet/vi-audio-sys1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/v1olet/vi-audio-sys1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use v1olet/vi-audio-sys1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use v1olet/vi-audio-sys1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="v1olet/vi-audio-sys1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("v1olet/vi-audio-sys1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 820 Bytes
2160c31 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """Minimal usage example for vi-audio-sys1. python example.py path/to/clip.wav"""
import sys
from transformers import AutoModel
model = AutoModel.from_pretrained(".", trust_remote_code=True) # or "v1olet/vi-audio-sys1"
clip = sys.argv[1] if len(sys.argv) > 1 else "clip.wav"
for a in model.ask(clip, [
{"type": "yes_no", "question": "Is someone speaking?"},
{"type": "choice", "question": "Người nói dùng ngôn ngữ nào?", "options": ["tiếng Việt", "tiếng Anh"]},
{"type": "choice", "question": "Is the speaker male or female?", "options": ["male", "female", "cannot tell"]},
{"type": "score", "question": "How likely is it that the recording is very noisy?"},
]):
print(f"{a['question']:45s} -> {a['answer']} {a.get('probability', a.get('probabilities'))}")
|