[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75TAP4D1Y3WH1MK2S8ZADFZ":3,"skill-same:01M75TAP4D1Y3WH1MK2S8ZADFZ":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75TAP4D1Y3WH1MK2S8ZADFZ","echo-mirror",null,"Receives voice recordings from the EchoMirror R1 Creation, runs audio transformation (accent, effect, pitch), optionally scores similarity for practice mode, and saves side-by-side recordings for 'Record Both' mode.","ajohnsonnow\u002Fr1-warren","ajohnsonnow","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8867891?v=4","01M75T7TQ3B5VRHJF6X2Q7AWWW","Anthony Johnson","01M75T7TQPJG8YZTAVCH4SQW27",0,"MIT","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fecho-mirror\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: echo-mirror\ndescription: \"Receives voice recordings from the EchoMirror R1 Creation, runs audio transformation (accent, effect, pitch), optionally scores similarity for practice mode, and saves side-by-side recordings for 'Record Both' mode.\"\nversion: \"1.0.0\"\nauthor: \"rabbit-r1-skillz\"\n---\n\n# EchoMirror — OpenClaw Skill\n\nThis skill bridges the EchoMirror Creation on your Rabbit R1 to audio transformation pipelines on your local machine. It receives transcribed phrases, transforms them into the requested voice or accent style, returns the transformed text (and optionally a similarity score), and saves audio files when the user enables \"Record Both\" mode.\n\n## Commands sent by the Creation\n\n### 1. `transform-voice`\n\nTransform a phrase into a target accent or vocal effect.\n\n**Payload:**\n```json\n{\n  \"text\":       \"Hello, how are you today?\",\n  \"style\":      \"british_rp\",\n  \"saveRecord\": false,\n  \"isBothMode\": false\n}\n```\n\n**Style values:**\n\n| style             | Description          |\n|-------------------|----------------------|\n| `british_rp`      | British Received Pronunciation |\n| `australian`      | Australian English   |\n| `scottish`        | Scottish English     |\n| `southern_us`     | Southern US English  |\n| `new_york`        | New York English     |\n| `french_accent`   | French-accented English |\n| `spanish_accent`  | Spanish-accented English |\n| `robotic`         | Synthesized\u002Frobotic  |\n| `deep_baritone`   | Deep, resonant baritone |\n| `opera`           | Operatic dramatic delivery |\n| `whisper`         | Hushed whisper       |\n| `medieval_herald` | Formal herald proclamation |\n| `villain_dramatic`| Dramatically evil    |\n| `chipmunk`        | High-pitched\u002Fsped-up |\n| `basso_profundo`  | Extremely deep bass  |\n\n**Expected response:**\n```json\n{\n  \"transformedText\": \"Hello, how are you today? (British RP rewrite)\",\n  \"audioSaved\":      false\n}\n```\n\n---\n\n### 2. `transform-language`\n\nPhonetically rewrite an English phrase as if spoken by a native speaker of the target language (for language-learning pronunciation modeling).\n\n**Payload:**\n```json\n{\n  \"text\":       \"Hello, where is the train station?\",\n  \"targetLang\": \"french\",\n  \"saveRecord\": false\n}\n```\n\n**Target language values:** `french`, `spanish`, `japanese`\n\n**Expected response:**\n```json\n{\n  \"transformedText\": \"Bonjour, où se trouve la gare ?\",\n  \"audioSaved\":      false\n}\n```\n\n---\n\n### 3. `transform-custom`\n\nApply a custom voice persona generated by the R1's built-in AI.\n\n**Payload:**\n```json\n{\n  \"text\":       \"I shall not be moved.\",\n  \"persona\":    { \"label\": \"gruff sea captain\", \"prompt\": \"Rewrite as if spoken by a gruff sea captain...\" },\n  \"saveRecord\": false,\n  \"isBothMode\": false\n}\n```\n\nThe `persona` object is built on-device by the R1 AI when the user describes their custom voice. Your skill receives it verbatim and applies parameters it understands; ignore unknown fields.\n\n**Expected response:**\n```json\n{\n  \"transformedText\": \"I shall not be moved. (rewritten for persona)\",\n  \"audioSaved\":      false\n}\n```\n\n---\n\n### 4. `practice-score` (optional, merged into `transform-voice` response)\n\nWhen `style` is sent with a previously set practice target, the skill may include a `similarityScore` in the response (0–100, float). If voice analysis is not available, omit the field and the Creation will skip the score display.\n\n```json\n{\n  \"transformedText\": \"…\",\n  \"audioSaved\":      false,\n  \"similarityScore\": 73.4\n}\n```\n\n---\n\n## \"Record Both\" mode\n\nWhen `saveRecord: true` (or `isBothMode: true`) is present, the skill should:\n\n1. Use the original `text` to synthesize or record the original audio.\n2. Generate the transformed audio.\n3. Save both as paired WAV\u002FMP3 files side-by-side.\n4. Set `audioSaved: true` in the response.\n\nFiles are saved to `~\u002FDocuments\u002FEchoMirror\u002Frecordings\u002F` by default:\n```\necho-{style}-original-{YYYY-MM-DD}-{HH-MM-SS}.wav\necho-{style}-transformed-{YYYY-MM-DD}-{HH-MM-SS}.wav\n```\n\n---\n\n## Local setup\n\n### Prerequisites\n\n- [OpenClaw](https:\u002F\u002Fgithub.com\u002Frabbit-r1-community\u002Fopenclaw) running on your machine\n- Node.js 18+ or Python 3.10+\n- A text-to-speech \u002F voice transformation backend (see options below)\n\n### Installation\n\n1. Install and start OpenClaw:\n   ```bash\n   npm install -g openclaw\n   openclaw start\n   ```\n\n2. Place `skill.js` (below) in your OpenClaw skills directory:\n   ```\n   ~\u002F.openclaw\u002Fskills\u002Fecho-mirror\u002Fskill.js\n   ```\n\n3. (Optional) configure the output directory and TTS backend:\n   ```bash\n   openclaw config set echo-mirror.outputDir \"\u002Fpath\u002Fto\u002Frecordings\"\n   openclaw config set echo-mirror.ttsBackend \"elevenlabs\"   # or \"coqui\" | \"llm-rewrite\"\n   openclaw config set echo-mirror.elevenLabsKey \"sk-...\"\n   ```\n\n4. Verify registration:\n   ```bash\n   openclaw skills list\n   # Should show: echo-mirror  v1.0.0  active\n   ```\n\n---\n\n### skill.js\n\nPlace at `~\u002F.openclaw\u002Fskills\u002Fecho-mirror\u002Fskill.js`:\n\n```javascript\nconst fs   = require('fs').promises;\nconst path = require('path');\nconst os   = require('os');\n\nconst OUTPUT_DIR = process.env.ECHO_MIRROR_DIR\n  || path.join(os.homedir(), 'Documents', 'EchoMirror', 'recordings');\n\nconst TTS_BACKEND = process.env.ECHO_MIRROR_TTS || 'llm-rewrite';\n\nmodule.exports = {\n  name:    'echo-mirror',\n  version: '1.0.0',\n\n  async onCommand(command, payload) {\n    switch (command) {\n      case 'transform-voice':    return transformVoice(payload);\n      case 'transform-language': return transformLanguage(payload);\n      case 'transform-custom':   return transformCustom(payload);\n      default:\n        return { error: 'Unknown command: ' + command };\n    }\n  }\n};\n\n\u002F\u002F ── Style → rewrite prompt map ─────────────────────────────────\nconst STYLE_PROMPTS = {\n  british_rp:      'Rewrite the following as formal British Received Pronunciation, adjusting vocabulary and spelling naturally:',\n  australian:      'Rewrite with Australian English slang, rhythm, and phrasing:',\n  scottish:        'Rewrite in Scottish English dialect with appropriate expressions:',\n  southern_us:     'Rewrite in warm Southern US English with regional expressions:',\n  new_york:        'Rewrite in New York City English cadence and phrasing:',\n  french_accent:   'Rewrite as an English sentence phonetically colored by a French accent (keep English words, alter phrasing):',\n  spanish_accent:  'Rewrite as an English sentence phonetically colored by a Spanish accent:',\n  robotic:         'Rewrite as if spoken by a robot — staccato, literal, no contractions:',\n  deep_baritone:   'Rewrite for a deep resonant baritone delivery — commanding, measured:',\n  opera:           'Rewrite as if sung operatically — dramatic vowels, elevated diction:',\n  whisper:         'Rewrite for hushed whisper delivery — short breaths, intimate:',\n  medieval_herald: 'Rewrite as a Medieval herald proclamation — \"Hear ye\" style, formal archaic English:',\n  villain_dramatic:'Rewrite as a dramatically evil villain monologue — sinister, theatrical:',\n  chipmunk:        'Rewrite with tiny, excited, high-pitched character energy — very enthusiastic:',\n  basso_profundo:  'Rewrite for an extremely deep bass voice — slow, earth-shaking gravitas:',\n};\n\nconst LANG_PROMPTS = {\n  french:   'Translate this English phrase to natural conversational French:',\n  spanish:  'Translate this English phrase to natural conversational Spanish:',\n  japanese: 'Translate this English phrase to natural conversational Japanese (use romaji for pronunciation):',\n};\n\nasync function transformVoice({ text, style, saveRecord, isBothMode }) {\n  const prompt = STYLE_PROMPTS[style];\n  if (!prompt) return { error: 'Unknown style: ' + style };\n\n  const transformedText = await llmRewrite(prompt, text);\n  const audioSaved = (saveRecord || isBothMode) ? await saveRecordings(text, transformedText, style) : false;\n\n  return { transformedText, audioSaved };\n}\n\nasync function transformLanguage({ text, targetLang, saveRecord }) {\n  const prompt = LANG_PROMPTS[targetLang];\n  if (!prompt) return { error: 'Unknown language: ' + targetLang };\n\n  const transformedText = await llmRewrite(prompt, text);\n  const audioSaved = saveRecord ? await saveRecordings(text, transformedText, 'lang-' + targetLang) : false;\n\n  return { transformedText, audioSaved };\n}\n\nasync function transformCustom({ text, persona, saveRecord, isBothMode }) {\n  const label  = persona?.label || 'custom';\n  const prompt = persona?.prompt\n    || `Rewrite the following phrase as if spoken by: ${label}. Capture their unique speech patterns:`;\n\n  const transformedText = await llmRewrite(prompt, text);\n  const audioSaved = (saveRecord || isBothMode) ? await saveRecordings(text, transformedText, 'custom') : false;\n\n  return { transformedText, audioSaved };\n}\n\n\u002F\u002F ── LLM rewrite via local backend ─────────────────────────────\nasync function llmRewrite(systemPrompt, userText) {\n  \u002F\u002F Default: use Ollama if available, fall back to no-op\n  if (TTS_BACKEND === 'ollama' || TTS_BACKEND === 'llm-rewrite') {\n    try {\n      const resp = await fetch('http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fgenerate', {\n        method:  'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify({\n          model:  process.env.ECHO_MIRROR_MODEL || 'llama3.2',\n          prompt: systemPrompt + '\\n\\n\"' + userText + '\"',\n          stream: false,\n        }),\n      });\n      if (resp.ok) {\n        const data = await resp.json();\n        return (data.response || '').trim().replace(\u002F^[\"']|[\"']$\u002Fg, '');\n      }\n    } catch (_) {}\n  }\n\n  \u002F\u002F Passthrough if no backend configured\n  return userText;\n}\n\n\u002F\u002F ── File saving ────────────────────────────────────────────────\nasync function saveRecordings(original, transformed, style) {\n  try {\n    await fs.mkdir(OUTPUT_DIR, { recursive: true });\n\n    const ts   = new Date().toISOString().replace(\u002F[:.]\u002Fg, '-').slice(0, 19);\n    const base = `echo-${style}-${ts}`;\n\n    await fs.writeFile(path.join(OUTPUT_DIR, `${base}-original.txt`),    original,    'utf8');\n    await fs.writeFile(path.join(OUTPUT_DIR, `${base}-transformed.txt`), transformed, 'utf8');\n\n    \u002F\u002F Append to index\n    const indexPath = path.join(OUTPUT_DIR, 'INDEX.md');\n    const line = `| ${new Date().toLocaleString()} | ${style} | ${base} |\\n`;\n    await fs.appendFile(indexPath, line, 'utf8').catch(() => {});\n\n    return true;\n  } catch (_) {\n    return false;\n  }\n}\n```\n\n---\n\n## Custom voice personas (AI-generated)\n\nWhen the user selects \"Custom Voice (AI)\" from the EchoMirror menu and describes a voice persona by speaking, the R1's built-in LLM generates a persona descriptor on-device. The result is stored locally and forwarded in subsequent `transform-custom` calls as the `persona` object.\n\nThe persona object contains at minimum:\n- `label` — short display name shown in the UI (max 24 chars)\n- `prompt` — one-sentence rewrite instruction forwarded to your skill's `transformCustom` handler\n\nAdditional fields (`pitch`, `rate`, `reverb`, etc.) may be included and passed through to any audio post-processing layer you integrate; ignore fields your skill does not use.\n\nIf AI persona generation fails, EchoMirror falls back silently to the Robotic preset.\n\n---\n\n## TTS backends\n\nThe skill supports three backend modes, configurable via `ECHO_MIRROR_TTS`:\n\n| Value          | Description |\n|----------------|-------------|\n| `llm-rewrite`  | Default. Uses a local Ollama model to rewrite text in the target style. No audio generation — text is returned to the R1 for its built-in TTS. |\n| `coqui`        | Uses [Coqui TTS](https:\u002F\u002Fgithub.com\u002Fcoqui-ai\u002FTTS) for audio synthesis with voice cloning. Generates WAV files. |\n| `elevenlabs`   | Uses ElevenLabs API for high-quality voice transformation. Requires `ECHO_MIRROR_ELEVENLABS_KEY`. |\n\nFor the `llm-rewrite` mode (default), set `ECHO_MIRROR_MODEL` to your preferred Ollama model:\n```bash\nexport ECHO_MIRROR_MODEL=\"llama3.2\"   # default\nexport ECHO_MIRROR_MODEL=\"mistral\"\nexport ECHO_MIRROR_MODEL=\"qwen2.5\"\n```\n\n---\n\n## Output format\n\nWhen \"Record Both\" is enabled, files are saved to `~\u002FDocuments\u002FEchoMirror\u002Frecordings\u002F`:\n\n```\necho-{style}-{YYYY-MM-DD}-{HH-MM-SS}-original.txt\necho-{style}-{YYYY-MM-DD}-{HH-MM-SS}-transformed.txt\n```\n\nAn `INDEX.md` table is maintained in the same folder:\n\n```markdown\n| Date\u002FTime            | Style    | Files                           |\n|----------------------|----------|---------------------------------|\n| 6\u002F14\u002F2026, 9:30:00 AM | british_rp | echo-british_rp-2026-06-14... |\n```\n\n## Security notes\n\n- This skill rewrites text via a local LLM and writes files only to the configured output directory. It does not traverse paths, execute payload content as code, or make outbound network requests (except to your locally configured TTS backend).\n- The `text` field is passed to your LLM as user content inside a system prompt — treat it as user-generated and ensure your LLM backend is running locally.\n- OpenClaw's local-only transport means no audio or transcript data leaves your machine except via the R1 device connection.\n- The ElevenLabs backend does send text to ElevenLabs' API; enable only if you have reviewed their data handling policy.\n","# EchoMirror — OpenClaw Skill\n\nThis skill bridges the EchoMirror Creation on your Rabbit R1 to audio transformation pipelines on your local machine. It receives transcribed phrases, transforms them into the requested voice or accent style, returns the transformed text (and optionally a similarity score), and saves audio files when the user enables \"Record Both\" mode.\n\n## Commands sent by the Creation\n\n### 1. `transform-voice`\n\nTransform a phrase into a target accent or vocal effect.\n\n**Payload:**\n```json\n{\n  \"text\":       \"Hello, how are you today?\",\n  \"style\":      \"british_rp\",\n  \"saveRecord\": false,\n  \"isBothMode\": false\n}\n```\n\n**Style values:**\n\n| style             | Description          |\n|-------------------|----------------------|\n| `british_rp`      | British Received Pronunciation |\n| `australian`      | Australian English   |\n| `scottish`        | Scottish English     |\n| `southern_us`     | Southern US English  |\n| `new_york`        | New York English     |\n| `french_accent`   | French-accented English |\n| `spanish_accent`  | Spanish-accented English |\n| `robotic`         | Synthesized\u002Frobotic  |\n| `deep_baritone`   | Deep, resonant baritone |\n| `opera`           | Operatic dramatic delivery |\n| `whisper`         | Hushed whisper       |\n| `medieval_herald` | Formal herald proclamation |\n| `villain_dramatic`| Dramatically evil    |\n| `chipmunk`        | High-pitched\u002Fsped-up |\n| `basso_profundo`  | Extremely deep bass  |\n\n**Expected response:**\n```json\n{\n  \"transformedText\": \"Hello, how are you today? (British RP rewrite)\",\n  \"audioSaved\":      false\n}\n```\n\n---\n\n### 2. `transform-language`\n\nPhonetically rewrite an English phrase as if spoken by a native speaker of the target language (for language-learning pronunciation modeling).\n\n**Payload:**\n```json\n{\n  \"text\":       \"Hello, where is the train station?\",\n  \"targetLang\": \"french\",\n  \"saveRecord\": false\n}\n```\n\n**Target language values:** `french`, `spanish`, `japanese`\n\n**Expected response:**\n```json\n{\n  \"transformedText\": \"Bonjour, où se trouve la gare ?\",\n  \"audioSaved\":      false\n}\n```\n\n---\n\n### 3. `transform-custom`\n\nApply a custom voice persona generated by the R1's built-in AI.\n\n**Payload:**\n```json\n{\n  \"text\":       \"I shall not be moved.\",\n  \"persona\":    { \"label\": \"gruff sea captain\", \"prompt\": \"Rewrite as if spoken by a gruff sea captain...\" },\n  \"saveRecord\": false,\n  \"isBothMode\": false\n}\n```\n\nThe `persona` object is built on-device by the R1 AI when the user describes their custom voice. Your skill receives it verbatim and applies parameters it understands; ignore unknown fields.\n\n**Expected response:**\n```json\n{\n  \"transformedText\": \"I shall not be moved. (rewritten for persona)\",\n  \"audioSaved\":      false\n}\n```\n\n---\n\n### 4. `practice-score` (optional, merged into `transform-voice` response)\n\nWhen `style` is sent with a previously set practice target, the skill may include a `similarityScore` in the response (0–100, float). If voice analysis is not available, omit the field and the Creation will skip the score display.\n\n```json\n{\n  \"transformedText\": \"…\",\n  \"audioSaved\":      false,\n  \"similarityScore\": 73.4\n}\n```\n\n---\n\n## \"Record Both\" mode\n\nWhen `saveRecord: true` (or `isBothMode: true`) is present, the skill should:\n\n1. Use the original `text` to synthesize or record the original audio.\n2. Generate the transformed audio.\n3. Save both as paired WAV\u002FMP3 files side-by-side.\n4. Set `audioSaved: true` in the response.\n\nFiles are saved to `~\u002FDocuments\u002FEchoMirror\u002Frecordings\u002F` by default:\n```\necho-{style}-original-{YYYY-MM-DD}-{HH-MM-SS}.wav\necho-{style}-transformed-{YYYY-MM-DD}-{HH-MM-SS}.wav\n```\n\n---\n\n## Local setup\n\n### Prerequisites\n\n- [OpenClaw](https:\u002F\u002Fgithub.com\u002Frabbit-r1-community\u002Fopenclaw) running on your machine\n- Node.js 18+ or Python 3.10+\n- A text-to-speech \u002F voice transformation backend (see options below)\n\n### Installation\n\n1. Install and start OpenClaw:\n   ```bash\n   npm install -g openclaw\n   openclaw start\n   ```\n\n2. Place `skill.js` (below) in your OpenClaw skills directory:\n   ```\n   ~\u002F.openclaw\u002Fskills\u002Fecho-mirror\u002Fskill.js\n   ```\n\n3. (Optional) configure the output directory and TTS backend:\n   ```bash\n   openclaw config set echo-mirror.outputDir \"\u002Fpath\u002Fto\u002Frecordings\"\n   openclaw config set echo-mirror.ttsBackend \"elevenlabs\"   # or \"coqui\" | \"llm-rewrite\"\n   openclaw config set echo-mirror.elevenLabsKey \"sk-...\"\n   ```\n\n4. Verify registration:\n   ```bash\n   openclaw skills list\n   # Should show: echo-mirror  v1.0.0  active\n   ```\n\n---\n\n### skill.js\n\nPlace at `~\u002F.openclaw\u002Fskills\u002Fecho-mirror\u002Fskill.js`:\n\n```javascript\nconst fs   = require('fs').promises;\nconst path = require('path');\nconst os   = require('os');\n\nconst OUTPUT_DIR = process.env.ECHO_MIRROR_DIR\n  || path.join(os.homedir(), 'Documents', 'EchoMirror', 'recordings');\n\nconst TTS_BACKEND = process.env.ECHO_MIRROR_TTS || 'llm-rewrite';\n\nmodule.exports = {\n  name:    'echo-mirror',\n  version: '1.0.0',\n\n  async onCommand(command, payload) {\n    switch (command) {\n      case 'transform-voice':    return transformVoice(payload);\n      case 'transform-language': return transformLanguage(payload);\n      case 'transform-custom':   return transformCustom(payload);\n      default:\n        return { error: 'Unknown command: ' + command };\n    }\n  }\n};\n\n\u002F\u002F ── Style → rewrite prompt map ─────────────────────────────────\nconst STYLE_PROMPTS = {\n  british_rp:      'Rewrite the following as formal British Received Pronunciation, adjusting vocabulary and spelling naturally:',\n  australian:      'Rewrite with Australian English slang, rhythm, and phrasing:',\n  scottish:        'Rewrite in Scottish English dialect with appropriate expressions:',\n  southern_us:     'Rewrite in warm Southern US English with regional expressions:',\n  new_york:        'Rewrite in New York City English cadence and phrasing:',\n  french_accent:   'Rewrite as an English sentence phonetically colored by a French accent (keep English words, alter phrasing):',\n  spanish_accent:  'Rewrite as an English sentence phonetically colored by a Spanish accent:',\n  robotic:         'Rewrite as if spoken by a robot — staccato, literal, no contractions:',\n  deep_baritone:   'Rewrite for a deep resonant baritone delivery — commanding, measured:',\n  opera:           'Rewrite as if sung operatically — dramatic vowels, elevated diction:',\n  whisper:         'Rewrite for hushed whisper delivery — short breaths, intimate:',\n  medieval_herald: 'Rewrite as a Medieval herald proclamation — \"Hear ye\" style, formal archaic English:',\n  villain_dramatic:'Rewrite as a dramatically evil villain monologue — sinister, theatrical:',\n  chipmunk:        'Rewrite with tiny, excited, high-pitched character energy — very enthusiastic:',\n  basso_profundo:  'Rewrite for an extremely deep bass voice — slow, earth-shaking gravitas:',\n};\n\nconst LANG_PROMPTS = {\n  french:   'Translate this English phrase to natural conversational French:',\n  spanish:  'Translate this English phrase to natural conversational Spanish:',\n  japanese: 'Translate this English phrase to natural conversational Japanese (use romaji for pronunciation):',\n};\n\nasync function transformVoice({ text, style, saveRecord, isBothMode }) {\n  const prompt = STYLE_PROMPTS[style];\n  if (!prompt) return { error: 'Unknown style: ' + style };\n\n  const transformedText = await llmRewrite(prompt, text);\n  const audioSaved = (saveRecord || isBothMode) ? await saveRecordings(text, transformedText, style) : false;\n\n  return { transformedText, audioSaved };\n}\n\nasync function transformLanguage({ text, targetLang, saveRecord }) {\n  const prompt = LANG_PROMPTS[targetLang];\n  if (!prompt) return { error: 'Unknown language: ' + targetLang };\n\n  const transformedText = await llmRewrite(prompt, text);\n  const audioSaved = saveRecord ? await saveRecordings(text, transformedText, 'lang-' + targetLang) : false;\n\n  return { transformedText, audioSaved };\n}\n\nasync function transformCustom({ text, persona, saveRecord, isBothMode }) {\n  const label  = persona?.label || 'custom';\n  const prompt = persona?.prompt\n    || `Rewrite the following phrase as if spoken by: ${label}. Capture their unique speech patterns:`;\n\n  const transformedText = await llmRewrite(prompt, text);\n  const audioSaved = (saveRecord || isBothMode) ? await saveRecordings(text, transformedText, 'custom') : false;\n\n  return { transformedText, audioSaved };\n}\n\n\u002F\u002F ── LLM rewrite via local backend ─────────────────────────────\nasync function llmRewrite(systemPrompt, userText) {\n  \u002F\u002F Default: use Ollama if available, fall back to no-op\n  if (TTS_BACKEND === 'ollama' || TTS_BACKEND === 'llm-rewrite') {\n    try {\n      const resp = await fetch('http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fgenerate', {\n        method:  'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify({\n          model:  process.env.ECHO_MIRROR_MODEL || 'llama3.2',\n          prompt: systemPrompt + '\\n\\n\"' + userText + '\"',\n          stream: false,\n        }),\n      });\n      if (resp.ok) {\n        const data = await resp.json();\n        return (data.response || '').trim().replace(\u002F^[\"']|[\"']$\u002Fg, '');\n      }\n    } catch (_) {}\n  }\n\n  \u002F\u002F Passthrough if no backend configured\n  return userText;\n}\n\n\u002F\u002F ── File saving ────────────────────────────────────────────────\nasync function saveRecordings(original, transformed, style) {\n  try {\n    await fs.mkdir(OUTPUT_DIR, { recursive: true });\n\n    const ts   = new Date().toISOString().replace(\u002F[:.]\u002Fg, '-').slice(0, 19);\n    const base = `echo-${style}-${ts}`;\n\n    await fs.writeFile(path.join(OUTPUT_DIR, `${base}-original.txt`),    original,    'utf8');\n    await fs.writeFile(path.join(OUTPUT_DIR, `${base}-transformed.txt`), transformed, 'utf8');\n\n    \u002F\u002F Append to index\n    const indexPath = path.join(OUTPUT_DIR, 'INDEX.md');\n    const line = `| ${new Date().toLocaleString()} | ${style} | ${base} |\\n`;\n    await fs.appendFile(indexPath, line, 'utf8').catch(() => {});\n\n    return true;\n  } catch (_) {\n    return false;\n  }\n}\n```\n\n---\n\n## Custom voice personas (AI-generated)\n\nWhen the user selects \"Custom Voice (AI)\" from the EchoMirror menu and describes a voice persona by speaking, the R1's built-in LLM generates a persona descriptor on-device. The result is stored locally and forwarded in subsequent `transform-custom` calls as the `persona` object.\n\nThe persona object contains at minimum:\n- `label` — short display name shown in the UI (max 24 chars)\n- `prompt` — one-sentence rewrite instruction forwarded to your skill's `transformCustom` handler\n\nAdditional fields (`pitch`, `rate`, `reverb`, etc.) may be included and passed through to any audio post-processing layer you integrate; ignore fields your skill does not use.\n\nIf AI persona generation fails, EchoMirror falls back silently to the Robotic preset.\n\n---\n\n## TTS backends\n\nThe skill supports three backend modes, configurable via `ECHO_MIRROR_TTS`:\n\n| Value          | Description |\n|----------------|-------------|\n| `llm-rewrite`  | Default. Uses a local Ollama model to rewrite text in the target style. No audio generation — text is returned to the R1 for its built-in TTS. |\n| `coqui`        | Uses [Coqui TTS](https:\u002F\u002Fgithub.com\u002Fcoqui-ai\u002FTTS) for audio synthesis with voice cloning. Generates WAV files. |\n| `elevenlabs`   | Uses ElevenLabs API for high-quality voice transformation. Requires `ECHO_MIRROR_ELEVENLABS_KEY`. |\n\nFor the `llm-rewrite` mode (default), set `ECHO_MIRROR_MODEL` to your preferred Ollama model:\n```bash\nexport ECHO_MIRROR_MODEL=\"llama3.2\"   # default\nexport ECHO_MIRROR_MODEL=\"mistral\"\nexport ECHO_MIRROR_MODEL=\"qwen2.5\"\n```\n\n---\n\n## Output format\n\nWhen \"Record Both\" is enabled, files are saved to `~\u002FDocuments\u002FEchoMirror\u002Frecordings\u002F`:\n\n```\necho-{style}-{YYYY-MM-DD}-{HH-MM-SS}-original.txt\necho-{style}-{YYYY-MM-DD}-{HH-MM-SS}-transformed.txt\n```\n\nAn `INDEX.md` table is maintained in the same folder:\n\n```markdown\n| Date\u002FTime            | Style    | Files                           |\n|----------------------|----------|---------------------------------|\n| 6\u002F14\u002F2026, 9:30:00 AM | british_rp | echo-british_rp-2026-06-14... |\n```\n\n## Security notes\n\n- This skill rewrites text via a local LLM and writes files only to the configured output directory. It does not traverse paths, execute payload content as code, or make outbound network requests (except to your locally configured TTS backend).\n- The `text` field is passed to your LLM as user content inside a system prompt — treat it as user-generated and ensure your LLM backend is running locally.\n- OpenClaw's local-only transport means no audio or transcript data leaves your machine except via the R1 device connection.\n- The ElevenLabs backend does send text to ElevenLabs' API; enable only if you have reviewed their data handling policy.\n",{"name":5,"author":24,"version":25,"description":7},"rabbit-r1-skillz","1.0.0","main","734489c70f6293d3b800cd956559034acaa9f563","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren","https:\u002F\u002Fgithub.com\u002Fajohnsonnow","structuredforgrowth.com","2026-09-04 21:06:25",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add ajohnsonnow\u002Fr1-warren --skill echo-mirror",{"tool":38,"command":39},"bunx","bunx skills add ajohnsonnow\u002Fr1-warren --skill echo-mirror",{"tool":41,"command":42},"pnpm","pnpm dlx skills add ajohnsonnow\u002Fr1-warren --skill echo-mirror","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fecho-mirror\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"card.jpg","ASSET","资产文件",23645,"https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fecho-mirror\u002Fcard.jpg",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"icon.png",6197,"https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fecho-mirror\u002Ficon.png",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"index.html","REFERENCE","参考文档",45971,"https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fecho-mirror\u002Findex.html",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M75THZJQ1XYR8QDWB9RXC9QV","whisper-quiz","WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fwhisper-quiz\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M75THW5BJRSQQM3QP6M568FT","walk-cast","Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters \u002F Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fwalk-cast\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M75THTANZTS2AMDDBP615RTA","voice-novel","Local machine skill for VoiceNovel — handles story export to disk.","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fvoice-novel\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M75THQ175ZRJ3E0GPFW7QKM8","voice-guide","Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people\u002Fvehicles\u002Ffood\u002Fhazards\u002Fexits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fvoice-guide\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M75THKAJR69WV7QQYJ26X95C","voice-draft","Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fvoice-draft\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M75THGKGY2JY59MM9PREXCXX","voice-commit","Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git\u002FCI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.","https:\u002F\u002Fgithub.com\u002Fajohnsonnow\u002Fr1-warren\u002Fblob\u002Fmain\u002Fvoice-commit\u002FSKILL.md",[],[]]