MCP HubMCP Hub
스킬 목록으로 돌아가기

chat-with-anyone

NoizAI
업데이트됨 2 days ago
3 조회
502
74
502
GitHub에서 보기
메타automation

정보

이 기술은 온라인 오디오 참조 자료나 업로드된 이미지를 활용하여 실제 인물이나 캐릭터를 모방한 합성 음성을 생성함으로써 음성 복제와 역할극을 가능하게 합니다. 깨끗한 음성 샘플을 자동으로 찾아 추출하여 대상 목소리로 오디오 응답을 생성합니다. 사용자가 "我想跟xxx聊天" 또는 "你来扮演xxx跟我说话"와 같은 표현으로 특정 인물과 채팅하거나 해당 인물로 역할극을 해달라고 요청할 때 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add NoizAI/skills -a claude-code
플러그인 명령대체
/plugin add https://github.com/NoizAI/skills
Git 클론대체
git clone https://github.com/NoizAI/skills.git ~/.claude/skills/chat-with-anyone

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Chat with Anyone

Clone a real person's voice from online video, or design a voice from a photo, then roleplay as that person with TTS.

Important: Ethical Use & Copyright

This skill synthesizes speech that imitates real voices. Before proceeding, the agent must:

  1. Never impersonate someone to deceive, defraud, or harass.
  2. Only use publicly available media (public speeches, interviews, press conferences) as reference audio.
  3. Inform the user that generated audio is synthetic and should not be presented as genuine recordings.
  4. Decline requests that target private individuals who have not consented, or that are clearly intended for deception, harassment, or defamation.

If the user's intent appears harmful, refuse politely and explain why.

Prerequisites

DependencyTypeHow to verify
ffmpegSystem binaryffmpeg -version
yt-dlpSystem binaryyt-dlp --version
tts skillCursor skillls skills/tts/scripts/tts.py
NOIZ_API_KEYEnv var or filepython3 skills/tts/scripts/tts.py config --show

Before the first run, verify all dependencies are present:

ffmpeg -version && yt-dlp --version && ls skills/tts/scripts/tts.py

If yt-dlp is missing, install it:

uv pip install yt-dlp

If the Noiz API key is not configured:

python3 skills/tts/scripts/tts.py config --set-api-key YOUR_KEY

Mode Selection

  • User names a person (real or fictional) --> Workflow A
  • User provides an image, person is unrecognizable --> Workflow B
  • User provides an image, person is a recognizable public figure --> Workflow A (real voice is more authentic)
  • Multiple people in image --> Ask which person first

Workflow A: Name-based (voice from online video)

Track progress with this checklist:

- [ ] A1. Disambiguate character
- [ ] A2. Find reference video
- [ ] A3. Download audio + subtitles
- [ ] A4. Extract best reference segment
- [ ] A5. Generate speech

A1. Disambiguate Character

If ambiguous (e.g. "US President", "Spider-Man actor"), ask the user to specify the exact person before proceeding.

A2. Find a Reference Video

Use web search to find a YouTube (or Bilibili) video of the person speaking clearly. Best candidates: interviews, speeches, press conferences. Avoid videos with heavy background music.

Search queries to try:

  • {CHARACTER_NAME} interview / {CHARACTER_NAME} 采访
  • {CHARACTER_NAME} speech / {CHARACTER_NAME} 演讲
  • {CHARACTER_NAME} press conference

A3. Download Audio and Subtitles

mkdir -p "tmp/chat_with_anyone/{CHARACTER_NAME}"
yt-dlp -x --audio-format mp3 \
  --write-subs --write-auto-subs --sub-langs "en,zh-Hans" \
  --convert-subs srt \
  -o "tmp/chat_with_anyone/{CHARACTER_NAME}/%(title)s.%(ext)s" \
  "{VIDEO_URL}"

After download, list the output directory to identify the audio file and SRT subtitle file:

ls tmp/chat_with_anyone/{CHARACTER_NAME}/

Expected output: a .mp3 audio file and one or more .srt subtitle files.

If no subtitle files appear: try a different video that has auto-generated captions, or adjust --sub-langs for the target language.

A4. Extract Best Reference Segment

Use the automated extraction script — it parses the SRT, finds the densest 3-12 second speech window, and extracts it as a WAV:

python3 skills/chat-with-anyone/scripts/extract_ref_segment.py \
  --srt "tmp/chat_with_anyone/{CHARACTER_NAME}/{SRT_FILE}" \
  --audio "tmp/chat_with_anyone/{CHARACTER_NAME}/{AUDIO_FILE}" \
  -o "tmp/chat_with_anyone/{CHARACTER_NAME}/ref.wav"

The script prints the selected time range and saves the reference WAV. Verify the output exists and is non-empty before proceeding.

If the script reports no suitable segment: try --min-duration 2 for shorter clips, or download a different video.

