Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A python wrapper for speech feature extractoin

License

NotificationsYou must be signed in to change notification settings

dhchenx/speech-feature-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Python wrapper for convenient speech feature extraction

Installation

pipinstallspeech-features-kit

Functions

  1. MFCC feature analysis
  2. Volume analysis
  3. Emotion analysis

Example of emotion analysis

fromspeech_features_kit.Emotion.speech_toolkitimportSpeechEmotionToolkit# 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 modelspeech_kit.load()# obtain emotion list with timestamp given an audio filelist_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 timestampprint("Time interval\tEmotion")foridx,einenumerate(list_emo):print(list_timestamp[idx],"\t",e)

Note

Other functions please see the examples folder!

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp