Metadata-Version: 2.4
Name: kudiostudio
Version: 2.2
Summary: A desktop workbench for the Kudio audio toolkit — inspect, edit, synthesize and measure audio.
Author: RL
License-Expression: MIT
Project-URL: Homepage, https://github.com/recklight/KudioStudio
Project-URL: Issues, https://github.com/recklight/KudioStudio/issues
Project-URL: Kudio, https://pypi.org/project/kudio/
Keywords: audio,gui,pywebview,spectrogram,speech-enhancement,dsp
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
Classifier: Topic :: Multimedia :: Sound/Audio :: Editors
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: kudio[viz]>=4.2.0
Requires-Dist: sounddevice>=0.4.5
Requires-Dist: PyAudio>=0.2.13; sys_platform == "win32"
Requires-Dist: pywebview>=5
Requires-Dist: numpy>=1.22
Requires-Dist: anthropic<3,>=2
Requires-Dist: keyring>=24
Provides-Extra: audio
Requires-Dist: PyAudio>=0.2.13; extra == "audio"
Provides-Extra: eval
Requires-Dist: kudio[eval]>=4.2.0; extra == "eval"
Provides-Extra: dnsmos
Requires-Dist: kudio[dnsmos]>=4.2.0; extra == "dnsmos"
Provides-Extra: enhance
Requires-Dist: kudioenhance>=2.0; extra == "enhance"
Provides-Extra: all
Requires-Dist: kudiostudio[audio,dnsmos,enhance,eval]; extra == "all"
Provides-Extra: dev
Requires-Dist: kudiostudio[eval]; extra == "dev"
Requires-Dist: pytest>=7.0; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs<2,>=1.6; extra == "docs"
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Requires-Dist: mkdocs-static-i18n>=1.2; extra == "docs"
Requires-Dist: jieba; extra == "docs"
Dynamic: license-file

# KudioStudio

