hutm / jssrc Goto Github PK
View Code? Open in Web Editor NEWJava SSRC Audio Resampler
License: Other
Java SSRC Audio Resampler
License: Other
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
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.
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)
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.
Our microphone data is collected in 16k pcm data. Now I want to convert directly to 48k. What can I do?
Can this library convert a double channel into a single channel?
new SSRC(fis,fos,44100,16000,2,2,1,Integer.MAX_VALUE,0,0,true);
Seventh parameters?
help me, thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.