Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import sounddevice as sd
- phase = 90 * 2 * np.pi / 360
- sine_A = (np.sin(2 * np.pi * np.arange(self.fs * self.duration) * frequency / self.fs + phase)).astype(
- np.float32)
- sine_B = (np.sin(2 * np.pi * np.arange(self.fs * self.duration) * frequency / self.fs)).astype(np.float32)
- sumSine= np.array([sine_A, sine_B])
- sd.play(sumSine)
- sounddevice.PortAudioError: Error opening OutputStream: Invalid number of channels
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement