Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't go from 16K to 11K sample rate #1

Open
gvidaver opened this issue Jun 23, 2023 · 0 comments
Open

Can't go from 16K to 11K sample rate #1

gvidaver opened this issue Jun 23, 2023 · 0 comments

Comments

@gvidaver
Copy link

If you try to resample a 16K file down to 11K it throws an exception:

java.lang.IllegalArgumentException: Conversion from PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian to PCM_SIGNED 11025.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian is not supported.
	at com.tagtraum.pcmsampledsp.ResampleConversionProvider.getAudioInputStream(ResampleConversionProvider.java:86) ~[pcmsampledsp-0.9.5.jar:?]
	at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:887) ~[?:?]
...

Caused by: java.lang.IllegalArgumentException: Failed to factorize 359 with primes less than 100.
	at com.tagtraum.pcmsampledsp.ResampleConversionProvider.primeFactors(ResampleConversionProvider.java:225) ~[pcmsampledsp-0.9.5.jar:?]
	at com.tagtraum.pcmsampledsp.ResampleConversionProvider.primeFactors(ResampleConversionProvider.java:196) ~[pcmsampledsp-0.9.5.jar:?]
	at com.tagtraum.pcmsampledsp.ResampleConversionProvider.resamplingFactors(ResampleConversionProvider.java:107) ~[pcmsampledsp-0.9.5.jar:?]
	at com.tagtraum.pcmsampledsp.ResampleConversionProvider.getAudioInputStream(ResampleConversionProvider.java:79) ~[pcmsampledsp-0.9.5.jar:?]
	... 72 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant