text-to-speech
하는 일
이 스킬은 Starfish 모델로 글에서 독립된 음성 오디오 파일을 만듭니다. 내레이션, 해설, 팟캐스트 오디오를 오디오 파일로 만들어야 하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓대본에서 내레이션 오디오 파일이 필요할 때.
- ✓생성 전에 언어나 성별로 음성을 고르고 싶을 때.
- ✓녹음을 위해 음성의 속도나 음높이를 조절하고 싶을 때.
스킬 링크
https://github.com/calesthio/OpenMontage/blob/main/.claude/skills/text-to-speech/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- List voices with
mcp__heygen__list_audio_voices(orGET /v1/audio/voices) - Pick a voice matching desired language, gender, and features
- Call
mcp__heygen__text_to_speech(orPOST /v1/audio/text_to_speech) with text and voice_id - Use the returned
audio_urlto 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.
댓글
- …
이 저장소의 다른 스킬
3d-asset-generation
75k카탈로그, 텍스트·이미지 3D 변환 도구, Blender를 활용해 장면에 쓸 3D 오브젝트를 만드는 방법을 고르도록 돕습니다.
acestep
75k오픈소스 ACE-Step 음악 생성기를 사용해 영상에 쓸 배경 음악, 노래, 징글, 스템을 만들도록 돕습니다.
agents
75kElevenLabs로 고객 응대 봇이나 대화형 음성 캐릭터 같은 음성 AI 에이전트를 만들도록 돕습니다.
ai-video-gen
75k텍스트 설명이나 참고 이미지로 AI 영상 클립을 만들며, 여러 영상 생성 서비스 중에서 고르도록 돕습니다.
비슷한 스킬
openai-whisper-api
394k에이전트가 OpenAI의 받아쓰기 서비스로 오디오 녹음을 텍스트로 바꾸도록 돕습니다. 화자 표시와 출력 파일 옵션을 쓸 수 있습니다.
openai-whisper
394k에이전트가 API 키나 클라우드 업로드 없이 내 컴퓨터에서 Whisper 명령으로 오디오를 텍스트로 바꾸도록 돕습니다.
sag
394k에이전트가 ElevenLabs 음성으로 텍스트를 읽고 결과를 컴퓨터에서 재생하며, 발음과 표현에 관한 팁을 제공하도록 돕습니다.