8000 GitHub - yangyanzhan/RosaKit: LibRosa port to Swift for ability using same prepossessing logic in iOS/MacOS platforms
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LibRosa port to Swift for ability using same prepossessing logic in iOS/MacOS platforms

License

Notifications You must be signed in to change notification settings

yangyanzhan/RosaKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< AEC1 div class="overflow-hidden">
 
 
 
 
 
 

Repository files navigation

Ban Russia from SWIFT! Protect Ukrainian Sky! Send NATO to Ukraine! #BanRussiafromSwift #CloseTheSky #SendNatoToUkraine

RosaKit

RosaKit - LibRosa port to Swift for iOS and macOS platforms.

Library can generate Mel-spectrogram using Short-time Fourier transform (STFT) algorithm.

It's provide methods for calcualte Short-time Fourier transform window and Spectrogram.

Installation

Via CocoaPods:

pod 'RosaKit'

Goals

  • Generate Spectrogram for visualisations

  • Preprocessing steps for most Machine Learning models in Sound Recognition Sphere

Original Project:

https://librosa.github.io

melspectrogram:

https://librosa.github.io/librosa/generated/librosa.feature.melspectrogram.html

Usage in swift

You can use such code:

let rawAudioData = Data(...)

let chunkSize = 66000
let chunkOfSamples = Array(rawAudioData[0..<chunkSize])    

let powerSpectrogram = samples.melspectrogram(nFFT: 1024, hopLength: 512, sampleRate: Int(sampleRate), melsCount: 128)

Results of processing:

Please look in Examples

Default Gauge

Used in Applications:

Decibel Meter:

https://apps.apple.com/app/decibel-meter/id1361845683?mt=12

About

LibRosa port to Swift for ability using same prepossessing logic in iOS/MacOS platforms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 74.5%
  • Swift 23.7%
  • Other 1.8%
0