Created
August 26, 2019 14:32
-
-
Save apoorvnandan/d7d9aa083218bcca68b02cb76c1155e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_spectrogram(signals): | |
stfts = tf.signal.stft(signals, fft_length=256) | |
spectrograms = tf.math.pow(tf.abs(stfts), 0.5) | |
return spectrograms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment