मुख्य सामग्री पर जाएं
Gradium OpenClaw के लिए एक टेक्स्ट-टू-स्पीच प्रदाता है। Plugin सामान्य ऑडियो जवाब (WAV), वॉइस-नोट-संगत Opus आउटपुट, और टेलीफोनी सतहों के लिए 8 kHz u-law ऑडियो रेंडर कर सकता है।
गुणमान
प्रदाता idgradium
प्रमाणीकरणGRADIUM_API_KEY या config apiKey
बेस URLhttps://api.gradium.ai (डिफ़ॉल्ट)
डिफ़ॉल्ट आवाज़Emma (YTpq7expH9539ERJ)

Plugin इंस्टॉल करें

आधिकारिक Plugin इंस्टॉल करें, फिर Gateway रीस्टार्ट करें:
openclaw plugins install @openclaw/gradium-speech
openclaw gateway restart

सेटअप

Gradium API कुंजी बनाएं, फिर उसे env var या config कुंजी के साथ OpenClaw के लिए उपलब्ध कराएं।
export GRADIUM_API_KEY="gsk_..."
Plugin पहले resolved apiKey जांचता है और फिर GRADIUM_API_KEY environment variable पर fallback करता है।

Config

{
  messages: {
    tts: {
      auto: "always",
      provider: "gradium",
      providers: {
        gradium: {
          speakerVoiceId: "YTpq7expH9539ERJ",
          // apiKey: "${GRADIUM_API_KEY}",
          // baseUrl: "https://api.gradium.ai",
        },
      },
    },
  },
}
कुंजीप्रकारविवरण
messages.tts.providers.gradium.apiKeystringResolved API कुंजी। ${ENV} और secret refs का समर्थन करती है।
messages.tts.providers.gradium.baseUrlstringAPI origin को override करें। trailing slashes हटा दिए जाते हैं। डिफ़ॉल्ट https://api.gradium.ai है।
messages.tts.providers.gradium.speakerVoiceIdstringजब कोई directive override मौजूद न हो, तब उपयोग की जाने वाली डिफ़ॉल्ट voice id।
आउटपुट ऑडियो फ़ॉर्मैट runtime द्वारा target surface के आधार पर अपने-आप चुना जाता है और openclaw.json से configurable नहीं है। नीचे आउटपुट देखें।

आवाज़ें

नामVoice ID
EmmaYTpq7expH9539ERJ
KentLFZvm12tW_z0xfGo
TiffanyEu9iL_CYe8N-Gkx_
Christina2H4HY2CBNyJHBCrP
SydneyjtEKaLYNn6iif5PR
JohnKWJiFWu2O9nMPYcR
Arthur3jUdJyOi9pgbxBTK
डिफ़ॉल्ट आवाज़: Emma।

प्रति-संदेश voice override

जब सक्रिय speech policy voice overrides की अनुमति देती है, तो आप directive token का उपयोग करके inline आवाज़ें बदल सकते हैं। प्रदाता-native voice ids के लिए speakerVoiceId का उपयोग करें।
/voice:LFZvm12tW_z0xfGo
/voice_id:LFZvm12tW_z0xfGo
/voiceid:LFZvm12tW_z0xfGo
/gradium_voice:LFZvm12tW_z0xfGo
/gradiumvoice:LFZvm12tW_z0xfGo
अगर speech policy voice overrides को disabled करती है, तो directive consume किया जाता है लेकिन ignore किया जाता है।

आउटपुट

runtime target surface से आउटपुट फ़ॉर्मैट चुनता है। प्रदाता आज अन्य फ़ॉर्मैट synthesize नहीं करता।
Targetफ़ॉर्मैटFile extSample rateVoice-compatible flag
मानक ऑडियोwav.wavproviderनहीं
Voice noteopus.opusproviderहाँ
Telephonyulaw_8000n/a8 kHzn/a

Auto-select order

configured TTS providers में, Gradium का auto-select order 30 है। जब messages.tts.provider pinned नहीं होता, तब OpenClaw सक्रिय प्रदाता कैसे चुनता है, इसके लिए Text-to-Speech देखें।

संबंधित