Coder Social home page Coder Social logo

singing-voice-analysis's Introduction

Singing-voice-analysis

A pytorch model for singing-voice-analysis. (38 artists selected)

Dependencies

Requires following packages:

  • python 3.6
  • pytorch 1.0.0
  • numpy
  • librosa

Usage

Put your audio files in "./input/" folder and run

python main.py

or

python3 main.py

main.py

usage: main.py [-h] [-in IN_PATH] [-o OUT_PATH] [--cuda] [-gid GPU_INDEX]
optional arguments:
  -h, --help            show this help message and exit
  -in IN_PATH, --in_path IN_PATH
                        Path to input audios folder (default: ./input/)
  -o OUT_PATH, --out_path OUT_PATH
                        Path to output folder (default: ./output/)
  --cuda                use GPU computation
  -gid GPU_INDEX, --gpu_index GPU_INDEX
                        Assign a gpu index for processing if cuda. (default: 0)

Result

===============
Singing Voice Analysis
Author: Bill Hsieh
Update in 20190123
===============
Songname:  example
*******
Artist Similarity: 
蔡健雅 : 75.01 %
盧廣仲 : 24.91 %
*******
Characteristic Ratio: 100.00 %
===============

Saving format

npz file: ['emb_256', 'art_38', 'sc_2']
emb_256:  Latent space of singing voice. (256 dimension numpy array)
art_38:   Result of 38 class artist classification. (38 dimension numpy array)
sc_2:     Result of singing voice characteristic. (2 dimension numpy array)

The list correspond to result numpy array:
artist_list = [ '張惠妹', '郭靜', '蔡依林', '劉若英', '徐佳瑩', '田馥甄', '蔡健雅', '梁靜茹', '鄧紫棋', '孫燕姿',
                '費玉清', '張學友', '王力宏', '周杰倫', '陳奕迅', '林志炫', '林俊傑', '蕭敬騰', '盧廣仲', '李榮浩',
                '郭美美', '羅志祥', 'Amy Winehouse', '方大同', '王心凌', 'Erykah Badu', 'Macy Gray', 'Rihanna', '潘瑋柏', 
                '王若琳', 'Norah Jones', 'Pussycat Dolls', '畢書盡', '楊丞琳', '汪峰', '江美琪', 'Taylor Swift', '回聲樂團']
sc_list = ['negative', 'positive']

singing-voice-analysis's People

Contributors

bill317996 avatar

Stargazers

 avatar  avatar ZhangYuxin avatar

Watchers

James Cloos avatar

Forkers

dltaixlt wood2lin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.