본문으로 건너뛰기
Skillpedia
오디오 및 음성75k · #2703

text-to-speech

하는 일

이 스킬은 Starfish 모델로 글에서 독립된 음성 오디오 파일을 만듭니다. 내레이션, 해설, 팟캐스트 오디오를 오디오 파일로 만들어야 하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓대본에서 내레이션 오디오 파일이 필요할 때.
  • ✓생성 전에 언어나 성별로 음성을 고르고 싶을 때.
  • ✓녹음을 위해 음성의 속도나 음높이를 조절하고 싶을 때.

스킬 링크

https://github.com/calesthio/OpenMontage/blob/main/.claude/skills/text-to-speech/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/calesthio/OpenMontage/blob/main/.claude/skills/text-to-speech/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 문단을 차분한 남성 영어 목소리로 조금 천천히 읽어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 모델과 호환되는 음성 목록을 확인하고 요청에 맞는 음성을 고른 뒤 텍스트를 보냅니다. 그다음 오디오를 내려받을 수 있는 링크를 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Text-to-Speech (HeyGen Starfish)

Generate speech audio files from text using HeyGen's in-house Starfish TTS model. This skill is for standalone audio generation — separate from video creation.

Authentication

All requests require the X-Api-Key header. Set the HEYGEN_API_KEY environment variable.

curl -X GET "https://api.heygen.com/v1/audio/voices" \
  -H "X-Api-Key: $HEYGEN_API_KEY"

Tool Selection

If HeyGen MCP tools are available (mcp__heygen__*), prefer them over direct HTTP API calls.

Task MCP Tool Fallback (Direct API)
List TTS voices mcp__heygen__list_audio_voices GET /v1/audio/voices
Generate speech audio mcp__heygen__text_to_speech POST /v1/audio/text_to_speech

Default Workflow

  1. List voices with mcp__heygen__list_audio_voices (or GET /v1/audio/voices)
  2. Pick a voice matching desired language, gender, and features
  3. Call mcp__heygen__text_to_speech (or POST /v1/audio/text_to_speech) with text and voice_id
  4. Use the returned audio_url to download or play the audio

List TTS Voices

Retrieve voices compatible with the Starfish TTS model.

Note: This uses GET /v1/audio/voices — a different endpoint from the video voices API (GET /v2/voices). Not all video voices support Starfish TTS.

curl

curl -X GET "https://api.heygen.com/v1/audio/voices" \
  -H "X-Api-Key: $HEYGEN_API_KEY"

TypeScript

interface TTSVoice {
  voice_id: string;
  language: string;
  gender: "female" | "male" | "unknown";
  name: string;
  preview_audio_url: string | null;
  support_pause: boolean;
  support_locale: boolean;
  type: string;
}

interface TTSVoicesResponse {
  error: null | string;
  data: {
    voices: TTSVoice[];
  };
}

async function listTTSVoices(): Promise<TTSVoice[]> {
  const response = await fetch("https://api.heygen.com/v1/audio/voices", {
    headers: { "X-Api-Key": process.env.HEYGEN_API_KEY! },
  });

  const json: TTSVoicesResponse = await response.json();

  if (json.error) {
    throw new Error(json.error);
  }

  return json.data.voices;
}

Python

import requests
import os

def list_tts_voices() -> list:
    response = requests.get(
        "https://api.heygen.com/v1/audio/voices",
        headers={"X-Api-Key": os.environ["HEYGEN_API_KEY"]}
    )

    data = response.json()
    if data.get("error"):
        raise Exception(data["error"])

    return data["data"]["voices"]

Response Format

{
  "error": null,
  "data": {
    "voices": [
      {
        "voice_id": "f38a635bee7a4d1f9b0a654a31d050d2",
        "name": "Chill Brian",
        "language": "English",
        "gender": "male",
        "preview_audio_url": "https://resource.heygen.ai/text_to_speech/WpSDQvmLGXEqXZVZQiVeg6.mp3",
        "support_pause": true,
        "support_locale": false,
        "type": "public"
      }
    ]
  }
}

Generate Speech Audio

Convert text to speech audio using a specified voice.

Endpoint

POST https://api.heygen.com/v1/audio/text_to_speech

Request Fields

Field Type Req Description
text string Y Text content to convert to speech
voice_id string Y Voice ID from GET /v1/audio/voices
speed number Speech speed, 0.5-1.5 (default: 1)
pitch integer Voice pitch, -50 to 50 (default: 0)
locale string Accent/locale for multilingual voices (e.g., en-US, pt-BR)
elevenlabs_settings object Advanced settings for ElevenLabs voices

ElevenLabs Settings (optional)

Field Type Description
model string Model selection (eleven_v3, eleven_turbo_v2_5, etc.)
similarity_boost number Voice similarity, 0.0-1.0
stability number Output consistency, 0.0-1.0
style number Style intensity, 0.0-1.0

curl

curl -X POST "https://api.heygen.com/v1/audio/text_to_speech" \
  -H "X-Api-Key: $HEYGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello! Welcome to our product demo.",
    "voice_id": "YOUR_VOICE_ID",
    "speed": 1.0
  }'

TypeScript

interface TTSRequest {
  text: string;
  voice_id: string;
  speed?: number;
  pitch?: number;
  locale?: string;
  elevenlabs_settings?: {
    model?: string;
    similarity_boost?: number;
    stability?: number;
    style?: n
자주 묻는 질문

어떤 음성을 고를 수 있나요?

Starfish 모델과 호환되는 음성만 나열되며, 모든 영상 음성이 지원되지는 않습니다.

영상을 만드는 것과 같은가요?

아니요. 이 스킬은 영상 제작과 별개로 오디오 전용입니다.

API 키가 필요한가요?

네. HEYGEN_API_KEY 설정에 저장된 HeyGen API 키를 사용합니다.

상세 정보

작성자의 원본 설명

Generate speech audio from text using HeyGen's Starfish TTS model. Use when: (1) Generating standalone speech audio files from text, (2) Converting text to speech with voice selection, speed, and pitch control, (3) Creating audio for voiceovers, narration, or podcasts, (4) Working with HeyGen's /v1/audio endpoints, (5) Listing available TTS voices by language or gender.

repo: calesthio/OpenMontage

인기도

GitHub 스타
75k
순위
#2703
라이선스
AGPL-3.0
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