Giter Club home page Giter Club logo

jssrc's Introduction

JSSRC project is aimed at creating high quality audio resampler written in pure java.

It is based on the SSRC High Quality Audio Sampling Rate Converter (http://shibatch.sourceforge.net/) by Naoki Shibata written in C.
Naohide Sano ported the C code into java.
Finally, a number of small modification were performed in order to have a java resampling service that is easy to use.

You can find some examples of upsampling/downsampling in the test directory

jssrc's People

Contributors

bogru avatar hutm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jssrc's Issues

Crackling noise when resampling from 22050Hz to 48000Hz

The issue also appears when resampling from 44100 to 48000Hz, but less often.
It can be best observed when resampling a constant signal. Lets say a file with shorts of value 16384. Then, every several thousand samples a 0 will be present in the output. (and ripples around it). If the value of FFTFIRLEN is decreased to 65536/8, then the 0s are more often in the output signal.

java.lang.IllegalArgumentException while run this project.

Hi,
I'm a rookie on pcm process, would you please help resolve the issue in your project?
Thanks
Alex
Logs are following:

file name is /mono_short_test.wav
channels is 1
frame size is 2
frame rate is 44100.0
Exception in thread "Thread-0" java.lang.IllegalArgumentException
at java.nio.Buffer.limit(Unknown Source)
at vavi.sound.pcm.resampling.ssrc.SSRC.downsample(SSRC.java:1579)
at vavi.sound.pcm.resampling.ssrc.SSRC.(SSRC.java:2440)
at com.jssrc.resample.JSSRCResampler$1.run(JSSRCResampler.java:66)
at java.lang.Thread.run(Unknown Source)

file name is /stereo_long_test.wav
channels is 2
frame size is 4
frame rate is 44100.0
Exception in thread "Thread-3" java.lang.IllegalArgumentException
at java.nio.Buffer.limit(Unknown Source)
at vavi.sound.pcm.resampling.ssrc.SSRC.upsample(SSRC.java:648)
at vavi.sound.pcm.resampling.ssrc.SSRC.(SSRC.java:2438)
at com.jssrc.resample.JSSRCResampler$1.run(JSSRCResampler.java:66)
at java.lang.Thread.run(Unknown Source)

Where to download SRC library ?

Now, I use your project to convert sample rate, but cost too much time in some low mobile phone. I try to call JNI to raise up conversion speed. I would appreciate it if you provide me with SRC library download address.

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.