Skip to content

prathu121004/distube-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 

Repository files navigation

🎡 SoniCore – The Next-Gen Audiophile Bot Framework for Discord

Download

"Where sound becomes architecture, and every playlist is a cathedral of code."
SoniCore is not just another music botβ€”it is a resonant engine for building custom, high-fidelity audio experiences inside Discord. Inspired by the modular philosophy of DisTube, but reimagined for composability, AI-powered curation, and cross-platform harmony.


🧠 Table of Resonances


πŸŽ›οΈ Why SoniCore?

Most music bots are black boxes. You feed them a link, they play a song.
SoniCore is a white-box symphonyβ€”every component, from the audio decoder to the queue scheduler, is exposed as a pluggable middleware.

Unique angle?
SoniCore treats each voice channel as an acoustic canvas. You can layer effects, inject AI-generated transitions, and even morph audio in real-time using neural filters.

What makes it different from DisTube?

DisTube Style SoniCore Philosophy
Simplified commands Composable command pipelines
Preset sources Extensible source drivers
Static filters Adaptive, AI-driven equalizer
Single-bot focus Multi-instance orchestration

πŸŽ›οΈ Core Capabilities

  • AI-Powered Playlist Generation – Using OpenAI & Claude API, SoniCore can invent playlists based on mood, tempo, or even a user's recent chat tone.
  • Multi-Source Extraction – YouTube, Spotify, SoundCloud, Bandcamp, local files, and custom streams.
  • Adaptive Audio Filters – Real-time reverb, bass boost, vocal isolation, and spatial audio simulation.
  • Resilient Queueing – Smart queue that learns from skip patterns and auto-suggests tracks.
  • Cross-Server Sync – Move your queue between servers with a single command.
  • Zero Downtime Streaming – Uses edge-aware buffering to handle network jitter.
  • Multilingual Commands – Supports 20+ languages natively.
  • Responsive Dashboard – Web-based UI for queue management, server settings, and live audio visualization.

🧩 Architecture Overview

graph TD
    A[Discord Client] -->|Slash Commands| B(SoniCore Gateway)
    B --> C{Command Router}
    C -->|Play| D[Audio Extractor]
    C -->|Filter| E[Audio Processor]
    C -->|Queue| F[Smart Queue Manager]
    D --> G[External Sources<br>YouTube/Spotify/etc.]
    E --> H[Neural Filter Engine]
    F --> I[Persistence Layer<br>Redis/PostgreSQL]
    H --> J[FFmpeg Pipeline]
    J --> K[Voice Connection Pool]
    K --> L[Discord Voice Gateway]
    I --> M[AI Scheduler<br>OpenAI/Claude]
    M --> F
Loading

⚑ Quick Installation

Prerequisites:

  • Node.js 20.x or higher
  • Discord Bot Token with GUILD_VOICE_STATES and MESSAGE_CONTENT intents
  • FFmpeg installed on the host

Clone & Setup:

git clone https://github.com/sonicore/sonicore.git
cd sonicrore
npm install

Environment Variables:

DISCORD_TOKEN=your_token_here
OPENAI_API_KEY=sk-...
CLAUDE_API_KEY=sk-ant-...
REDIS_URL=redis://localhost:6379

First Launch:

node index.js --init

Download


πŸ‘€ Example Profile Configuration

SoniCore uses a YAML-based profile for per-user audio preferences. Here's a sample:

profile:
  user_id: "1234567890"
  name: "AudiophileJane"
  preferences:
    default_source: "youtube"
    ai_curation: true
    mood_detection: true
    language: "en"
    filters:
      - type: "reverb"
        intensity: 0.3
      - type: "bass_boost"
        db: 6
    queue_behavior: "shuffle_on_repeat"
  ai:
    openai_model: "gpt-4-turbo"
    claude_model: "claude-3-opus-20240229"
    playlist_prompt: "Create a calm jazz playlist for late-night coding"
  ui:
    theme: "midnight_aurora"
    show_visualizer: true
    compact_mode: false

πŸ’» Example Console Invocation

# Start SoniCore with a specific profile and debug mode
node sonicrore.js --profile admin_profile.yaml --log-level verbose --ai-model gpt-4

