ai-agent

Decode Audio with libnyquist

Get cross-platform audio decoding for mp3, wav, ogg and more with libnyquist, a C++ library for founders and game devs.
560 stars72 forksC++Guide quality 8/10Updated 3/28/2026100% free · open source
What it does

Libnyquist decodes various audio file formats such as mp3, wav, ogg, opus, and flac into a standardized format for further processing or analysis.

When to use it
  • Building a music streaming service that needs to support multiple audio formats
  • Developing an audio processing application that requires handling different file formats
  • Creating a podcast or audiobook platform that needs to decode and play back various audio files
Ready-to-paste prompt
Use the following command to decode an audio file: `ffmpeg -i input.mp3 -f s16le -ar 44.1k -ac 2 -acodec pcm_s16le output.raw` and then process the output.raw file using libnyquist
Heads up: Ensure you have the necessary build tools and dependencies installed, such as CMake and a C++11-compatible compiler, before attempting to build libnyquist.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/libnyquist && curl -fsSL https://workflowstacks.com/api/skills/libnyquist/claude-skill -o ~/.claude/skills/libnyquist/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Decode Audio with libnyquist works
Codeflow
Free to inspect

Decode Audio with libnyquist is a medium C++ project (~3.9k lines across 20 code files). Expect some technical setup — comfortable with a terminal, or ask a developer. Last commit 6 months ago, BSD-2-Clause license, no tests found.

Size
Medium codebase
~3.9k lines · 20 code files · 33 min skim
Setup
Some technical setup
Comfortable with a terminal? 20–40 min. Otherwise ask a dev.
Runs on
C++
No API keys detected
C++ 79%C 12%CMake 8%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    src/Common.cpp
    Inside src/ — the main logic begins here
  3. 3
    examples/src/AudioDevice.cpp
    A worked example — copy this to get going
What's in each folder
src/Core code — the actual logic13 files
examples/Examples you can copy4 files
test_data/Folder66 files
include/Folder3 files
cmake/Folder1 files
.github/CI / automation (GitHub Actions)1 files
READMENo tests foundThin docsCI checksExamples includedBSD-2-Clause licenseUpdated 6 mo ago
Quick Actions
Details
Creator
ddiakopoulos
Language
C++
Category
ai-agent
Published
3/22/2015

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.