मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट15k · #10950

add-dictation

यह क्या करती है

यह स्किल असिस्टेंट को मौजूदा ऐप में Grok speech-to-text जोड़ने देती है। यह उन डेवलपर्स के लिए है जो चाहते हैं कि यूज़र बोलकर लिखें या रिकॉर्डिंग के ट्रांसक्रिप्ट पाएँ।

कब इस्तेमाल करें

  • ✓जब आप चाहते हैं कि माइक बटन यूज़र की बात को टेक्स्ट बॉक्स में लिख दे।
  • ✓जब आपको रिकॉर्ड की गई ऑडियो फ़ाइल के लाइव कैप्शन या ट्रांसक्रिप्शन चाहिए।
  • ✓जब आप अपलोड या लिंक को टाइमस्टैम्प के साथ ट्रांसक्राइब करवाना चाहते हैं।

Skill का लिंक

https://github.com/cursor/plugins/blob/main/grok-voice/skills/add-dictation/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/cursor/plugins/blob/main/grok-voice/skills/add-dictation/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे चैट ऐप में एक माइक बटन जोड़िए, जो बोली गई बात को मैसेज बॉक्स में टेक्स्ट कर दे।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

असिस्टेंट मौजूदा speech-to-text मॉडल गाइड पढ़ता है, और सरल डिक्टेशन के लिए बैच अनुरोध जोड़ता है, या जब बोलते समय टेक्स्ट दिखना ज़रूरी हो तो आपके बैकएंड से स्ट्रीमिंग कनेक्शन। API कुंजी सर्वर पर ही रहती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Add Dictation

Add Grok Speech to Text to an existing app: a mic button that dictates into the composer, live captions, or transcripts of recorded audio. Run on /add-dictation, typed Dictate, or clear “transcribe” intent. Cursor has no mic; wire the app, not the IDE.

Docs

Model

Before any STT call, read the model-selection section and pass the latest listed model as model. Do not invent ids or reuse a stale one from this skill. REST: form field before file. Streaming: query param. Official examples currently send grok-voice-transcribe-2.0. Listed today: grok-voice-transcribe-2.0 (best), grok-voice-transcribe-1.0 (original; API default when model is omitted).

Pick the path

Need Path
Tap, speak, tap, text appears. Uploaded files. URLs. Batch POST https://api.x.ai/v1/stt (default)
Text appears while speaking: captions, long dictation, push-to-talk Streaming wss://api.x.ai/v1/stt through a backend relay

Batch is the default for a composer mic button: one request, no socket, the key never leaves the server. Go streaming only when the UX needs interim text.

Auth

  • Bearer XAI_API_KEY, server side only. The STT docs document no ephemeral-token flow, and browsers cannot set WebSocket headers, so browser streaming goes through your backend relay. Do not invent a token flow.
  • Never put the key in a client bundle. Do not paste keys in chat.

Steps

  1. Map the app

    • Composer or input component, where the text should land (insert at cursor vs replace), server framework, package manager.
    • The microphone icon belongs to dictation. If /add-voice is installed, its waveform primary button stays as is; add the mic as a secondary ghost button beside it.
    • Existing mic capture? If /add-voice ran, its PCM capture can feed streaming STT; pass its rate as sample_rate. 16 kHz is the model’s native rate; other supported rates (8000, 16000, 22050, 24000, 44100, 48000) are resampled server side.
  2. Batch path (default)

    • Client: MediaRecorder → Blob → POST to your own route. The endpoint auto-detects containers (WAV, MP3, OGG, Opus, FLAC, AAC, MP4, M4A, MKV, WebM), so send whatever MediaRecorder produces.
    • Server: forward as multipart/form-data. Option fields first, file last; fields after file may be ignored. file or url, max 500 MB. model from docs (latest listed).
