Downloads · 30 days
43
1% of all-time downloads
skit-ai/speechllm-2B
speechllm-2B is a feature extraction model from skit-ai. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
[](https://github.com/skit-ai/SpeechLLM.git) [](https://github.com/skit-ai/SpeechLLM/blob/main/LICENSE) [](https://colab.research.google.com/drive/1uqhRl36LJKA4IxnrhplLMv0wQf3OuBM?usp=sharing)
Downloads · 30 days
43
1% of all-time downloads
All-time downloads
3.9K
Public
Parameters
2.1B
37.9 GB on disk
Likes
18
Public
Click a slice to open those files.
.safetensors8.4 GB · 100%
From the Hugging Face model README

SpeechLLM is a multi-modal LLM trained to predict the metadata of the speaker's turn in a conversation. speechllm-2B model is based on HubertX audio encoder and TinyLlama LLM. The model predicts the following:
# Load model directly from huggingface
from transformers import AutoModel
model = AutoModel.from_pretrained("skit-ai/speechllm-2B", trust_remote_code=True)
model.generate_meta(
audio_path="path-to-audio.wav", #16k Hz, mono
audio_tensor=torchaudio.load("path-to-audio.wav")[1], # [Optional] either audio_path or audio_tensor directly
instruction="Give me the following information about the audio [SpeechActivity, Transcript, Gender, Emotion, Age, Accent]",
max_new_tokens=500,
return_special_tokens=False
)
# Model Generation
'''
{
"SpeechActivity" : "True",
"Transcript": "Yes, I got it. I'll make the payment now.",
"Gender": "Female",
"Emotion": "Neutral",
"Age": "Young",
"Accent" : "America",
}
'''
Try the model in Google Colab Notebook. Also, check out our blog on SpeechLLM for end-to-end conversational agents(User Speech -> Response).
| Dataset | Type | Word Error Rate | Gender Acc | Age Acc | Accent Acc |
|---|---|---|---|---|---|
| librispeech-test-clean | Read Speech | 6.73 | 0.9496 | ||
| librispeech-test-other | Read Speech | 9.13 | 0.9217 | ||
| CommonVoice test | Diverse Accent, Age | 25.66 | 0.8680 | 0.6041 | 0.6959 |
@misc{Rajaa_SpeechLLM_Multi-Modal_LLM,
author = {Rajaa, Shangeth and Tushar, Abhinav},
title = {{SpeechLLM: Multi-Modal LLM for Speech Understanding}},
url = {https://github.com/skit-ai/SpeechLLM}
}