removing audio
This commit is contained in:
parent
41ec940ac8
commit
99da3441cf
@ -4,9 +4,6 @@ from scipy.io.wavfile import write
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
# Ensure the audio is stereo
|
|
||||||
if audio.channels != 2:
|
|
||||||
raise ValueError("The audio file must be stereo.")
|
|
||||||
|
|
||||||
# Function to convert audio samples from int16 to float32
|
# Function to convert audio samples from int16 to float32
|
||||||
def int16_to_float32(samples):
|
def int16_to_float32(samples):
|
||||||
|
Loading…
Reference in New Issue
Block a user