{"library":"stftpitchshift","title":"stftpitchshift","type":"library","description":"STFT-based pitch and timbre shifting library for audio processing, supporting real-time and file-based transformations. Version 2.0 includes major API changes, improved latency, and WebAssembly support. Released under the MIT license.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install stftpitchshift","pip install stftpitchshift[fft]"],"cli":null},"imports":["from stftpitchshift import PitchShift","from stftpitchshift import TimbreShift","from stftpitchshift import load","from stftpitchshift import save"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/jurihock/stftPitchShift","docs":null,"changelog":null,"pypi":"https://pypi.org/project/stftpitchshift/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import numpy as np\nfrom stftpitchshift import PitchShift, load, save\n\n# Load audio (mono, float32)\naudio, samplerate = load('input.wav')\n\n# Create pitch shifter with default settings\nshifter = PitchShift()\n\n# Shift pitch by 2 semitones (factor = 2^(2/12) ≈ 1.1225)\nshifted = shifter.shiftpitch(audio, samplerate, 1.1225)\n\n# Save result\nsave('output.wav', samplerate, shifted.astype(np.float32))","lang":"python","description":"Load an audio file, apply pitch shifting, and save the result.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}