Bring your audio
Read files, capture a microphone, or generate a signal. Work with one consistent AudioTensor representation.
WAV · FLAC · OGG · optional MP3From the first sample to the final feature.
Record, transform, and analyze sound with a consistent tensor API.
python -m pip install phonotensoraudio.shape → (88200, 1)samples → frames × binsFeatureTensor → NumPyKeep sample rates, channels, and features in view as your workflow grows.
Read files, capture a microphone, or generate a signal. Work with one consistent AudioTensor representation.
WAV · FLAC · OGG · optional MP3Compose filters, fades, edits, mixing, and resampling with ordinary Python functions.
NumPy arrays · explicit sample ratesMove from samples to spectra, mel features, and MFCCs, with frame metadata carried alongside the data.
STFT · mel spectrograms · MFCCGenerate a tone, soften its edges, and save a file. Start without a microphone, then bring in your own audio.
Follow the quickstartfrom phonotensor import FileIO, ops
# Create a two-second tone. No microphone needed.
audio = ops.sine(440, duration=2.0, amplitude=0.25)
audio = ops.fade_in(audio, duration=0.02)
audio = ops.fade_out(audio, duration=0.1)
FileIO.write(audio, "tone.wav")
print(audio.shape) # (88200, 1)
print(audio.sample_rate) # 44100Installation guides, practical examples, and the API—ready when you are.
Read the documentation