Downloads · 30 days
4
2% of all-time downloads
RayyanAhmed9477/speech-emotion-analyzer
speech-emotion-analyzer is a machine learning model from RayyanAhmed9477. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras.
This is a Keras model trained for speech emotion recognition.
Downloads · 30 days
4
2% of all-time downloads
All-time downloads
206
Public
Repo size
13.6 MB
Likes
1
Public
Click a slice to open those files.
.keras1.7 MB · 100%
From the Hugging Face model README
This is a Keras model trained for speech emotion recognition.
The model is a Convolutional Neural Network (CNN) trained on audio features (Mel Spectrograms) to classify speech into the following emotion categories:
angry, disgust, fear, happy, neutral, sad, surprise
To use this model, you can load it using TensorFlow/Keras:
import tensorflow as tf
from huggingface_hub import hf_hub_download
repo_id = "RayyanAhmed9477/speech-emotion-analyzer"
filename = "cnn_emotion_model.keras"
# Download the model file
model_path = hf_hub_download(repo_id=repo_id, filename=filename)
# Load the model
model = tf.keras.models.load_model(model_path)
# Now you can use the model for prediction
# (You'll need to implement feature extraction similar to the original app)