Archived
Initial commit
This commit is contained in:
commit
d89b82be4a
103 files changed
+23110
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import soundfile as sf
|
||||
from playsound import playsound
|
||||
import numpy as np
|
||||
import sys
|
||||
from threading import Thread
|
||||
|
||||
z, fs = sf.read('./calibration_emotion_cut.wav')
|
||||
|
||||
# options.attenuation_dB = 36;
|
||||
z = z * np.power(10.0, (-21.0 / 20))
|
||||
|
||||
sf.write("calibration_e.wav", z, fs)
|
||||
try:
|
||||
Thread(target=playsound, args=("calibration_e.wav", )).start()
|
||||
except KeyboardInterrupt:
|
||||
sys.exit()
|
||||
Reference in new issue
Block a user