AudioSmith

command module
v0.4.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 95 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

AudioSmith

English · 简体中文

A local voice studio for macOS on Apple silicon. It covers text to speech with saved, cloned and designed voices, stories and audiobooks, video dubbing, transcription and system-wide dictation. It also has a local OpenAI-compatible API, an MCP server and workflows.

Every model runs on the Mac's GPU with MLX: no Python, no cloud account, nothing leaves the Mac unless you ask.

Status: 0.3 preview. Feature parity with VoiceStudio's open-source edition is built and was verified in 0.2; 0.3 redesigns the interface. Expect rough edges, and see Known limits.

Studio

Install

Requirements

  • macOS 15 or later on Apple silicon (M1 or later).
  • 16 GB of memory is recommended. 8 GB works with the light models.
  • About 1.3–15 GB of disk for models, depending on the pack (Fast 1.3 GB, Balanced 4.7, Quality 12.8, Max 14.9).

Steps

  1. Download the DMG from Releases, or build it.
  2. Drag AudioSmith to Applications.
  3. Builds are ad-hoc signed for now, so macOS blocks the first launch. Do one of:
    • run xattr -dr com.apple.quarantine /Applications/AudioSmith.app, or
    • try to open it once, then click Open Anyway in System Settings → Privacy & Security. macOS 15 removed the right-click → Open shortcut.
  4. The first run opens a setup wizard:
    • It checks this Mac: macOS, chip, memory, disk, network, permissions.
    • It suggests a model pack for your memory: Fast, Balanced, Quality or Max. You can skip it and download models later in Models.
    • It asks about privacy and dictation, then says hello with Kokoro.

Models come from huggingface.co or hf-mirror.com, whichever answers faster, through the system proxy. In mainland China, pick hf-mirror.com in Settings → Network if downloads stall.

Permissions, asked only when a feature needs them:

  • Microphone: recording a voice reference, dictation, live transcription.
  • Accessibility: dictation typing into other apps.

With ad-hoc builds, macOS forgets the Accessibility grant after each update. Re-tick AudioSmith in System Settings → Privacy & Security → Accessibility.

Features

Area What it does
Studio Script editor with markup: pauses, emphasis, [slow]/[fast], pronunciation overrides [[word|say]], non-verbal tags. Imports TXT/MD/DOCX/EPUB/SRT/VTT. Controls follow the model: voice, language, speed, steps, guidance, target duration, seed. Long scripts render in chunks, with a streaming preview and a content-addressed chunk cache. Mastering ("Even out volume", −18 LUFS), a pronunciation dictionary, and a checker for clipping, clicks and long silences. Exports WAV 16/24/32-bit, plus MP3/FLAC/Opus with ffmpeg; drag a take out to Finder
Discover voices, My voices, Design A voice library: clone from a recording or any audio/video file (best window, auto-transcript, denoise), with an own-voice consent recording. Design a voice from a description in English or Chinese (Qwen3-TTS VoiceDesign, OmniVoice tags). Discover voices: about 1,200 archetypes with previews. Portraits, tags, favourites, locked identities. .asvoice files, and VoiceStudio .ovsvoice import
Stories, Audiobook, Projects Multi-voice scripts with automatic casting. Audiobooks from TXT/MD/EPUB/DOCX with chapters, per-chapter ACX or podcast loudness, a read-along player, M4B with chapters and cover, cue sheets and stems; resume after quitting, re-render only edited lines. A Projects library of everything made and exported
Dub, Batch Video and audio dubbing: vocals/background separation (HTDemucs), speakers (Sortformer, up to 4), transcription with word times, translation (the local LLM, Ollama, cloud LLMs, DeepL, Google, Microsoft) with a glossary and fit-to-time rewrites. Lines are voice-cloned and fitted to the timing (WSOLA, or OmniVoice's exact duration). A timeline editor, A/B mixer, video preview and incremental re-dub. Exports MP4 with dubbed audio tracks and soft subtitles, M4A, WAV, SRT/VTT/ASS, stems. Batch queue and watch folder; URL import via yt-dlp (opt-in)
Transcribe, Dictation Transcripts with word times (Qwen3-ASR, Whisper for other languages, + forced alignment); exports SRT/VTT/TXT/JSON; clean-up with a language model. System-wide dictation (⌘⇧Space, toggle or hold) types into any app and keeps your clipboard. It has a floating pill and a menu bar icon. Qwen3-ASR answers in about 0.3 s
Local LLM Qwen3 4B in the engine: offline translation, dictation clean-up, glossary extraction, direction parsing. Routing goes local, then Ollama; cloud providers only when you pick one
Local API, MCP, Integrations, Tools OpenAI-compatible /v1 on 127.0.0.1:3901: speech, transcriptions, translations, models, voices. A native /api with job events and WebSocket streaming. MCP over HTTP and stdio (AudioSmith --mcp-stdio). Setup pages for Claude Code, Cursor, Codex, n8n and the OpenAI SDKs. Tools: A/B voices, speech-to-speech, rate fit, direction, watermark check, file probe. See docs/local-api.md
Workflows A canvas of steps (sources, speak, transcribe, translate, convert, normalize, condition, export) run as resumable jobs over up to 50 inputs, with templates
Calls An AI phone agent over your own Twilio account, outbound and inbound. It always speaks a disclosure and uses only designed or consent-verified voices; you can take over the call. Off until you set it up
Models A pinned catalogue: TTS, speech recognition, alignment, VAD, separation, diarization, enhancement, LLMs, watermark. Downloads are resumable and checked, with licences reviewed before gated ones. Any Hugging Face repo mlx-audio-swift loads
Responsible use An invisible AudioSeal watermark on generated audio (on by default; Settings → Privacy), with a detector in Tools and the API. Consent recordings for cloned voices. Licence gate for non-commercial models
App Sidebar sections (Create, Voices, Library, Automate, Utilities, System), ⌘1–9, command palette (⌘K), shortcut sheet (?), ⌘E engine switch. A status bar with jobs and downloads, notifications, and a logs panel (⇧⌘L). Settings (a dialog, ⌘,) for storage, diagnostics, usage, network, privacy and appearance. English and 简体中文 UI

Long work runs as jobs in one persistent queue: renders, dubs, transcripts, workflows, downloads. A job the app quit in the middle of continues at the next start. The engine never touches the network: it loads the snapshots the app downloaded.

Voice design Gallery
Dubbing Stories
Transcribe Workflows
First run Integrations

Models

Defaults, all checked against their upstream model cards. Every listed model passes the Mac smoke suite (scripts/smoke-models.sh).

Task Default Others Licence
Speech Kokoro 82M (54 voices, 9 languages) Qwen3-TTS 0.6B/1.7B (CustomVoice, clone, VoiceDesign), Chatterbox Turbo (English clone) Apache-2.0 / MIT
Speech, 646 languages — OmniVoice (clone, design tags, exact duration) CC-BY-NC-4.0: non-commercial, asks you to accept the licence first
Transcription Qwen3-ASR 0.6B (30 languages) Whisper large-v3 turbo (other languages, translation) Apache-2.0 / MIT
Word timing, VAD, denoise Qwen3-ForcedAligner, Silero VAD, DeepFilterNet 3 Apache-2.0 / MIT
Separation, speakers HTDemucs, Sortformer (≤4 speakers) — MIT / NVIDIA Open Model
Language model Qwen3 4B Instruct 2507 — Apache-2.0
Watermark AudioSeal (16 bits) MIT

Measured on a MacBook Air M4 (24 GB):

What Result
Kokoro renders about 5–6× real time: 10,000 Chinese characters → about 33 min of audio in under 6 min; re-rendering unchanged text is near-instant (chunk cache)
Qwen3-ASR dictation 0.2–0.33 s for 5 s of speech
Qwen3 4B 40 tokens/s
HTDemucs 10× real time
Watermark about 1 s per minute of audio

Known limits

  • Ad-hoc signing. There is no notarization or auto-update yet.
  • ffmpeg is optional and not bundled. macOS's AVFoundation reads and writes WAV, AIFF, M4A/AAC, MOV and MP4, and reads MP3. With an ffmpeg (Homebrew's, or a file chosen in Settings → Audio tools), AudioSmith also exports MP3/Opus/FLAC, reads WebM/MKV/VP9/AV1, and burns subtitles into videos.
  • Speakers. Diarization finds up to 4 speakers.
  • Dictation inserts the text when you stop, not word by word.
  • UI languages: English and Simplified Chinese.
  • Watermark. It does not survive time-stretching beyond about ±5 %. Dubs are therefore marked after fitting.
  • Calls need your own Twilio account and a public tunnel (cloudflared or ngrok).

Data

What Where
Library: takes, voices, projects, renders, dubs, transcripts, workflows, calls, settings, licences, jobs ~/Library/Application Support/AudioSmith/audiosmith.db (SQLite; backed up before each migration)
Files of the library …/AudioSmith/: clips/, voices/, references/, renders/, covers/, dubs/, transcripts/, workflows/, tools/
Data folder elsewhere Settings → Storage → Move…: copies, checks, switches; …/AudioSmith/location.json points to it
Caches ~/Library/Caches/AudioSmith/ (waveforms, rendered chunks, previews)
Logs ~/Library/Logs/AudioSmith/ (audiosmith.log, engine-*.log)
Models the Hugging Face cache ~/.cache/huggingface/hub, shared with the Python tools (HF_HUB_CACHE / HF_HOME, or Settings → Models)
Secrets the login Keychain, service "AudioSmith": Hugging Face token, API key, LLM / translation / Twilio keys

Architecture

