반응형 오블완7 Visualize STFT fft_size가 frame_size( = 25) 이상인 가장 작은 2제곱 값따라서 fft_size는 32frame_shift = 10 # -*- coding: utf-8 -*-import waveimport numpy as npimport matplotlib.pyplot as pltif __name__ == "__main__": wav_file = './data/wav/xxx.wav' frame_size = 25 frame_shift = 10 out_plot = './spectrogram.png' with wave.open(wav_file) as wav: sample_frequency = wav.getframerate() num_samples = .. 2024. 11. 27. Visualize Speech Wave # -*- coding: utf-8 -*-import waveimport numpy as npimport matplotlib.pyplot as pltif __name__ == "__main__": wav_file = '../../data/wav/xxx.wav' out_plot = '../../plot.png' with wave.open(wav_file) as wav: sampling_frequency = wav.getframerate() sample_size = wav.getsampwidth() num_channels = wav.getnchannels() num_samples = wav.getnframes() waveform .. 2024. 11. 25. Python Task Scheduler import scheduleimport timedef job(): print("작업실행중")#schedule.every(1).hours.do(job)schedule.every(1).seconds.do(job)while True: schedule.run_pending() time.sleep(1) 2024. 11. 20. 초간단 화면캡처 단축키(Super Simple Short-Key for Screen Capture) Super Simple Short-Key for Screen Capture:Win + S= Win + Shift + s 2024. 11. 16. 이전 1 2 다음 반응형