This is a kit for simple speech feature extraction.
Project description
Speech Feature Kit
A Python wrapper for convenient speech feature extraction
Installation
pip install speech-features-kit
Functions
- MFCC feature analysis
- Volume analysis
- Emotion analysis
Example of emotion analysis
from speech_features_kit.Emotion.speech_toolkit import SpeechEmotionToolkit
# set the path of pre-trained model for speech emotion model
# the used model here is optimized for Chinese speech; however, it is possible you can train your own model.
speech_kit = SpeechEmotionToolkit()
# load the model
speech_kit.load()
# obtain emotion list with timestamp given an audio file
list_emo, list_timestamp = speech_kit.get_emotion_list_by_blocks(audio_file="../data/english.wav",
num_sec_each_file=1)
# print the list of emotion over timestamp
print("Time interval\tEmotion")
for idx, e in enumerate(list_emo):
print(list_timestamp[idx], "\t", e)
Note
Other functions please see the examples folder!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for speech-features-kit-1.0.0.dev6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec796ccf8eb5ab5238699ffa39b97a1852cb86c2e841046090ecc609162f413d |
|
MD5 | cd1f0d10589e2aca780a26e8e0e397ae |
|
BLAKE2b-256 | 9b093ce2ea4eea4eda7a95bd359b804b0198f6452ad304ac3c705ff31efb5be9 |