┌──────────────── AudioSmith.app (Go, no cgo) ────────────────┐
│ MyGo native UI (Metal) — *.go views per area                │
│ internal/services  takes, voices, longform, dubs, transcripts│
│                    workflows, calls (render pipeline)        │
│ internal/store     SQLite + FTS5 · internal/jobs  job queue  │
│ internal/api, mcp  Local API (OpenAI /v1, /api, WS), MCP     │
│ internal/hub       model downloads · internal/catalog        │
│ internal/text, doc, lang, dsp, voicedesign, gallery, llm,    │
│ translate, dub, workflow, telephony, ffmpeg …                │
│ internal/engine    supervisor + executors, protocol 2        │
└───────────────┬────────────────────────────┬─────────────────┘
        stdin/stdout JSON lines        (one Swift binary, three roles)
   ┌────────────▼─────────┐ ┌──────────────▼──────┐ ┌────────────────────┐
   │ engine --role gpu    │ │ engine --role listen│ │ engine --role media│
   │ TTS, STT, align, LLM │ │ microphone, dictation│ │ AVFoundation decode│
   │ separate, diarize    │ │ speech-to-text      │ │ encode, mux, probe │
   │ MLX, memory budget   │ │                     │ │ watermark          │
   └──────────────────────┘ └─────────────────────┘ └────────────────────┘
  • Map: docs/architecture.md covers packages, data flow, threading rules, the seams between UI areas, and the data on disk.
  • Protocol: the two halves share only protocol 2: JSON-RPC-shaped lines with a handshake, job ids, cancellation by id, progress, streamed audio chunks and typed errors. Golden fixtures in engine/Fixtures/ are decoded by both sides' tests.
  • Why a helper process: MyGo is pure Go without cgo, and MLX is Swift/C++/Metal. A child process keeps the Go build cgo-free and keeps the UI alive when a model crashes or runs out of memory. It also lets Unload actually free GPU memory.

Build from source

Building needs Xcode 26 (Swift 6.2+) and Go 1.27.1 (GOTOOLCHAIN=auto downloads it).

scripts/fetch-engine-deps.sh    # upstream mlx-audio-swift + AudioSmith's patches → engine/.build/deps/
scripts/build-engine.sh         # xcodebuild → resources/darwin-arm64/engine/  (about 4 min the first time)
go tool mygo dev                # run with live reload
go tool mygo build              # build/darwin-arm64/AudioSmith.app and a .dmg (bundles the SQLite library)

Notes

  • The engine has to be built with xcodebuild, not swift build: only Xcode compiles MLX's Metal kernels into default.metallib.
  • AUDIOSMITH_ENGINE=/path/to/audiosmith-engine makes the app use another engine build.
  • Smoke-test the engine alone: resources/darwin-arm64/engine/audiosmith-engine --text "Hello" --voice af_heart --output /tmp/hello.wav.

Developing from Linux. The UI and its tests are plain Go and run anywhere:

  • CGO_ENABLED=0 go test ./... runs the views headless in ui.Tester, with the engine faked or scripted.
  • go tool mygo vet . runs go vet plus MyGo's UI-lifetime checks.
  • scripts/mac.sh mirrors the project to a Mac over SSH (MAC_HOST, default mac-air; MAC_DIR, default code/AudioSmith) and runs a command there, e.g. scripts/mac.sh scripts/build-engine.sh.

Versions

The engine builds on upstream mlx-audio-swift with AudioSmith's patch series. Dependencies are locked in engine/Package.resolved, and builds use it strictly.

