问题标签 [tarsosdsp]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - TarsosDSP pitch shifting artifacts
I'm trying to read a .wav
file, shift the pitch, and write it to a new file on android. I'm using TarsosDSP to do this, but kept getting weird artifacts in the new file. I tried on a single sine wave and this is how the first few samples of the files compare:
Orange being the original file, blue generated by tarsos. As far as I can tell, I have no processing differences compared to the pitch shift example on github. this is my code:
and:
I tried making actual change to the sound (cents != 0
) but the results didn't get better. Do I have to hope the artifacts always become unnoticable in real recordings, or is there a way to fix this? I'm very new to audio processing.
java - TarsosDSP 是否支持解码 MP3 的 I/O?
我正在尝试从 mp3 文件或其他流媒体源中检索原始 PCM 数据,以便稍后通过一些信号处理对其进行分析。我使用 TarsosDSP 进行信号分析和处理,到目前为止,它适用于AudioInputStream
从 WAV 文件检索的原始数据:
现在,我想尝试使用 mp3 文件。因此,我需要一个解码器。AudioInputStream
fromjavax.sound.sampled
仅提供用于原始编码(或类似的东西)的实用程序。
利用 TarsosDSP,是否有一个 I/O 函数可以从 mp3 中检索原始数据?还是我需要导入另一个 mp3 解码器包?
如果我遗漏或步骤有误,请告诉我,谢谢!