노현욱

docs : adding docs

Showing 62 changed files with 30 additions and 1 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -8,7 +8,7 @@ from scipy.fft import fft, fftfreq
import math
import time
TARGET = "decibel" # frequency, decibel
TARGET = "frequency" # frequency, decibel
EFFECT = "pitch_shift" # pitch_shift, low_filter
RATE = 44100
......@@ -94,6 +94,29 @@ class Effector:
"low_filter": self.low_filtered_sounds
}
# save all augumented_sound to folder
for i in range(EFFECT_LEVEL):
pydub.AudioSegment(
data=self.augumented_sound["echo"][i].tobytes(),
sample_width=2,
frame_rate=RATE,
channels=1
).export("./augumented_sound/echo/echo_{}.wav".format(i), format="wav")
for i in range(EFFECT_LEVEL):
pydub.AudioSegment(
data=self.augumented_sound["pitch_shift"][i].tobytes(),
sample_width=2,
frame_rate=RATE,
channels=1
).export("./augumented_sound/pitch_shift/pitch_shift_{}.wav".format(i), format="wav")
for i in range(EFFECT_LEVEL):
pydub.AudioSegment(
data=self.augumented_sound["low_filter"][i].tobytes(),
sample_width=2,
frame_rate=RATE,
channels=1
).export("./augumented_sound/low_filter/low_filter_{}.wav".format(i), format="wav")
def change_target(self, target):
if target not in ["decibel", "frequency", "amplitude"]:
raise Exception("Invalid target")
......@@ -246,3 +269,9 @@ while stream.is_active():
stream.close()
pa.terminate()
# 실시간 face-chat
# 실시간 변형을 조금더 강조하면 좋을듯 합니다.
# 추가적인 사용 예제나 스토리를 조금더 넣으면 좋을듯.
# 실시간으로
\ No newline at end of file
......