Labsco
jcarpio logo

WhatsApp Cloned Voice Messages

from jcarpio

Integrates WhatsApp and Minimax to send personalized voice messages using cloned voices.

πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

Complete Guide: Claude Desktop MCP Setup for WhatsApp Voice Messages with Cloned Voices

Overview

This comprehensive guide documents the complete process of setting up Claude Desktop with MCP (Model Context Protocol) servers for WhatsApp and Minimax integration. The goal is to enable sending personalized voice messages using cloned voices directly through WhatsApp from Claude Desktop.

What You'll Achieve

  • βœ… Configure Claude Desktop with WhatsApp MCP server
  • βœ… Integrate Minimax MCP server for AI voice generation
  • βœ… Clone your voice and use it for message generation
  • βœ… Send custom audio messages directly to WhatsApp contacts
  • βœ… Handle common setup issues and troubleshooting

Required Resources

Step 4: Configure Claude Desktop

4.1 Locate Claude Desktop Configuration

Find your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json

4.2 Create/Update Configuration File

Create or update the configuration file with the following content:

{
  "mcpServers": {
    "whatsapp": {
      "command": "/Users/[YOUR_USERNAME]/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/[YOUR_USERNAME]/github_com_lharries_whatsapp-mcp/whatsapp-mcp-server",
        "run",
        "main.py"
      ]
    },
    "MiniMax": {
      "command": "/Users/[YOUR_USERNAME]/.local/bin/uvx",
      "args": [
        "minimax-mcp",
        "-y"
      ],
      "env": {
        "MINIMAX_API_KEY": "YOUR_MINIMAX_API_KEY_HERE",
        "MINIMAX_MCP_BASE_PATH": "/tmp",
        "MINIMAX_API_HOST": "https://api.minimaxi.chat",
        "MINIMAX_API_RESOURCE_MODE": "local"
      }
    }
  }
}

Important: Replace [YOUR_USERNAME] with your actual username and YOUR_MINIMAX_API_KEY_HERE with your actual Minimax API key.

4.3 Configuration Troubleshooting

Common Issues:

  1. Path Issues:

    • Ensure all paths use absolute paths
    • Verify uv and uvx are installed in ~/.local/bin/
    • Check that directory structure matches exactly
  2. JSON Syntax Errors:

    • Validate JSON syntax using online validators
    • Ensure all quotes are properly escaped
    • Check for trailing commas
  3. Environment Variables:

    • Verify API key is correct and active
    • Ensure base path /tmp exists and is writable
    • Check API host URL is accessible

Step 6: Restart Claude Desktop

  1. Completely close Claude Desktop
  2. Restart the application
  3. Wait for MCP servers to initialize
  4. Check that both servers are connected (you should see MCP indicators in Claude)

Step 7: Test the Integration

7.1 Test WhatsApp Connection

Can you search for contacts in my WhatsApp?

7.2 Test Minimax Voice Generation

Can you generate an audio message saying "Hello, this is a test" using my cloned voice?

7.3 Send Test Voice Message

Can you send a voice message to [phone number] saying "Hello, this is a test message from Claude" using my cloned voice?

Complete Working Example

Here's the exact process we followed that resulted in success:

Initial Request

User: "Can you send an audio message with my cloned voice to +34959217658 with the message 'Hemos llegado a los 140.000 seguidores en instagram. Que chimba!! Gracias a la divinidad'"

Step-by-Step Execution

  1. Voice Discovery:

    Claude listed available voices and found the cloned voice: moss_audio_17d8fcf2-4abf-11f0-b862-46ba4da2d9df
  2. Audio Generation:

    Parameters used:
    - Text: "Hemos llegado a los 140.000 seguidores en instagram. Que chimba!! Gracias a la divinidad"
    - Voice ID: moss_audio_17d8fcf2-4abf-11f0-b862-46ba4da2d9df
    - Emotion: happy
    - Language: Spanish
  3. WhatsApp Delivery:

    Sent to: 34959217658 (without + prefix)
    Format: Audio message
    Result: Success
  4. Content Correction:

    User requested change from "140.000 seguidores" to "140 mil seguidores"
    Regenerated audio with corrected text
    Sent updated message successfully

Best Practices

  1. Regular Backups: Save your Claude Desktop configuration
  2. API Key Security: Never share your Minimax API key
  3. Voice Quality: Use high-quality audio for voice cloning
  4. Testing: Always test with yourself first before sending to others
  5. Updates: Keep MCP servers updated regularly

Success Metrics

You'll know everything is working when:

  • βœ… Claude Desktop shows both MCP servers connected
  • βœ… You can search WhatsApp contacts
  • βœ… You can list available voices including your cloned voice
  • βœ… You can generate audio with your voice
  • βœ… You can send audio messages to WhatsApp successfully

Conclusion

This setup enables powerful automation capabilities by combining Claude's intelligence with WhatsApp's reach and Minimax's voice cloning technology. The key to success is careful attention to configuration details and systematic troubleshooting of any issues that arise.

The complete integration allows for natural language commands to Claude that result in personalized voice messages being sent directly to WhatsApp contacts, opening up possibilities for automated customer service, personal assistants, and creative content distribution.