Dependency Pin
Blaizzy/mlx-audio-swift 244458d + engine/patches/mlx-audio-swift/*.patch
mlx-swift / mlx-swift-lm 0.32.3 / 3.32.3
swift-transformers / swift-huggingface 1.3.5 / 0.13.0
demucs-mlx-swift / mel-roformer-mlx-swift c848273 / 22162f8 (MIT)

The patches (see engine/patches/README.md):

  • Kokoro evaluates its audio before yielding it. mlx-swift 0.32 makes default streams thread-local, so a lazy array yielded from a model's own Task crashes.
  • Whisper detects the language and takes a task.
  • Chatterbox spells spaces and takes a language (Cangjie for Chinese).
  • KittenTTS reads voices.npz and refuses over-long input.

Moving a pin or adding a patch needs the per-model Mac smoke suite. MyGo is pinned in go.mod; its SQLite plugin's prebuilt library is downloaded once by go test (sha256-checked) or set with MYGO_SQLITE_LIBRARY, and bundled by mygo build.

Tests

Command Where What it covers
CGO_ENABLED=0 go test ./... anywhere Views with fake engines, the scheduler and supervisor against a scripted engine, the store and migrations, the hub against a fake Hugging Face, the API and MCP, protocol fixtures, i18n key parity
go test -race ./..., go tool mygo vet . anywhere (race needs cgo) data races; vet + UI-lifetime checks
AUDIOSMITH_SNAPSHOTS=/tmp/shots go test -run TestSnapshots . anywhere every page, light/dark, English/Chinese, to PNG
scripts/test-engine.sh Mac Swift protocol types against engine/Fixtures
AUDIOSMITH_SMOKE_SANDBOX=1 scripts/smoke-models.sh [ids] Mac + network The model gate: each model downloaded, then run offline in a sandbox and checked. TTS read back by Whisper, design gender by pitch, plus transcripts, word times, VAD, denoising, separation, diarization, LLM and watermark
AUDIOSMITH_E2E=1 go test -run 'TestEndToEnd|TestModelLifecycle|TestLongRender|TestDubEngine|TestLocalLLM|TestWatermarkEngine|TestDictationLatency' -v -timeout 2h ./... Mac, models the app's state driving the real engine: takes, downloads, long renders, dubbing, the LLM, the watermark, dictation latency
AUDIOSMITH_E2E=1 go test -run 'TestRealEngineConformance|TestRealEngineMedia' ./internal/engine Mac raw protocol 2; media and listen workers

CI (.github/workflows/ci.yml) runs the Linux rows on every push and pull request.

Roadmap

These come after the 0.2 verification:

  • live (streaming) dictation;
  • more than 4 speakers in diarization;
  • more UI languages;
  • Developer ID signing, notarization and auto-update;
  • live preview while editing dub lines;
  • stretch-video lip sync;
  • a community voice gallery.

License

Apache-2.0. Model weights carry their own licences; see Models. The interface icons are Solar by 480 Design, CC BY 4.0 (see NOTICE).

Documentation

Overview

AudioSmith is a TTS workbench for macOS: write a script, pick a model and voice, generate takes on the GPU with MLX, and listen, compare and export them. The window is MyGo native UI in Go; speech comes from audiosmith-engine, a Swift helper on mlx-audio-swift (see engine/).

Package main is the UI (views and their state); the domain lives in internal/ (see docs/architecture.md). main only wires them together: each step is a function in the file of the area that owns it.

Source Files

Directories

Path Synopsis
internal
api
Package api is AudioSmith's Local API (M5): an HTTP server inside the app process that speaks OpenAI's audio API under /v1, AudioSmith's own API under /api (voices, takes, generation, transcripts, jobs, models, tools), job events as Server-Sent Events, streaming speech over a WebSocket (/ws/tts), its OpenAPI 3.1 description (/openapi.json, with a bundled reference viewer at /docs), and mounts the MCP server (/mcp, internal/mcp).
Package api is AudioSmith's Local API (M5): an HTTP server inside the app process that speaks OpenAI's audio API under /v1, AudioSmith's own API under /api (voices, takes, generation, transcripts, jobs, models, tools), job events as Server-Sent Events, streaming speech over a WebSocket (/ws/tts), its OpenAPI 3.1 description (/openapi.json, with a bundled reference viewer at /docs), and mounts the MCP server (/mcp, internal/mcp).
audio
Package audio is AudioSmith's sound handling in Go: waveform peaks (with a disk cache) and the streaming player today; the timeline mixer, peaks pyramid, loudness and QC analysis later (M1/M4).
Package audio is AudioSmith's sound handling in Go: waveform peaks (with a disk cache) and the streaming player today; the timeline mixer, peaks pyramid, loudness and QC analysis later (M1/M4).
catalog
Package catalog describes the models AudioSmith offers: what each one does (tasks, languages, voices, capabilities), what it costs (files, sizes, memory) and under which licence.
Package catalog describes the models AudioSmith offers: what each one does (tasks, languages, voices, capabilities), what it costs (files, sizes, memory) and under which licence.
core
Package core holds AudioSmith's domain: the entities every module shares (takes, voices, projects, licences, notifications, log lines), the service interfaces the UI and the Local API call, and the event bus they both subscribe to.
Package core holds AudioSmith's domain: the entities every module shares (takes, voices, projects, licences, notifications, log lines), the service interfaces the UI and the Local API call, and the event bus they both subscribe to.
dictation
Package dictation is what system-wide dictation needs of macOS beyond MyGo: the app that has the keyboard focus, bringing it back to the front, pasting into it with a synthetic ⌘V, the clipboard's change count, the release of a global shortcut (MyGo reports presses only), the Microphone and Accessibility permissions, and system sounds.
Package dictation is what system-wide dictation needs of macOS beyond MyGo: the app that has the keyboard focus, bringing it back to the front, pasting into it with a synthetic ⌘V, the clipboard's change count, the release of a global shortcut (MyGo reports presses only), the Microphone and Accessibility permissions, and system sounds.
doc
Package doc imports documents into scripts: plain text and Markdown, EPUB, DOCX and subtitles (SRT/WebVTT) are built in; PDF is plugged in by the app (PDFKit through the Swift helper) with Register.
Package doc imports documents into scripts: plain text and Markdown, EPUB, DOCX and subtitles (SRT/WebVTT) are built in; PDF is plugged in by the app (PDFKit through the Swift helper) with Register.
doc/subtitle
Package subtitle parses and writes subtitles: SRT and WebVTT in both directions, ASS (with karaoke word highlighting) for writing, and Netflix-style segmentation of timed words into readable cues.
Package subtitle parses and writes subtitles: SRT and WebVTT in both directions, ASS (with karaoke word highlighting) for writing, and Netflix-style segmentation of timed words into readable cues.
doc/textenc
Package textenc decodes text files of unknown encoding to UTF-8: BOMs, UTF-16 without a BOM, and the legacy encodings scripts arrive in (GB18030/GBK, Big5, Shift_JIS, EUC-KR, Windows-1252).
Package textenc decodes text files of unknown encoding to UTF-8: BOMs, UTF-16 without a BOM, and the legacy encodings scripts arrive in (GB18030/GBK, Big5, Shift_JIS, EUC-KR, Windows-1252).
dsp
Package dsp is AudioSmith's pure-Go audio signal processing: the interleaved float32 Buffer every subpackage works on, plus small helpers (decibels, channel up/down-mix, gains, fades, ranges).
Package dsp is AudioSmith's pure-Go audio signal processing: the interleaved float32 Buffer every subpackage works on, plus small helpers (decibels, channel up/down-mix, gains, fades, ranges).
dsp/analysis
Package analysis measures speech for dubbing and prosody: an energy VAD (the fallback; the ML VAD lives in the engine), speech onsets for timeline snapping (spectral flux + segment starts), a YIN pitch contour with summary statistics, a loudness contour, a speaking-rate estimate from syllable nuclei, and a per-line prosody summary compared against a speaker baseline ("Prosody Mirror").
Package analysis measures speech for dubbing and prosody: an energy VAD (the fallback; the ML VAD lives in the engine), speech onsets for timeline snapping (spectral flux + segment starts), a YIN pitch contour with summary statistics, a loudness contour, a speaking-rate estimate from syllable nuclei, and a per-line prosody summary compared against a speaker baseline ("Prosody Mirror").
dsp/dsptest
Package dsptest makes synthetic test signals (sines, noise, silence, clicks, sequences) for the dsp packages' tests and benchmarks.
Package dsptest makes synthetic test signals (sines, noise, silence, clicks, sequences) for the dsp packages' tests and benchmarks.
dsp/dynamics
Package dynamics has a feed-forward compressor (RMS or peak detector, soft knee, attack/release, makeup gain) and a look-ahead brick-wall limiter that can hold a true-peak ceiling.
Package dynamics has a feed-forward compressor (RMS or peak detector, soft knee, attack/release, makeup gain) and a look-ahead brick-wall limiter that can hold a true-peak ceiling.
dsp/edit
Package edit assembles takes and long renders: concatenation with crossfades or gaps (a streaming Joiner for renders too long for memory), silence for [pause] tags, edge-silence trimming, gap policy between sentences, lines, paragraphs and chapters, and shortening of long internal pauses.
Package edit assembles takes and long renders: concatenation with crossfades or gaps (a streaming Joiner for renders too long for memory), silence for [pause] tags, edge-silence trimming, gap policy between sentences, lines, paragraphs and chapters, and shortening of long internal pauses.
dsp/filter
Package filter has IIR biquads (designs from the RBJ "Audio EQ Cookbook" formulas), the ITU-R BS.1770 K-weighting pair at any sample rate, and Kaiser-windowed sinc FIR design for resampling and oversampling.
Package filter has IIR biquads (designs from the RBJ "Audio EQ Cookbook" formulas), the ITU-R BS.1770 K-weighting pair at any sample rate, and Kaiser-windowed sinc FIR design for resampling and oversampling.
dsp/loudness
Package loudness measures loudness per ITU-R BS.1770-4 and EBU R128 (EBU Tech 3341 meter, Tech 3342 loudness range) and normalises audio to delivery targets (ACX, podcast, broadcast) under a true-peak ceiling.
Package loudness measures loudness per ITU-R BS.1770-4 and EBU R128 (EBU Tech 3341 meter, Tech 3342 loudness range) and normalises audio to delivery targets (ACX, podcast, broadcast) under a true-peak ceiling.
dsp/master
Package master is the "even out volume" mastering chain: high-pass → tone EQ → compressor → loudness normalisation under a true-peak ceiling (look-ahead limiter).
Package master is the "even out volume" mastering chain: high-pass → tone EQ → compressor → loudness normalisation under a true-peak ceiling (look-ahead limiter).
dsp/mix
Package mix places clips on a timeline and sums them, sample-accurately, with per-track and per-clip gain, fades and pan, and ducking (background tracks lowered under speech).
Package mix places clips on a timeline and sums them, sample-accurately, with per-track and per-clip gain, fades and pan, and ducking (background tracks lowered under speech).
dsp/qc
Package qc is "Check audio": an advisory scan of a take or a render that reports problems as codes with severities and time ranges the UI can seek to.
Package qc is "Check audio": an advisory scan of a take or a render that reports problems as codes with severities and time ranges the UI can seek to.
dsp/resample
Package resample converts sample rates with a polyphase Kaiser-windowed sinc filter.
Package resample converts sample rates with a polyphase Kaiser-windowed sinc filter.
dsp/stretch
Package stretch changes the length of audio without changing its pitch, by WSOLA (waveform-similarity overlap-add): the output is built from Hann-windowed frames of the input taken every synthesis hop, each one picked within a small search window around where the tempo puts it so that it continues the previous frame's waveform best (the highest normalised cross-correlation with the natural continuation).
Package stretch changes the length of audio without changing its pitch, by WSOLA (waveform-similarity overlap-add): the output is built from Hann-windowed frames of the input taken every synthesis hop, each one picked within a small search window around where the tempo puts it so that it continues the previous frame's waveform best (the highest normalised cross-correlation with the natural continuation).
dsp/wav
Package wav reads and writes metadata-free WAV files of float32 samples.
Package wav reads and writes metadata-free WAV files of float32 samples.
dub
Package dub is the domain of video and audio dubbing (M4): a dub project (the source, its transcript as segments, the cast, the target languages and their translations, the settings), the edits the workspace makes to it (split, merge, insert, bulk changes, undo), the pure parts of the pipeline (speaker assignment, reference windows, timing strategies, the mix, QC, subtitles and exports), the batch queue's watch folder, URL import rules, and the engine methods the pipeline needs that protocol 2 does not have yet (engineapi.go, proposed to the engine thread).
Package dub is the domain of video and audio dubbing (M4): a dub project (the source, its transcript as segments, the cast, the target languages and their translations, the settings), the edits the workspace makes to it (split, merge, insert, bulk changes, undo), the pure parts of the pipeline (speaker assignment, reference windows, timing strategies, the mix, QC, subtitles and exports), the batch queue's watch folder, URL import rules, and the engine methods the pipeline needs that protocol 2 does not have yet (engineapi.go, proposed to the engine thread).
dub/dubtest
Package dubtest is a fake engine for the dubbing pipeline's tests: every method the pipeline calls (protocol 2's and the proposed ones in internal/dub/engineapi.go), answered in Go with real WAV files, so the whole pipeline runs on Linux.
Package dubtest is a fake engine for the dubbing pipeline's tests: every method the pipeline calls (protocol 2's and the proposed ones in internal/dub/engineapi.go), answered in Go with real WAV files, so the whole pipeline runs on Linux.
engine
Package engine runs audiosmith-engine, the Swift helper that does the speech work, and talks to it: a Supervisor runs one process per role and speaks protocol 2 (package proto, docs/protocol-v2.md) with it, and RegisterExecutors runs engine methods as jobs of the jobs.Scheduler.
Package engine runs audiosmith-engine, the Swift helper that does the speech work, and talks to it: a Supervisor runs one process per role and speaks protocol 2 (package proto, docs/protocol-v2.md) with it, and RegisterExecutors runs engine methods as jobs of the jobs.Scheduler.
engine/enginetest
Package enginetest is a scripted protocol-2 audiosmith-engine for tests: a test binary runs it instead of its tests when AUDIOSMITH_FAKE_ENGINE is set, so the supervisor spawns a real process and talks to it over real pipes, without MLX.
Package enginetest is a scripted protocol-2 audiosmith-engine for tests: a test binary runs it instead of its tests when AUDIOSMITH_FAKE_ENGINE is set, so the supervisor spawns a real process and talks to it over real pipes, without MLX.
engine/proto
Package proto is the wire format of protocol v2 between AudioSmith and audiosmith-engine: JSON-RPC-shaped messages, one per line, over the engine's stdin (app → engine) and stdout (engine → app).
Package proto is the wire format of protocol v2 between AudioSmith and audiosmith-engine: JSON-RPC-shaped messages, one per line, over the engine's stdin (app → engine) and stdout (engine → app).
ffmpeg
Package ffmpeg runs an optional ffmpeg (and ffprobe) for what AVFoundation, which the engine uses, cannot do: MP3, Opus and FLAC output, WebM/MKV/VP9/AV1 input, burnt-in subtitles.
Package ffmpeg runs an optional ffmpeg (and ffprobe) for what AVFoundation, which the engine uses, cannot do: MP3, Opus and FLAC output, WebM/MKV/VP9/AV1 input, burnt-in subtitles.
gallery
Package gallery is the data side of the Voice Gallery: about 1,100 ready-made designed voices ("archetypes", no real people) grouped by use case, with facets, search, paging, favorites, a preview planner, the Design page's starting-point presets, and (in package persona) the .asvoice voice-file format.
Package gallery is the data side of the Voice Gallery: about 1,100 ready-made designed voices ("archetypes", no real people) grouped by use case, with facets, search, paging, favorites, a preview planner, the Design page's starting-point presets, and (in package persona) the .asvoice voice-file format.
gallery/persona
Package persona reads and writes .asvoice files: a portable voice (a cloned or designed voice profile) as one ZIP that carries its identity, recipe and engine parameters, licence, consent attestation, a preview clip, and optionally the reference clip and a portrait.
Package persona reads and writes .asvoice files: a portable voice (a cloned or designed voice profile) as one ZIP that carries its identity, recipe and engine parameters, licence, consent attestation, a preview clip, and optionally the reference clip and a portrait.
hub
Package hub owns model files on disk: it finds the Hugging Face cache, reports which catalogue entries are downloaded, and (thread C, M0) downloads, verifies and deletes them, so engines only ever load local files (engine.hello offline:true).
Package hub owns model files on disk: it finds the Hugging Face cache, reports which catalogue entries are downloaded, and (thread C, M0) downloads, verifies and deletes them, so engines only ever load local files (engine.hello offline:true).
i18n
Package i18n translates the UI.
Package i18n translates the UI.
icons
Package icons holds the Solar icons AudioSmith shows, each in its Linear variant (everywhere) and its Bold one (the sidebar's chosen page, active toggles).
Package icons holds the Solar icons AudioSmith shows, each in its Linear variant (everywhere) and its Bold one (the sidebar's chosen page, active toggles).
icons/gen command
Command gen writes the Solar icons AudioSmith uses as Go source (../solar_gen.go), from the @iconify-json/solar package at a pinned version, checked against its SHA-256.
Command gen writes the Solar icons AudioSmith uses as Go source (../solar_gen.go), from the @iconify-json/solar package at a pinned version, checked against its SHA-256.
jobs
Package jobs is AudioSmith's work queue: every piece of work that takes longer than a click (TTS, transcription, separation, downloads, muxing, a dub's pipeline) is a Job, scheduled on a Lane by Priority, persisted so it survives a crash or quit, and cancellable by id.
Package jobs is AudioSmith's work queue: every piece of work that takes longer than a click (TTS, transcription, separation, downloads, muxing, a dub's pipeline) is a Job, scheduled on a Lane by Priority, persisted so it survives a crash or quit, and cancellable by id.
lang
Package lang is the language table: every language a model in the catalogue may speak or understand, as embedded data.
Package lang is the language table: every language a model in the catalogue may speak or understand, as embedded data.
licence
Package licence is the model licence gate: core.LicenceService over a repository of acceptances.
Package licence is the model licence gate: core.LicenceService over a repository of acceptances.
llm
Package llm is AudioSmith's provider-agnostic chat-model layer.
Package llm is AudioSmith's provider-agnostic chat-model layer.
logs
Package logs is the log behind the logs panel: core.LogService as a ring of the newest lines in memory, also written to rotated files (<dir>/audiosmith.log, .1, .2) by a goroutine of its own, so Append never blocks on the disk.
Package logs is the log behind the logs panel: core.LogService as a ring of the newest lines in memory, also written to rotated files (<dir>/audiosmith.log, .1, .2) by a goroutine of its own, so Append never blocks on the disk.
mcp
Package mcp is AudioSmith's Model Context Protocol server (M5): agents (Claude Code, Cursor, Codex…) speak, clone and design voices, and transcribe through it.
Package mcp is AudioSmith's Model Context Protocol server (M5): agents (Claude Code, Cursor, Codex…) speak, clone and design voices, and transcribe through it.
notify
Package notify is the notification centre: core.NotificationService in memory.
Package notify is the notification centre: core.NotificationService in memory.
services
Package services implements AudioSmith's domain services (core.*Service) over a store.Store, a jobs.Scheduler and the core.Bus: the take library and generation, voice and project libraries, and debounced drafts.
Package services implements AudioSmith's domain services (core.*Service) over a store.Store, a jobs.Scheduler and the core.Bus: the take library and generation, voice and project libraries, and debounced drafts.
settings
Package settings is the user's preferences: one typed, versioned document, persisted as JSON by the store (settings table, key "app"), read by any goroutine, changed through Service.Update, announced with Changed on the core.Bus.
Package settings is the user's preferences: one typed, versioned document, persisted as JSON by the store (settings table, key "app"), read by any goroutine, changed through Service.Update, announced with Changed on the core.Bus.
store
Package store is AudioSmith's persistence contract: repositories for each kind of record, behind which the database lives.
Package store is AudioSmith's persistence contract: repositories for each kind of record, behind which the database lives.
store/historyjson
Package historyjson is the MVP's take library: WAVs in <dir>/clips and an index, <dir>/history.json, rewritten whole on every change.
Package historyjson is the MVP's take library: WAVs in <dir>/clips and an index, <dir>/history.json, rewritten whole on every change.
store/sqlitestore
Package sqlitestore implements store.Store on SQLite, through the MyGo SQLite plugin (github.com/egoist/mygo/plugins/sqlite: purego, no cgo, FTS5 and JSON1 built in).
Package sqlitestore implements store.Store on SQLite, through the MyGo SQLite plugin (github.com/egoist/mygo/plugins/sqlite: purego, no cgo, FTS5 and JSON1 built in).
telephony
Package telephony is AudioSmith's AI phone agent over Twilio (M6b):
Package telephony is AudioSmith's AI phone agent over Twilio (M6b):
telephony/telephonytest
Package telephonytest fakes Twilio for tests: its REST API (an httptest server), its signed webhooks, and the Media Streams client that connects to the gateway.
Package telephonytest fakes Twilio for tests: its REST API (an httptest server), its signed webhooks, and the Media Streams client that connects to the gateway.
text
Package text is the script pipeline shared by the Studio (M1), Stories and Audiobook (M3) and Dubbing (M4): segmentation into TTS chunks with source offsets, content-addressed chunk keys, word counts and runtime estimates.
Package text is the script pipeline shared by the Studio (M1), Stories and Audiobook (M3) and Dubbing (M4): segmentation into TTS chunks with source offsets, content-addressed chunk keys, word counts and runtime estimates.
text/autocast
Package autocast detects who speaks each line of a story, for the Stories editor's Auto-cast: tagged lines ("[Mara] Hello"), screenplay lines ("MARA: Hello", "小明:你好") and quoted prose attributed with a speech verb (`"Hello," said Mara.`, `小明说:“你好。
Package autocast detects who speaks each line of a story, for the Stories editor's Auto-cast: tagged lines ("[Mara] Hello"), screenplay lines ("MARA: Hello", "小明:你好") and quoted prose attributed with a speech verb (`"Hello," said Mara.`, `小明说:“你好。
text/lexicon
Package lexicon is the pronunciation dictionary: user entries that say how a term is pronounced, applied to script text before synthesis.
Package lexicon is the pronunciation dictionary: user entries that say how a term is pronounced, applied to script text before synthesis.
text/markup
Package markup parses AudioSmith's SSML-lite script markup into a typed token stream with diagnostics, for the Studio, Stories and Audiobook editors and their validation UIs.
Package markup parses AudioSmith's SSML-lite script markup into a typed token stream with diagnostics, for the Studio, Stories and Audiobook editors and their validation UIs.
text/normalize
Package normalize rewrites written forms a TTS model may misread into spoken words, conservatively and per language: numbers (with grouping and decimals), negative numbers, percentages, ordinals, times ("3:30"), simple dates, currency ("$5", "¥5", "5 €"), number ranges ("3–5", "3~5"), temperatures and common abbreviations ("Dr.", "z.
Package normalize rewrites written forms a TTS model may misread into spoken words, conservatively and per language: numbers (with grouping and decimals), negative numbers, percentages, ordinals, times ("3:30"), simple dates, currency ("$5", "¥5", "5 €"), number ranges ("3–5", "3~5"), temperatures and common abbreviations ("Dr.", "z.
text/plan
Package plan turns a script into what a TTS engine is asked to say: the markup parsed (internal/text/markup) and lowered for one engine, the pronunciation dictionary and inline overrides applied, written forms normalised, and the result cut into chunks the engine can take, with the silences and joins between them.
Package plan turns a script into what a TTS engine is asked to say: the markup parsed (internal/text/markup) and lowered for one engine, the pronunciation dictionary and inline overrides applied, written forms normalised, and the result cut into chunks the engine can take, with the silences and joins between them.
torchpt
Package torchpt reads PyTorch checkpoints (torch.save's zip format: archive/data.pkl + archive/data/<storage>) without Python and without executing anything: a restricted pickle machine that knows how tensors are rebuilt and treats every other class as an opaque object.
Package torchpt reads PyTorch checkpoints (torch.save's zip format: archive/data.pkl + archive/data/<storage>) without Python and without executing anything: a restricted pickle machine that knows how tensors are rebuilt and treats every other class as an opaque object.
translate
Package translate turns segments of text into another language and holds the text skills built on internal/llm: translation (LLM with Fast / Cinematic / Autofit quality, and online MT adapters: DeepL, Google Cloud, Microsoft), glossaries, dictation cleanup, direction parsing and the speech-rate fit predictor.
Package translate turns segments of text into another language and holds the text skills built on internal/llm: translation (LLM with Fast / Cinematic / Autofit quality, and online MT adapters: DeepL, Google Cloud, Microsoft), glossaries, dictation cleanup, direction parsing and the speech-rate fit predictor.
voicedesign
Package voicedesign is the data and logic layer of Voice Design: the attribute model a designed voice is made of, a deterministic parser from English and Chinese free text to attributes, and the lowering of a recipe (description + attributes + seed) to what each design-capable engine takes as its voice/instruct field.
Package voicedesign is the data and logic layer of Voice Design: the attribute model a designed voice is made of, a deterministic parser from English and Chinese free text to attributes, and the lowering of a recipe (description + attributes + seed) to what each design-capable engine takes as its voice/instruct field.
watermark
Package watermark is the app side of the invisible watermark (AudioSeal, engine methods watermark.embed / watermark.detect): the 16-bit message AudioSmith embeds, and the model's preparation (the engine loads safetensors converted from the .pth checkpoints facebook/audioseal ships).
Package watermark is the app side of the invisible watermark (AudioSeal, engine methods watermark.embed / watermark.detect): the 16-bit message AudioSmith embeds, and the model's preparation (the engine loads safetensors converted from the .pth checkpoints facebook/audioseal ships).
workflow
Package workflow is WorkflowStudio's model (M6): a workflow is a graph of steps (nodes) with typed inputs and outputs joined by links (edges), run once per input item (a script, or an audio clip).
Package workflow is WorkflowStudio's model (M6): a workflow is a graph of steps (nodes) with typed inputs and outputs joined by links (edges), run once per input item (a script, or an audio clip).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL