Hi Piyush,
Thank you for the proposal! I think these are all good to have and will be useful for people working on DSP-related projects in the browser. See my detailed comments below
1. Spectral shift. In general, we aim at parity with the Python API of TensorFlow. fftshift is not in Python TensorFlow yet. I think it makes sense to add it in a separate repo and NPM package first. If it becomes popular in the future, we can add them to TF.js, coordinating with the Python side.
3. Phase angle unwrap: Similar to spectral shift, I suggest implementing it in a separate repo first.
4. Discrete difference: Interestingly, there is no equivalent of such a simple function in Python tensorflow. I'm actually supportive of having tf.diff in TF.js while breaking parity with Python in this case. Doing it in a way consistent with numpy seems fine to me.
5. Hilbert transform: Similar to spectral shift, let's implement it in a separate repo first.
Best regards,
Shanqing