// server (any runtime with fetch + FormData)
export async function transcribe(blob: Blob, filename: string) {
  const form = new FormData();
  form.append("model", "grok-voice-transcribe-2.0"); // latest from docs; re-read model-selection
  form.append("format", "true");     // written-form numbers/currency; requires language
  form.append("language", "en");
  // form.append("keyterm", "Acme"); // repeat per term, ≤100 terms × 50 chars
  form.append("file", blob, filename); // last
  const res = await fetch("https://api.x.ai/v1/stt", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.XAI_API_KEY}` },
    body: form,
  });
  if (!res.ok) throw new Error(`STT ${res.status}`); // 400 bad input, 413 >500 MB, 429 back off, 502 url fetch failed, 503 retry
  return (await res.json()) as {
    text: string; language: string; duration: number;
    words?: { text: string; start: number; end: number; speaker?: number }[];
    channels?: { index: number; text: string; words: unknown[] }[];
  };
}
// client
const mime = MediaRecorder.isTypeSupported("audio/webm;codecs=opus") ? "audio/webm;codecs=opus" : "audio/mp4";
const rec = new MediaRecorder(stream, { mimeType: mime });
const parts: BlobPart[] = [];
rec.ondataavailable = (e) => parts.push(e.data);
rec.onstop = async () => {
  const fd = new FormData();
  fd.append("file", new Blob(parts, { type: mime }), "dictation");
  const { text } = await (await fetch("/api/dictation", { method: "POST", body: fd })).json();
  insertAtCursor(text);
};
rec.start(); // second tap: rec.stop()
  1. Streaming path
    • Relay: server holds the key, upgrades the browser socket, forwards binary frames and client control messages up, JSON events down. Build the query string server side. model from docs (latest
अक्सर पूछे जाने वाले सवाल

API कुंजी कहाँ रहती है?

केवल सर्वर पर। स्किल कहती है कि कुंजी कभी सर्वर से बाहर नहीं जाती।

डिफ़ॉल्ट विकल्प कौन-सा है?

माइक बटन के लिए बैच अनुरोध, जो एक रिकॉर्डिंग भेजकर एक ट्रांसक्रिप्ट लेता है, डिफ़ॉल्ट है।

स्ट्रीमिंग कब इस्तेमाल होनी चाहिए?

स्ट्रीमिंग उस टेक्स्ट के लिए है जो व्यक्ति के बोलते समय ही दिखना चाहिए, जैसे लाइव कैप्शन।

जानकारी

लेखक का मूल विवरण

Use when the user runs /add-dictation or wants speech turned into text with Grok speech-to-text: a mic button that dictates into the composer, live captions, or transcribing recorded audio (files, uploads, URLs) with word timestamps, diarization, subtitles, meeting notes. STT, transcribe, transcription. For a voice agent that talks back use /add-voice.

repo: cursor/plugins

लोकप्रियता

GitHub स्टार
15k
रैंकिंग में स्थान
#10950
लाइसेंस
—
अपडेट की गई
31/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

advisor

15k

अगर आप इसे चालू करते हैं, तो आपका एजेंट बड़े फ़ैसले से पहले या किसी त्रुटि में अटकने पर एक ज़्यादा शक्तिशाली दूसरे मॉडल से सलाह ले सकता है।

AI और एजेंटएजेंट

check-agent-compatibility

15k

जाँचती है कि AI कोडिंग एजेंट किसी रिपॉज़िटरी को शुरू, सत्यापित और दस्तावेज़ित कर सकते हैं या नहीं, और एक अनुकूलता स्कोर के साथ मुख्य समस्याएँ लौटाती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

cli-for-agents

15k

आपके एजेंट को कमांड-लाइन टूल ऐसे डिज़ाइन या जाँचना सिखाती है कि AI एजेंट उन्हें बिना प्रॉम्प्ट चला सकें, साफ़ help टेक्स्ट और उदाहरणों के साथ।

कोडिंगAPI और सर्वर (backend)

continual-learning

15k

पिछली चैट की समीक्षा का काम एक समर्पित मेमोरी अपडेटर को सौंपकर आपकी AGENTS.md नोट्स को अद्यतन रखती है।

AI और एजेंटएजेंट

मिलती-जुलती skills