मुख्य सामग्री पर जाएँ
Skillpedia
ऑडियो और आवाज़75k · #2703

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/calesthio/OpenMontage/blob/main/.claude/skills/text-to-speech/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

  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
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills