0

I found simple code for audio callback in python with sounddevice

import sounddevice as sd
import numpy as np
import time


duration = 5.5  # seconds

def callback(indata, outdata, frames, time, status):


    if status:
        print(status)
        
      
    outdata[:] = indata

with sd.RawStream(channels=1,dtype='int24', callback=callback):
    sd.sleep(int(duration * 1000))

But how I can pitch the outdata sound?

I trying to get pitched sound on outdata

0 Answers0