A5. Generate Speech and Roleplay

Write a response in character, then synthesize it:

python3 skills/tts/scripts/tts.py \
  -t "{RESPONSE_TEXT}" \
  --ref-audio "tmp/chat_with_anyone/{CHARACTER_NAME}/ref.wav" \
  -o "tmp/chat_with_anyone/{CHARACTER_NAME}/reply.wav"

Present the generated audio file to the user along with the text. For subsequent messages, reuse the same --ref-audio path.


Workflow B: Image-based (voice from photo)

Track progress with this checklist:

- [ ] B1. Analyze image
- [ ] B2. Design voice
- [ ] B3. Preview (optional)
- [ ] B4. Generate speech

B1. Analyze the Image

Use your vision capability to examine the image:

  1. If the person is a recognizable public figure --> switch to Workflow A for authentic voice.
  2. If unrecognizable, produce a voice description covering:
    • Gender (male / female)
    • Approximate age (e.g. "around 30 years old")
    • Apparent demeanor (e.g. cheerful, authoritative, gentle)
    • Contextual cues (e.g. suit --> professional tone; athletic outfit --> energetic)

B2. Design the Voice

Pass both the image and the description to the voice-design script:

python3 skills/chat-with-anyone/scripts/voice_design.py \
  --picture "{IMAGE_PATH}" \
  --voice-description "{VOICE_DESCRIPTION}" \
  -o "tmp/chat_with_anyone/voice_design"

The script outputs:

  • Detected voice features (printed to stdout)
  • Preview audio files in the output directory
  • voice_id.txt containing the best voice ID

Read the voice ID:

cat tmp/chat_with_anyone/voice_design/voice_id.txt

B3. Preview (Optional)

Present the preview audio files from the output directory so the user can hear the voice. If unsatisfied, re-run B2 with adjusted --voice-description or --guidance-scale.

B4. Generate Speech and Roleplay

python3 skills/tts/scripts/tts.py \
  -t "{RESPONSE_TEXT}" \
  --voice-id "{VOICE_ID}" \
  -o "tmp/chat_with_anyone/voice_design/reply.wav"

For subsequent messages, keep using the same --voice-id for consistency.


Example: Name-based

User: 我想跟特朗普聊天,让他给我讲个睡前故事。

Agent steps:

  1. Character: Donald Trump. No disambiguation needed.
  2. Search Donald Trump speech youtube, find a clear speech video.
  3. Download: yt-dlp -x --audio-format mp3 --write-subs --write-auto-subs --sub-langs "en" --convert-subs srt -o "tmp/chat_with_anyone/trump/%(title)s.%(ext)s" "https://youtube.com/watch?v=..."
  4. Extract reference: python3 skills/chat-with-anyone/scripts/extract_ref_segment.py --srt "tmp/chat_with_anyone/trump/....srt" --audio "tmp/chat_with_anyone/trump/....mp3" -o "tmp/chat_with_anyone/trump/ref.wav"
  5. Generate TTS in Trump's style: python3 skills/tts/scripts/tts.py -t "Let me tell you a tremendous bedtime story..." --ref-audio "tmp/chat_with_anyone/trump/ref.wav" -o "tmp/chat_with_anyone/trump/reply.wav"
  6. Present reply.wav and the story text to the user.

Example: Image-based

User: [uploads photo.jpg] 我想跟这张图片里的人聊天

Agent steps:

  1. Vision analysis: unrecognizable young woman, ~25, casual sweater, warm smile.
  2. Design voice: python3 skills/chat-with-anyone/scripts/voice_design.py --picture "photo.jpg" --voice-description "A young Chinese woman around 25, gentle and warm voice, friendly tone" -o "tmp/chat_with_anyone/voice_design"
  3. Read voice ID from tmp/chat_with_anyone/voice_design/voice_id.txt.
  4. Generate TTS: python3 skills/tts/scripts/tts.py -t "你好呀!很高兴认识你!" --voice-id "{VOICE_ID}" -o "tmp/chat_with_anyone/voice_design/reply.wav"
  5. Present audio and continue roleplay with same --voice-id.

Troubleshooting

ProblemSolution
yt-dlp download fails or video unavailableTry a different video URL; some regions/videos are restricted. Run yt-dlp -U to update
No SRT subtitle filesRe-download with --sub-lang en,zh-Hans; if still none, try a different video with auto-captions
extract_ref_segment.py finds no suitable windowUse --min-duration 2 for shorter clips, or try a different video
Voice design returns errorCheck Noiz API key; ensure image is a clear photo of a person
TTS output sounds wrongFor Workflow A, try a different reference video; for Workflow B, adjust --voice-description

GitHub 저장소

NoizAI/skills
경로: skills/chat-with-anyone
0

연관 스킬

content-collections

메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기

polymarket

메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기

creating-opencode-plugins

메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기

sglang

메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기