![KudioStudio](https://raw.githubusercontent.com/recklight/KudioStudio/master/docs/assets/banner.webp)

**English** | [繁體中文](https://github.com/recklight/KudioStudio/blob/master/README.zh-TW.md)

[![PyPI](https://img.shields.io/pypi/v/kudiostudio.svg)](https://pypi.org/project/kudiostudio/)
[![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
[![GUI](https://img.shields.io/badge/GUI-pywebview-1fc6f0.svg)](https://pywebview.flowrl.com/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/recklight/KudioStudio/blob/master/LICENSE.txt)
[![kudio](https://img.shields.io/pypi/v/kudio.svg?label=kudio)](https://pypi.org/project/kudio/)

**A desktop workbench for the [`kudio`](https://pypi.org/project/kudio/) audio toolkit.**

Open a clip, look at it, change it, measure it, and build datasets from it,
without writing a script first. Every control maps to one documented `kudio`
function, and the caption under each panel shows the exact call it will make,
so anything you work out here translates straight into code.

**The user guide is at [recklight.github.io/KudioStudio](https://recklight.github.io/KudioStudio/)**:
every panel, every control, and the reasons behind them.

![KudioStudio](https://raw.githubusercontent.com/recklight/KudioStudio/master/docs/images/main.png)

## Install

```bash
pip install kudiostudio
kudiostudio
```

KudioStudio needs Python 3.10 or newer and kudio 4.2.0 or newer, which pip
installs with it. The window is drawn by the web view the
system already has, through [pywebview](https://pywebview.flowrl.com/):
WebView2 on Windows 10 and 11, WebKit on macOS. Linux needs GTK or Qt for
pywebview and PortAudio's library for sound; without a web view, the same page
opens in the default browser. [Getting started](https://recklight.github.io/KudioStudio/getting-started/)
has the details.

The heavy parts are extras:

| Extra | Adds |
|---|---|
| `pip install "kudiostudio[eval]"` | STOI and SDR |
| `pip install "kudio[pesq]"` | PESQ, and CSIG, CBAK and COVL, which are built on it. It builds from source and needs a C compiler, so it is in neither `[eval]` nor `[all]` |
| `pip install "kudiostudio[dnsmos]"` | DNSMOS opinion scores (the weights are not bundled) |
| `pip install "kudiostudio[enhance]"` | learned denoising on PyTorch, through [kudioenhance](https://pypi.org/project/kudioenhance/) |
| `pip install "kudiostudio[audio]"` | recording until you press Stop, on Linux and macOS (PyAudio; Windows has it already) |
| `pip install "kudiostudio[all]"` | all of the above except PESQ |

```bash
kudiostudio clip.wav           # open a file on start-up
kudiostudio manifest.json      # a corpus manifest opens in the Manifest panel
kudiostudio --browser          # the same page in the default browser
kudiostudio --lang zh_TW       # the interface in Traditional Chinese
```

## What is in it

| Panel | What it is for |
|---|---|
| [Inspect](https://recklight.github.io/KudioStudio/panels/inspect/) | the analysis view (STFT, mel, MFCC), the selection, and the Levels readout with true peak and a loudness curve |
| [Effects](https://recklight.github.io/KudioStudio/panels/effects/) | one kudio effect at a time on the selection or the whole clip, heard before it is applied |
| [Enhance](https://recklight.github.io/KudioStudio/panels/enhance/) | statistical denoisers and learned models |
| [Compare](https://recklight.github.io/KudioStudio/panels/compare/) | every denoiser on the same clip, ranked, each row a click from your ears |
| [Record](https://recklight.github.io/KudioStudio/panels/record/) | a fixed-length take, or one that runs until you stop it, drawn as it arrives |
| [Synthesize](https://recklight.github.io/KudioStudio/panels/synthesize/) | a noisy dataset from clean and noise folders, rooms and phone lines included |
| [Manifest](https://recklight.github.io/KudioStudio/panels/manifest/) | that dataset read back: missing files and the noise × SNR coverage |
| [Pitch](https://recklight.github.io/KudioStudio/panels/pitch/) | the f0 contour over the spectrogram, and the voiced spans as markers |
| [Metrics](https://recklight.github.io/KudioStudio/panels/metrics/) | what is wrong with a recording without a reference, and scores with one |
| [Batch](https://recklight.github.io/KudioStudio/panels/batch/) | a whole folder converted, normalised or denoised, with the files that missed named |
| [Survey](https://recklight.github.io/KudioStudio/panels/survey/) | every file of a folder checked, as a table to sort and filter, with the folders' spectra and a timeline of the takes |
| [Claude](https://recklight.github.io/KudioStudio/panels/ask-claude/) | the clip's figures read back in words by Claude, on your own API key, with next steps |

Around them: cut, copy and paste with a crossfade at every join, A/B against
the file as it was opened, markers that outlive the session, and the whole edit
history written out as a Python script that makes the same samples
([Editing and markers](https://recklight.github.io/KudioStudio/editing/)).
The window's size, its fonts and text colours, the bit depth Save As writes and
a few more are in **Edit → Settings…**
([Settings](https://recklight.github.io/KudioStudio/window/#settings)), and a
right click on either plot offers what can be done at that point
([The right-click menu](https://recklight.github.io/KudioStudio/window/#the-right-click-menu)).
Other packages can add panels of their own
([Writing a panel](https://recklight.github.io/KudioStudio/plugins/)).

## Working on it

```bash
git clone https://github.com/recklight/KudioStudio.git
cd KudioStudio
pip install -e ".[dev]"
pytest -q
```

`tools/smoke.py` runs the end-to-end checks the unit tests cannot, and
`pip install -e ".[docs]"` then `mkdocs serve` builds the guide locally.

## Related

- **[kudio](https://pypi.org/project/kudio/)**: the audio toolkit underneath.
- **[kudioenhance](https://pypi.org/project/kudioenhance/)**: trains the
  denoising models this app loads.

## Licence

MIT, see [LICENSE.txt](https://github.com/recklight/KudioStudio/blob/master/LICENSE.txt).
