def wavwrite(y, fs, filename):
 x = copy.deepcopy(y)
 x *= INT16_FAC
 x = np.int16(x)
 write(filename, fs, x)

def wavwrite ( y , fs , filename ) : x = copy . deepcopy ( y ) x *= INT16_FAC x = np . int16 ( x ) write ( filename , fs , x )
write a sound file from an array with the sound and the sampling rate y: floating point array of one dimension .