# Output example:
# [SoniCore] Gateway initialized on shard 0
# [SoniCore] AI Scheduler connected to OpenAI (model: gpt-4)
# [SoniCore] Voice connection established in guild: 9876543210
# [SoniCore] Playing: "Midnight Serenade" by Lofi Dreamer β€” requested by @Jane
# [SoniCore] Adaptive EQ applied: +3dB bass, -1dB treble

πŸ–₯️ Emoji OS Compatibility Table

Operating System Status Emoji Notes
Windows 11 βœ… Supported πŸͺŸ Full FFmpeg support via chocolatey
Windows 10 βœ… Supported πŸͺŸ Requires WSL for AI modules
macOS Ventura+ βœ… Supported 🍎 Native arm64 binaries
macOS Monterey ⚠️ Partial 🍏 Limited AI filter support
Ubuntu 22.04+ βœ… Supported 🐧 Recommended for production
Debian 12 βœ… Supported 🐧 Requires manual FFmpeg build
Arch Linux βœ… Supported 🐧 Use sonicore-bin from AUR
Fedora 39+ βœ… Supported 🐧 SELinux policies included
Alpine Linux ⚠️ Partial 🐧 No voice visualizer
FreeBSD ❌ Unsupported 🐑 Use Docker image instead

🧬 AI Integration: OpenAI & Claude

SoniCore is natively wired for both OpenAI GPT-4 Turbo and Claude Opus. This isn't a "bolt-on" featureβ€”it's carved into the core logic.

What the AI does:

  1. Mood-Based Playlist Generation – It scans recent chat activity and suggests songs that match the server's emotional temperature.
  2. Intelligent Crossfade – The AI determines optimal transition points between songs, avoiding jarring cuts.
  3. Voice-Activated Command Parsing – (Future) Use Claude's audio capabilities to understand natural speech commands.
  4. Auto-Adaptive Mixing – The AI listens to user feedback (skips, repeats) and adjusts filter presets in real-time.

Example AI Prompt (internal):

You are a DJ AI. The current room has 12 users, the last 5 messages were happy/upbeat. 
Recommend a playlist that maintains this energy but prevents ear fatigue after 30 minutes.

🌐 Responsive UI & Multilingual Support

SoniCore comes with a React-based web dashboard that adapts to any screen sizeβ€”from a 4K monitor to a phone held sideways.

UI Features:

  • Real-time waveform visualization
  • Drag-and-drop queue reordering
  • Per-user volume sliders
  • Theme engine with 15+ presets
  • Keyboard shortcuts for power users

Multilingual Support:

Language Code Status Translator
English en βœ… Complete AI-verified
Spanish es βœ… Complete Community-reviewed
French fr βœ… Complete Native speaker check
German de βœ… Complete Technical accuracy verified
Japanese ja ⚠️ Beta AI-generated (awaiting human review)
Korean ko ⚠️ Beta AI-generated
Arabic ar πŸ”„ In Progress Manual translation
Hindi hi πŸ”„ In Progress Manual translation

24/7 Support?
Noβ€”but our AI Support Engine (powered by Claude) runs 24/7 in our Discord server. It can answer 90% of questions instantly, and escalate to human maintainers during business hours (UTC+0:00 to UTC+14:00).


⚠️ Disclaimer & Legal Echoes

  • SoniCore is a community-driven, open-source project under the MIT License. It is not affiliated with Discord Inc., OpenAI, or Anthropic.
  • Music copyright: SoniCore does not host or store any copyrighted content. It only provides tools to access publicly available streams. Users are responsible for complying with their local copyright laws.
  • AI generated content: Playlists and responses from the AI are dynamically generated and may sometimes produce unexpected results. SoniCore is provided "as is" with no guarantee of musical taste.
  • Rate limits: The bot respects Discord's API rate limits and will throttle connections if necessary. Abuse of the AI endpoints may result in temporary suspension.
  • Data privacy: User preferences are stored locally or on your own Redis instance. No analytics data is sent externally unless you explicitly enable telemetry.

Remember: With great audio power comes great responsibility. Don't play Rick Astley at 3 AM in a server with sleeping users. We've all been there.


πŸ“œ License

This project is proudly released under the MIT License.
You are free to use, modify, and distribute SoniCore, even in commercial projectsβ€”just keep the original copyright notice intact.

View the full license text


SoniCore β€” Because silence is just code waiting to be compiled into sound.

Download


Β© 2026 SoniCore Project. Built for the love of decentralized audio engineering.