
Gemini Audio Mcp
io.github.jxoesneon由 GitHub 帳號 jxoesneon 發布v0.1.0更新於 Oct 24, 2026
High-performance audio, music, and voice generation MCP server for Gemini 2.5 and Lyria 3.
概覽
一個本機 MCP 伺服器,讓助理透過 Google Gemini 2.5 與 Lyria 3 音訊模型產生環境音、音樂與語音旁白。
- 可以做什麼
- 依文字提示產生無人聲的環境音景,可設定長度、品質與自動播放,並支援無縫循環。創作音樂,可控制速度、調性與強度,也能用本機圖片引導氛圍。產生富有表現力的旁白與角色對白,並可指定語氣方向。將兩段音景交叉淡入淡出,形成平順的場景轉換。透過種子、引導強度與長度等參數調整輸出。
- 適用情境
- 適合需要助理隨選產出環境音、配樂或語音旁白的情境,例如場景示範、原型或媒體專案,且已具備 Google AI Studio 存取權限時使用。
- 執行需求
- 以本機程序執行,通常透過 npx 啟動(需 Node.js 18 或更新版本),或以 Rust 工具鏈從原始碼建置。需安裝 FFmpeg 並在 PATH 中可用,用於音訊編碼與轉碼。需要 Google AI Studio API 金鑰,透過 GEMINI_API_KEY 環境變數提供,並需連網存取 Google 的 Gemini 與 Lyria 服務。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Gemini Audio Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🎵 Gemini Audio MCP
[Institutional Grade] [Gemini 2.5] [Lyria 3]
Gemini Audio MCP is a high-performance Model Context Protocol (MCP) server engineered for professional-grade audio synthesis. It leverages the Gemini 2.5 Multimodal Live API and Google DeepMind's Lyria 3 models to deliver high-fidelity environmental soundscapes, musical compositions, and expressive narration on-demand.
🛠 Prerequisites
Before deploying the server, ensure your environment meets the following technical requirements:
1. FFmpeg (Core Processing Engine)
Required for high-performance audio encoding, decoding, and transcoding.
- macOS:
brew install ffmpeg - Windows:
winget install ffmpegor download from ffmpeg.org. - Linux (Ubuntu/Debian):
sudo apt update && sudo apt install ffmpeg
2. Rust Toolchain (Compilation)
Required to build the server from source.
- Install via rustup.rs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
3. Node.js & NPM (Runtime)
Required if using the pre-compiled NPM package.
- Version:
node >= 18.0.0
🚀 Installation & Deployment
Global Installation (via NPX)
The fastest way to integrate the server into your MCP client (e.g., Claude Desktop).
Manual Build (Optimized)
For maximum performance, build the Rust binary locally:
- Clone & Build:
- Locate Binary: The optimized binary will be in
./target/release/gemini-audio-mcp.
🔑 API Key Management
The server requires a valid Google AI Studio API key.
- Obtain your key from Google AI Studio.
- Security Best Practice: Never hardcode keys. Inject the key via the
GEMINI_API_KEYenvironment variable. - Tier Note: Access to Lyria 3 (Pro/Clip) models typically requires a Paid Tier or specific preview access in Google AI Studio.
🎮 Tool Usage Guide
1. Environmental Generation (generate_soundscape)
Synthesizes immersive, vocal-free ambient textures.
2. Professional Music (generate_music)
Generates structural compositions with optional vocal control.
3. Expressive Voice (generate_voice)
Narration and character dialogue using Gemini 2.5 Native Audio.
4. Dynamic Evolution (transition_soundscape)
Crossfades two distinct environments for seamless scene transitions.
⚙️ Advanced Parameters
🔬 Architecture Overview
Gemini Audio MCP employs a unique Hybrid Engine Strategy:
- WebSocket Loop: Connects to Gemini 2.5 Live for low-latency, interactive voice and foley tasks.
- REST Pipeline: Interfaces with Lyria 3 Pro for high-fidelity musical synthesis.
- PCM Processing: An internal Rust-based loop (
decode -> crossfade -> loop -> encode) ensures that short clips are transformed into seamless, infinite soundscapes without audible clicks.
🧪 Troubleshooting
FFmpeg Errors
- "FFmpeg not found": Ensure
ffmpegis in your system PATH. Runffmpeg -versionin your terminal to verify. - Transcoding Failures: Check if you have the necessary codecs (e.g.,
libmp3lamefor MP3). Most standard FFmpeg installations include these.
API Issues
- 429 Rate Limit: The server implements a semaphore to limit concurrency, but ensure your API tier supports the requested model.
- Empty Audio Output: Verify your
GEMINI_API_KEYis correct and that your account has access to the requested model (especiallylyria-3-pro-preview).
📄 License
Licensed under the MIT License. Engineered with precision by the MCP community.
來源:README.md,提交 516a1f7
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分