text-to-speech
यह क्या करती है
यह स्किल Starfish मॉडल से लिखे टेक्स्ट का अलग से स्पीच ऑडियो बनाती है। यह उन लोगों के लिए है जिन्हें नैरेशन, वॉइसओवर या पॉडकास्ट ऑडियो फ़ाइल के रूप में चाहिए।
कब इस्तेमाल करें
- ✓जब आपको स्क्रिप्ट से नैरेशन ऑडियो फ़ाइल चाहिए।
- ✓जब आप बनाने से पहले भाषा या लिंग के आधार पर आवाज़ चुनना चाहते हैं।
- ✓जब आप रिकॉर्डिंग के लिए आवाज़ की गति या पिच बदलना चाहते हैं।
Skill का लिंक
https://github.com/calesthio/OpenMontage/blob/main/.claude/skills/text-to-speech/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस पैराग्राफ़ का शांत पुरुष अंग्रेज़ी वॉइसओवर बनाएं, थोड़ा धीमे लहजे में।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 28/10/2026
कमेंट
- …
इस repository की और skills
3d-asset-generation
75kकैटलॉग, टेक्स्ट या इमेज से 3D टूल और अंतिम जोड़ के लिए Blender का उपयोग करके दृश्य के लिए 3D वस्तुएँ बनाने का तरीका चुनने में मदद करती है।
acestep
75kखुले ACE-Step संगीत जनरेटर से वीडियो के लिए बैकग्राउंड संगीत, गाने, जिंगल और stems बनाने में मदद करती है।
agents
75kElevenLabs से वॉइस AI सहायक बनाने में मदद करती है, जैसे ग्राहक सेवा बॉट और इंटरएक्टिव आवाज़ वाले पात्र।
ai-video-gen
75kटेक्स्ट विवरण या संदर्भ इमेज से AI वीडियो क्लिप बनाने में मदद करती है, कई वीडियो जनरेशन सेवाओं में से चुनकर।
मिलती-जुलती skills
openai-whisper-api
394kयह आपके एजेंट को OpenAI की transcription सेवा से ऑडियो रिकॉर्डिंग को टेक्स्ट में बदलने देती है, जिसमें स्पीकर लेबल और आउटपुट फ़ाइलों के विकल्प हैं।
openai-whisper
394kयह आपके एजेंट को बिना API key और बिना क्लाउड अपलोड के, आपके अपने कंप्यूटर पर Whisper कमांड से ऑडियो का ट्रांसक्रिप्ट बनाने में मदद करती है।
sag
394kयह आपके एजेंट को ElevenLabs आवाज़ों से टेक्स्ट को ज़ोर से पढ़वाने और नतीजा आपके कंप्यूटर पर चलाने देती है, उच्चारण और भाव के सुझावों के साथ।