> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# सर्वोत्तम तरीके

यह गाइड ElevenLabs मॉडल का इस्तेमाल करके टेक्स्ट टू स्पीच आउटपुट बेहतर बनाने की तकनीकें बताती है। अपनी ज़रूरतों के लिए सबसे अच्छा तरीका जानने के लिए इन तरीकों के साथ प्रयोग करें।

## नियंत्रण

> **Info**
>
> आउटपुट पर आपको और बेहतर नियंत्रण देने के लिए हम सक्रिय रूप से *Director's Mode* पर काम कर रहे हैं।

जब तक *Director's Mode* जैसी उन्नत सुविधाएं उपलब्ध नहीं होतीं, ये तकनीकें बारीक नतीजे पाने का व्यावहारिक तरीका देती हैं।

### विराम

> **Info**
>
> Eleven v4 और Eleven v3, SSML break tags को सपोर्ट नहीं करते। विराम नियंत्रित करने के लिए
> [Prompting Eleven v4](#prompting-eleven-v4) सेक्शन में बताई गई तकनीकों का इस्तेमाल करें।

3 सेकंड तक के प्राकृतिक विराम के लिए `<break time="x.xs" />` का इस्तेमाल करें।

> **Note**
>
> एक ही जनरेशन में बहुत ज़्यादा break tags इस्तेमाल करने से अस्थिरता आ सकती है। AI की गति बढ़ सकती है या
> अतिरिक्त शोर या ऑडियो आर्टिफैक्ट आ सकते हैं। हम इसे ठीक करने पर काम कर रहे हैं।

**`Example`**

```text Example
"Hold on, let me think." <break time="1.5s" /> "Alright, I've got it."
```

* **एकरूपता:** प्राकृतिक बोलने की लय बनाए रखने के लिए `<break>` tags का एकरूपता से इस्तेमाल करें। बहुत ज़्यादा इस्तेमाल से अस्थिरता हो सकती है।
* **वॉइस-विशिष्ट व्यवहार:** अलग-अलग वॉइस विराम को अलग तरह से संभाल सकती हैं, खासकर वे जिन्हें "uh" या "ah" जैसी फिलर ध्वनियों के साथ ट्रेन किया गया है।

छोटे विराम के लिए डैश (- या --) या हिचकिचाहट वाले टोन के लिए ellipses (...) को `<break>` के विकल्प के रूप में इस्तेमाल किया जा सकता है। हालांकि, ये कम एकरूप होते हैं।

**`Example`**

```text Example

"It… well, it might work." "Wait — what's that noise?"

```

### उच्चारण

#### Eleven v4 के साथ IPA

[Eleven v4](/docs/hi/overview/capabilities/text-to-speech/eleven-v4) (`eleven_v4`) में इंटरनेशनल फोनेटिक अल्फाबेट, यानी IPA, के लिए बेहतर नेटिव सपोर्ट शामिल है। इससे नामों, तकनीकी शब्दों और खास तरह से संभाले जाने वाले दूसरे शब्दों के उच्चारण पर आपको ज़्यादा सटीक नियंत्रण मिलता है। पिछले मॉडल की तुलना में IPA उच्चारण ज़्यादा एकरूप है, लेकिन नतीजे वॉइस और वाक्यांश के अनुसार अलग हो सकते हैं। प्रोडक्शन में इस्तेमाल करने से पहले, अपनी चुनी हुई वॉइस के साथ महत्वपूर्ण उच्चारणों की जांच करने की सलाह देते हैं।

XML-स्टाइल phoneme tags की ज़रूरत वाले पुराने मॉडल के विपरीत, Eleven v4 आपके टेक्स्ट में IPA प्रतीकों को forward slashes में लिखने पर उन्हें समझता है:

**`Syntax`**

```text Syntax
"/IPA_transcription/"
```

IPA ट्रांसक्रिप्शन ऐसा होना चाहिए:

* शुरुआत और अंत में forward slashes (`/`) हों
* मानक IPA प्रतीकों का इस्तेमाल किया गया हो
* string parameter के रूप में पास करते समय double quotes में लिखा गया हो

**कोड उदाहरण**

**`Python`**

```python title="Python"
from elevenlabs import ElevenLabs

client = ElevenLabs()
audio = client.text_to_speech.convert(
    voice_id="21m00Tcm4TlvDq8ikWAM",
    text='The term "/ˌbaɪoʊˈkemɪstri/" refers to the study of chemical processes.',
    model_id="eleven_v4",
)
```

**`TypeScript`**

```typescript title="TypeScript"
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

const client = new ElevenLabsClient();

const audio = await client.textToSpeech.convert("21m00Tcm4TlvDq8ikWAM", {
  text: 'The city of "/ˌsænfrənˈsɪskoʊ/" is located in California.',
  modelId: "eleven_v4",
});
```

**`cURL`**

```bash title="cURL"
curl -X POST https://api.elevenlabs.io/v1/text-to-speech/{voice_id} \
  -H "xi-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "The concept of \"/fəˈnɛtɪks/\" is central to linguistics.",
    "model_id": "eleven_v4"
  }'
```

आप एक ही टेक्स्ट string में कई IPA ट्रांसक्रिप्शन शामिल कर सकते हैं:

**`Python`**

```python title="Python"
from elevenlabs import ElevenLabs

client = ElevenLabs()
text = 'The medication "/ɡluːˈkoʊs/" and "/ˌɪnsjəˈlɪn/" are commonly used to manage conditions like "/ˌdaɪəˈbiːtiːz/".'
audio = client.text_to_speech.convert(
    voice_id="21m00Tcm4TlvDq8ikWAM",
    text=text,
    model_id="eleven_v4",
)
```

**`TypeScript`**

```typescript title="TypeScript"
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

const client = new ElevenLabsClient();
const text =
  'The medication "/ɡluːˈkoʊs/" and "/ˌɪnsjəˈlɪn/" are commonly used to manage conditions like "/ˌdaɪəˈbiːtiːz/".';
const audio = await client.textToSpeech.convert("21m00Tcm4TlvDq8ikWAM", {
  text,
  modelId: "eleven_v4",
});
```

**सर्वोत्तम तरीके**

* [इंटरनेशनल फोनेटिक अल्फाबेट चार्ट](https://en.wikipedia.org/wiki/International_Phonetic_Alphabet) के मानक IPA प्रतीकों का इस्तेमाल करें
* stress markers शामिल करें: कई syllables वाले शब्दों के लिए primary stress (ˈ) और secondary stress (ˌ)
* चुनिंदा रूप से लागू करें: सिर्फ़ उन शब्दों या वाक्यांशों को wrap करें जिनके उच्चारण को नियंत्रित करना है
* अपनी वॉइस के साथ टेस्ट करें: अलग-अलग वॉइस IPA को थोड़ा अलग तरीके से समझ सकती हैं

**समस्या निवारण**

#### उच्चारण अब भी गलत है

IPA dictionary का इस्तेमाल करके जांचें कि आपका IPA ट्रांसक्रिप्शन सटीक है। कई syllables वाले शब्दों के लिए
stress markers शामिल करें (primary stress के लिए ˈ, secondary stress के लिए ˌ)। अलग-अलग वॉइस के साथ टेस्ट करें, क्योंकि
कुछ वॉइस अन्य की तुलना में IPA को ज़्यादा सटीकता से समझ सकती हैं।

#### एक ही IPA के साथ असंगत नतीजे

पिछले मॉडल की तुलना में IPA उच्चारण ज़्यादा एकरूप है, लेकिन नतीजे वॉइस और वाक्यांश के अनुसार अलग हो सकते हैं।
प्रोडक्शन में इस्तेमाल करने से पहले, अपनी चुनी हुई वॉइस के साथ महत्वपूर्ण उच्चारणों की जांच करने की सलाह देते हैं।
अगर आपको एकरूप नतीजा चाहिए, तो एक से ज़्यादा बार जनरेट करें और
सबसे अच्छा नतीजा चुनें।

#### v2 मॉडल के लिए Phoneme tags

v2 मॉडल के साथ [SSML phoneme tags](https://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Language) का इस्तेमाल करके उच्चारण तय करें। सपोर्टेड alphabets में [CMU](https://en.wikipedia.org/wiki/CMU_Pronouncing_Dictionary) Arpabet और [इंटरनेशनल फोनेटिक अल्फाबेट (IPA)](https://en.wikipedia.org/wiki/International_Phonetic_Alphabet) शामिल हैं।

> **Note**
>
> Phoneme tags सिर्फ़ `eleven_flash_v2` [मॉडल](/docs/hi/overview/models) के साथ संगत हैं।

**`CMU Arpabet Example`**

```xml CMU Arpabet Example
<phoneme alphabet="cmu-arpabet" ph="M AE1 D IH0 S AH0 N">
  Madison
</phoneme>
```

**`IPA Example`**

```xml IPA Example
<phoneme alphabet="ipa" ph="ˈæktʃuəli">
  actually
</phoneme>
```

v2 मॉडल के साथ एकरूप और अनुमानित नतीजों के लिए हम CMU Arpabet इस्तेमाल करने की सलाह देते हैं। IPA प्रभावी हो सकता है, लेकिन CMU Arpabet आमतौर पर ज़्यादा भरोसेमंद प्रदर्शन देता है।

Phoneme tags सिर्फ़ अलग-अलग शब्दों के लिए काम करते हैं। अगर आपके पास पहले और अंतिम नाम वाला कोई नाम है, जिसका उच्चारण आप किसी खास तरीके से करवाना चाहते हैं, तो आपको हर शब्द के लिए phoneme tag बनाना होगा।

सटीक उच्चारण बनाए रखने के लिए कई syllables वाले शब्दों में सही stress marking सुनिश्चित करें:

**`Correct usage`**

```xml Correct usage
<phoneme alphabet="cmu-arpabet" ph="P R AH0 N AH0 N S IY EY1 SH AH0 N">
  pronunciation
</phoneme>
```

**`Incorrect usage`**

```xml Incorrect usage
<phoneme alphabet="cmu-arpabet" ph="P R AH N AH N S IY EY SH AH N">
  pronunciation
</phoneme>
```

#### Alias Tags

जो मॉडल phoneme tags को सपोर्ट नहीं करते, उनमें आप शब्दों को ज़्यादा ध्वन्यात्मक तरीके से लिखकर देख सकते हैं। आप capital letters, dashes, apostrophes या किसी एक अक्षर या अक्षरों के आसपास single quotation marks जैसी कई तरकीबें भी इस्तेमाल कर सकते हैं।

उदाहरण के लिए, "trapezii" जैसे शब्द को "trapezIi" लिखा जा सकता है, ताकि शब्द के "ii" पर ज़्यादा ज़ोर दिया जा सके।

आप अपने टेक्स्ट में शब्द को सीधे बदल सकते हैं। या pronunciation dictionary इस्तेमाल करते समय, अगर आप दूसरे शब्दों या वाक्यांशों से उच्चारण तय करना चाहते हैं, तो इसके लिए alias tags इस्तेमाल कर सकते हैं। अगर आप Multilingual v2 से जनरेट कर रहे हैं, जो phoneme tags को सपोर्ट नहीं करता, तो यह उपयोगी हो सकता है। आप ElevenCreative Studio, डबिंग स्टूडियो और API के ज़रिए Speech Synthesis के साथ pronunciation dictionaries इस्तेमाल कर सकते हैं।

उदाहरण के लिए, अगर आपके टेक्स्ट में कोई ऐसा नाम है जिसका उच्चारण असामान्य है और जिसे बोलने में AI को मुश्किल हो सकती है, तो आप उसका उच्चारण तय करने के लिए alias tag इस्तेमाल कर सकते हैं:

```
  <lexeme>
    <grapheme>Claughton</grapheme>
    <alias>Cloffton</alias>
  </lexeme>
```

अगर आप यह सुनिश्चित करना चाहते हैं कि आपके टेक्स्ट में किसी acronym के आने पर उसे हमेशा एक खास तरीके से बोला जाए, तो इसे तय करने के लिए alias tag इस्तेमाल कर सकते हैं:

```
  <lexeme>
    <grapheme>UN</grapheme>
    <alias>United Nations</alias>
  </lexeme>
```

#### उच्चारण शब्दकोश

हमारे कुछ टूल, जैसे ElevenCreative Studio और डबिंग स्टूडियो, आपको उच्चारण शब्दकोश बनाने और अपलोड करने की सुविधा देते हैं। इनसे आप कुछ शब्दों, जैसे कैरेक्टर या ब्रांड नामों, का उच्चारण तय कर सकते हैं या यह तय कर सकते हैं कि acronyms को कैसे पढ़ा जाए।

उच्चारण शब्दकोश यह सुविधा आपको ऐसा lexicon या dictionary file अपलोड करने देकर देते हैं, जिसमें शब्दों के जोड़े और उनके उच्चारण का तरीका तय किया गया हो। इसके लिए phonetic alphabet या शब्द प्रतिस्थापन इस्तेमाल किया जा सकता है।

प्रोजेक्ट में इनमें से कोई शब्द मिलने पर AI मॉडल तय किए गए प्रतिस्थापन का इस्तेमाल करके उस शब्द का उच्चारण करेगा।

उच्चारण शब्दकोश file देने के लिए, प्रोजेक्ट की settings खोलें और TXT या [.PLS format](https://www.w3.org/TR/pronunciation-lexicon/) में file अपलोड करें। प्रोजेक्ट में dictionary जोड़ने पर यह अपने-आप फिर से गणना करेगा कि नए dictionary file के साथ प्रोजेक्ट के किन हिस्सों को दोबारा कन्वर्ट करना होगा और उन्हें unconverted के रूप में चिह्नित कर देगा।

फ़िलहाल हम सिर्फ़ उन उच्चारण शब्दकोशों को सपोर्ट करते हैं जिनमें phoneme या alias tags से प्रतिस्थापन तय किए गए हों।

Phonemes और aliases, दोनों नियमों के ऐसे सेट हैं जो किसी शब्द या वाक्यांश को खोजते हैं—जिसे grapheme कहा जाता है—और तय करते हैं कि उसे किससे बदला जाएगा। ध्यान दें कि खोज case sensitive होती है। उच्चारण शब्दकोश में प्रतिस्थापन शब्द खोजते समय dictionary को शुरुआत से अंत तक जांचा जाता है और केवल सबसे पहला प्रतिस्थापन इस्तेमाल होता है।

#### उच्चारण शब्दकोश के उदाहरण

यहां CMU Arpabet और IPA, दोनों में उच्चारण शब्दकोशों के उदाहरण दिए गए हैं। इनमें "Apple" का उच्चारण तय करने के लिए phoneme और "UN" को "United Nations" से बदलने के लिए alias शामिल है:

**`CMU Arpabet Example`**

```xml CMU Arpabet Example
<?xml version="1.0" encoding="UTF-8"?>
<lexicon version="1.0"
      xmlns="http://www.w3.org/2005/01/pronunciation-lexicon"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.w3.org/2005/01/pronunciation-lexicon
        http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd"
      alphabet="cmu-arpabet" xml:lang="en-GB">
  <lexeme>
    <grapheme>apple</grapheme>
    <phoneme>AE P AH L</phoneme>
  </lexeme>
  <lexeme>
    <grapheme>UN</grapheme>
    <alias>United Nations</alias>
  </lexeme>
</lexicon>
```

**`IPA Example`**

```xml IPA Example
<?xml version="1.0" encoding="UTF-8"?>
<lexicon version="1.0"
      xmlns="http://www.w3.org/2005/01/pronunciation-lexicon"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.w3.org/2005/01/pronunciation-lexicon
        http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd"
      alphabet="ipa" xml:lang="en-GB">
  <lexeme>
    <grapheme>Apple</grapheme>
    <phoneme>ˈæpl̩</phoneme>
  </lexeme>
  <lexeme>
    <grapheme>UN</grapheme>
    <alias>United Nations</alias>
  </lexeme>
</lexicon>
```

उच्चारण शब्दकोश की `.pls` file जनरेट करने के लिए कुछ open source टूल उपलब्ध हैं:

* [Sequitur G2P](https://github.com/sequitur-g2p/sequitur-g2p) - Open-source टूल, जो डेटा से उच्चारण नियम सीखता है और phonetic transcriptions जनरेट कर सकता है।
* [Phonetisaurus](https://github.com/AdolfVonKleist/Phonetisaurus) - CMUdict जैसे मौजूदा शब्दकोशों पर प्रशिक्षित open-source G2P सिस्टम।
* [eSpeak](https://github.com/espeak-ng/espeak-ng) - स्पीच सिंथेसाइज़र, जो टेक्स्ट से phoneme transcriptions जनरेट कर सकता है।
* [CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) - phonetic transcriptions वाला पहले से बना अंग्रेज़ी शब्दकोश।

### भावना

कथात्मक संदर्भ या स्पष्ट dialogue tags के ज़रिए भावनाएं व्यक्त करें। यह तरीका AI को अपनाने वाले टोन और भावना को समझने में मदद करता है।

**`Example`**

```text Example
You're leaving?" she asked, her voice trembling with sadness. "That's it!" he exclaimed triumphantly.
```

सिर्फ़ संदर्भ पर निर्भर रहने की तुलना में स्पष्ट dialogue tags ज़्यादा अनुमानित नतीजे देते हैं, लेकिन मॉडल फिर भी भावनात्मक डिलीवरी गाइड्स को बोलकर सुनाएगा। अगर ये नहीं चाहिए, तो ऑडियो एडिटर का इस्तेमाल करके post-production में इन्हें हटाया जा सकता है।

### गति

ऑडियो की गति पर वॉइस बनाने के लिए इस्तेमाल किए गए ऑडियो का बहुत प्रभाव पड़ता है। अपनी वॉइस बनाते समय, अस्वाभाविक रूप से तेज़ बोलने जैसी गति की समस्याओं से बचने के लिए लंबे, लगातार samples इस्तेमाल करने की सलाह देते हैं।

जनरेट किए गए ऑडियो की गति नियंत्रित करने के लिए, आप speed setting का इस्तेमाल कर सकते हैं। इससे जनरेट की गई स्पीच की गति बढ़ाई या घटाई जा सकती है। speed setting वेबसाइट और API के ज़रिए टेक्स्ट टू स्पीच में, साथ ही ElevenCreative Studio और Agents Platform में उपलब्ध है। यह वॉइस settings में मिलती है।

डिफ़ॉल्ट मान 1.0 है, जिसका मतलब है कि गति में कोई बदलाव नहीं किया जाता। 1.0 से कम मान वॉइस को धीमा करेंगे, न्यूनतम 0.7 तक। 1.0 से अधिक मान वॉइस को तेज़ करेंगे, अधिकतम 1.2 तक। अत्यधिक मान जनरेट की गई स्पीच की गुणवत्ता को प्रभावित कर सकते हैं।

प्राकृतिक, कथात्मक शैली में लिखकर भी गति नियंत्रित की जा सकती है।

**`Example`**

```text Example
"I… I thought you'd understand," he said, his voice slowing with disappointment.
```

### सुझाव

#### आम समस्याएं

* असंगत विराम: सुनिश्चित करें कि विराम के लिए `<break time="x.xs" />` syntax का इस्तेमाल हो।
* उच्चारण त्रुटियां: सटीक उच्चारण के लिए CMU Arpabet या IPA phoneme tags इस्तेमाल करें।
* भावना मेल न खाना: भावना को गाइड करने के लिए कथात्मक संदर्भ या स्पष्ट tags जोड़ें।
  **post-production में भावनात्मक गाइडेंस टेक्स्ट हटाना याद रखें।**

#### आउटपुट बेहतर बनाने के सुझाव

मनचाही गति या भावना पाने के लिए वैकल्पिक वाक्य-रचना के साथ प्रयोग करें। जटिल साउंड
इफेक्ट्स के लिए, prompts को छोटे, क्रमिक हिस्सों में बांटें और नतीजों को मैन्युअल रूप से जोड़ें।

### रचनात्मक नियंत्रण

हालांकि हम आउटपुट पर यूज़र्स को और बेहतर नियंत्रण देने के लिए सक्रिय रूप से "Director's Mode" विकसित कर रहे हैं, रचनात्मकता और सटीकता बढ़ाने के लिए यहां कुछ अंतरिम तकनीकें दी गई हैं:

### कथात्मक स्टाइलिंग

टोन और गति को असरदार ढंग से गाइड करने के लिए scriptwriting जैसी कथात्मक शैली में prompts लिखें।

### लेयर्ड आउटपुट

ज़्यादा जटिल compositions के लिए साउंड इफेक्ट्स या स्पीच को हिस्सों में जनरेट करें और ऑडियो एडिटिंग सॉफ़्टवेयर से उन्हें एक साथ layer करें।

### ध्वन्यात्मक प्रयोग

अगर उच्चारण सही नहीं है, तो मनचाहा नतीजा पाने के लिए वैकल्पिक spellings या ध्वन्यात्मक अनुमानों के साथ प्रयोग करें।

### मैन्युअल समायोजन

जिन sequences में सटीक timing चाहिए, उनके लिए post-production में अलग-अलग साउंड इफेक्ट्स को मैन्युअल रूप से मिलाएं।

### फ़ीडबैक पुनरावृत्ति

descriptions, tags या भावनात्मक संकेतों में बदलाव करके नतीजों को बेहतर बनाएं।

## टेक्स्ट नॉर्मलाइज़ेशन

फ़ोन नंबर, ज़िप कोड और ईमेल जैसी जटिल चीज़ों के साथ टेक्स्ट टू स्पीच इस्तेमाल करने पर उनका उच्चारण गलत हो सकता है। ऐसा अक्सर इसलिए होता है क्योंकि ये खास चीज़ें ट्रेनिंग सेट में नहीं होतीं और छोटे मॉडल यह सामान्यीकरण नहीं कर पाते कि इनका उच्चारण कैसे किया जाना चाहिए। इस गाइड में बताया गया है कि ये अंतर कब होते हैं और सही उच्चारण कैसे पाया जा सकता है।

> **Tip**
>
> नंबर, तारीखों और अन्य जटिल टेक्स्ट एलिमेंट्स के उच्चारण को बेहतर बनाने के लिए,
> सभी TTS मॉडल्स में नॉर्मलाइज़ेशन डिफ़ॉल्ट रूप से चालू रहता है।

### मॉडल इनपुट को अलग-अलग तरीके से क्यों पढ़ते हैं?

कुछ मॉडल्स को नंबर और वाक्यांश ज़्यादा मानवीय तरीके से पढ़ने के लिए प्रशिक्षित किया जाता है। उदाहरण के लिए, "\$1,000,000" वाक्यांश को Eleven Multilingual v2 मॉडल सही तरीके से "one million dollars" पढ़ता है। लेकिन Eleven Flash v2.5 मॉडल उसी वाक्यांश को "one thousand thousand dollars" पढ़ता है।

इसका कारण यह है कि Multilingual v2 मॉडल बड़ा मॉडल है और यह नंबरों को इंसानी श्रोताओं के लिए ज़्यादा स्वाभाविक तरीके से पढ़ना बेहतर ढंग से सामान्यीकृत कर सकता है, जबकि Flash v2.5 मॉडल बहुत छोटा मॉडल है और ऐसा नहीं कर सकता।

#### आम उदाहरण

टेक्स्ट टू स्पीच मॉडल्स को इन चीज़ों में मुश्किल हो सकती है:

* फ़ोन नंबर ("123-456-7890")
* मुद्राएं ("\$47,345.67")
* कैलेंडर इवेंट्स ("2024-01-01")
* समय ("9:23 AM")
* पते ("123 Main St, Anytown, USA")
* URLs ("example.com/link/to/resource")
* यूनिट्स के संक्षिप्त रूप ("Terabyte" की जगह "TB")
* शॉर्टकट्स ("Ctrl + Z")

### समाधान

#### प्रशिक्षित मॉडल्स इस्तेमाल करें

इसका सबसे आसान समाधान ऐसा TTS मॉडल इस्तेमाल करना है जिसे नंबर और वाक्यांश ज़्यादा मानवीय तरीके से पढ़ने के लिए प्रशिक्षित किया गया हो, जैसे Eleven Multilingual v2 मॉडल। हालांकि, यह हमेशा संभव नहीं हो सकता, जैसे ऐसे उपयोग के मामलों में जहां कम लेटेंसी बहुत ज़रूरी हो (उदाहरण के लिए, कन्वर्सेशनल एजेंट्स)।

#### LLM प्रॉम्प्ट्स में नॉर्मलाइज़ेशन लागू करें

अगर आप TTS के लिए टेक्स्ट बनाने हेतु LLM इस्तेमाल कर रहे हैं, तो प्रॉम्प्ट में नॉर्मलाइज़ेशन के निर्देश जोड़ सकते हैं।

#### स्पष्ट और सीधे प्रॉम्प्ट्स इस्तेमाल करें

LLMs व्यवस्थित और स्पष्ट निर्देशों का सबसे अच्छा जवाब देते हैं। आपके प्रॉम्प्ट में साफ़ तौर पर बताया जाना चाहिए कि आप टेक्स्ट को स्पीच के लिए पढ़ने योग्य फ़ॉर्मैट में बदलना चाहते हैं।

#### अलग-अलग नंबर फ़ॉर्मैट्स संभालें

सभी नंबर एक ही तरह से नहीं पढ़े जाते। विचार करें कि अलग-अलग प्रकार के नंबर कैसे बोले जाने चाहिए:

* मूल संख्याएं: 123 → "one hundred twenty-three"
* क्रमवाचक संख्याएं: 2nd → "second"
* मौद्रिक रकम: \$45.67 → "forty-five dollars and sixty-seven cents"
* फ़ोन नंबर: "123-456-7890" → "one two three, four five six, seven eight nine zero"
* दशमलव और भिन्न: "3.5" → "three point five", "⅔" → "two-thirds"
* रोमन अंक: "XIV" → "fourteen" (या अगर शीर्षक हो तो "the fourteenth")

#### संक्षिप्त रूप हटाएं या विस्तार करें

स्पष्टता के लिए आम संक्षिप्त रूपों का विस्तार किया जाना चाहिए:

* "Dr." → "Doctor"
* "Ave." → "Avenue"
* "St." → "Street" (लेकिन "St. Patrick" जैसा है, वैसा ही रहना चाहिए)

आप अपने प्रॉम्प्ट में स्पष्ट विस्तार का अनुरोध कर सकते हैं:

> सभी संक्षिप्त रूपों को उनके पूरे बोले जाने वाले रूप में विस्तार करें।

#### अक्षरांकीय नॉर्मलाइज़ेशन

सभी नॉर्मलाइज़ेशन नंबरों के लिए नहीं होते; स्पष्टता के लिए कुछ अक्षरांकीय वाक्यांशों को भी नॉर्मलाइज़ किया जाना चाहिए:

* शॉर्टकट्स: "Ctrl + Z" → "control z"
* यूनिट्स के संक्षिप्त रूप: "100km" → "one hundred kilometers"
* प्रतीक: "100%" → "one hundred percent"
* URLs: "elevenlabs.io/docs" → "eleven labs dot io slash docs"
* कैलेंडर इवेंट्स: "2024-01-01" → "January first, two-thousand twenty-four"

#### एज केस पर विचार करें

अलग-अलग संदर्भों में अलग-अलग रूपांतरण की ज़रूरत हो सकती है:

* तारीखें: "01/02/2023" → "January second, twenty twenty-three" या "the first of February, twenty twenty-three" (लोकेल के आधार पर)
* समय: "14:30" → "two thirty PM"

अगर आपको कोई खास फ़ॉर्मैट चाहिए, तो उसे प्रॉम्प्ट में साफ़ तौर पर बताएं।

##### इसे एक साथ लागू करना

यह प्रॉम्प्ट ज़्यादातर उपयोग के मामलों के लिए एक अच्छा शुरुआती बिंदु होगा:

```text maxLines=0
Convert the output text into a format suitable for text-to-speech. Ensure that numbers, symbols, and abbreviations are expanded for clarity when read aloud. Expand all abbreviations to their full spoken forms.

Example input and output:

"$42.50" → "forty-two dollars and fifty cents"
"£1,001.32" → "one thousand and one pounds and thirty-two pence"
"1234" → "one thousand two hundred thirty-four"
"3.14" → "three point one four"
"555-555-5555" → "five five five, five five five, five five five five"
"2nd" → "second"
"XIV" → "fourteen" - unless it's a title, then it's "the fourteenth"
"3.5" → "three point five"
"⅔" → "two-thirds"
"Dr." → "Doctor"
"Ave." → "Avenue"
"St." → "Street" (but saints like "St. Patrick" should remain)
"Ctrl + Z" → "control z"
"100km" → "one hundred kilometers"
"100%" → "one hundred percent"
"elevenlabs.io/docs" → "eleven labs dot io slash docs"
"2024-01-01" → "January first, two-thousand twenty-four"
"123 Main St, Anytown, USA" → "one two three Main Street, Anytown, United States of America"
"14:30" → "two thirty PM"
"01/02/2023" → "January second, two-thousand twenty-three" or "the first of February, two-thousand twenty-three", depending on locale of the user
```

#### प्रीप्रोसेसिंग के लिए रेगुलर एक्सप्रेशंस इस्तेमाल करें

अगर आप LLM को प्रॉम्प्ट देने के लिए कोड इस्तेमाल कर रहे हैं, तो मॉडल को टेक्स्ट देने से पहले उसे नॉर्मलाइज़ करने के लिए रेगुलर एक्सप्रेशंस इस्तेमाल कर सकते हैं। यह एक उन्नत तकनीक है और इसके लिए रेगुलर एक्सप्रेशंस की कुछ जानकारी चाहिए। यहां कुछ आसान उदाहरण दिए गए हैं:

**`normalize_text.py`**

```python title="normalize_text.py" maxLines=0
# Be sure to install the inflect library before running this code
import inflect
import re

# Initialize inflect engine for number-to-word conversion
p = inflect.engine()

def normalize_text(text: str) -> str:
    # Convert monetary values
    def money_replacer(match):
        currency_map = {"$": "dollars", "£": "pounds", "€": "euros", "¥": "yen"}
        currency_symbol, num = match.groups()

        # Remove commas before parsing
        num_without_commas = num.replace(',', '')

        # Check for decimal points to handle cents
        if '.' in num_without_commas:
            dollars, cents = num_without_commas.split('.')
            dollars_in_words = p.number_to_words(int(dollars))
            cents_in_words = p.number_to_words(int(cents))
            return f"{dollars_in_words} {currency_map.get(currency_symbol, 'currency')} and {cents_in_words} cents"
        else:
            # Handle whole numbers
            num_in_words = p.number_to_words(int(num_without_commas))
            return f"{num_in_words} {currency_map.get(currency_symbol, 'currency')}"

    # Regex to handle commas and decimals
    text = re.sub(r"([$£€¥])(\d+(?:,\d{3})*(?:\.\d{2})?)", money_replacer, text)

    # Convert phone numbers
    def phone_replacer(match):
        return ", ".join(" ".join(p.number_to_words(int(digit)) for digit in group) for group in match.groups())

    text = re.sub(r"(\d{3})-(\d{3})-(\d{4})", phone_replacer, text)

    return text

# Example usage
print(normalize_text("$1,000"))   # "one thousand dollars"
print(normalize_text("£1000"))   # "one thousand pounds"
print(normalize_text("€1000"))   # "one thousand euros"
print(normalize_text("¥1000"))   # "one thousand yen"
print(normalize_text("$1,234.56"))   # "one thousand two hundred thirty-four dollars and fifty-six cents"
print(normalize_text("555-555-5555"))  # "five five five, five five five, five five five five"

```

**`normalizeText.ts`**

```typescript title="normalizeText.ts" maxLines=0
// Be sure to install the number-to-words library before running this code
import { toWords } from "number-to-words";

function normalizeText(text: string): string {
  return (
    text
      // Convert monetary values (e.g., "$1000" → "one thousand dollars", "£1000" → "one thousand pounds")
      .replace(/([$£€¥])(\d+(?:,\d{3})*(?:\.\d{2})?)/g, (_, currency, num) => {
        // Remove commas before parsing
        const numWithoutCommas = num.replace(/,/g, "");

        const currencyMap: { [key: string]: string } = {
          $: "dollars",
          "£": "pounds",
          "€": "euros",
          "¥": "yen",
        };

        // Check for decimal points to handle cents
        if (numWithoutCommas.includes(".")) {
          const [dollars, cents] = numWithoutCommas.split(".");
          return `${toWords(Number.parseInt(dollars))} ${currencyMap[currency] || "currency"}${cents ? ` and ${toWords(Number.parseInt(cents))} cents` : ""}`;
        }

        // Handle whole numbers
        return `${toWords(Number.parseInt(numWithoutCommas))} ${currencyMap[currency] || "currency"}`;
      })

      // Convert phone numbers (e.g., "555-555-5555" → "five five five, five five five, five five five five")
      .replace(/(\d{3})-(\d{3})-(\d{4})/g, (_, p1, p2, p3) => {
        return `${spellOutDigits(p1)}, ${spellOutDigits(p2)}, ${spellOutDigits(p3)}`;
      })
  );
}

// Helper function to spell out individual digits as words (for phone numbers)
function spellOutDigits(num: string): string {
  return num
    .split("")
    .map((digit) => toWords(Number.parseInt(digit)))
    .join(" ");
}

// Example usage
console.log(normalizeText("$1,000")); // "one thousand dollars"
console.log(normalizeText("£1000")); // "one thousand pounds"
console.log(normalizeText("€1000")); // "one thousand euros"
console.log(normalizeText("¥1000")); // "one thousand yen"
console.log(normalizeText("$1,234.56")); // "one thousand two hundred thirty-four dollars and fifty-six cents"
console.log(normalizeText("555-555-5555")); // "five five five, five five five, five five five five"
```

## Eleven v4 के लिए प्रॉम्प्टिंग

यह सेक्शन Eleven v4 के लिए लिखा गया है। नीचे दी गई कई तकनीकें [Eleven v3](#prompting-eleven-v3) पर भी लागू होती हैं। आम तौर पर, Eleven v4, Eleven v3 की तुलना में बेहतर है और लगभग हर मामले में बेहतर नतीजे देता है। हम v4 पर स्विच करने और अपने वॉइसेज़ व कंटेंट के साथ इसे टेस्ट करने की पुरज़ोर सलाह देते हैं, ताकि आप खुद अंतर देख सकें। कुछ खास मामलों में अलग विकल्प बेहतर हो सकता है, लेकिन ज़्यादातर यूज़र्स के लिए v4 बेहतर विकल्प होगा।

मॉडल में होने वाले बदलावों — वॉइस क्लोनिंग, एक्सेंट हैंडलिंग, वेरिएंट्स और तुलना — के लिए [Eleven v4](/docs/hi/overview/capabilities/text-to-speech/eleven-v4) देखें।

> **Info**
>
> Eleven v4 और Eleven v3, SSML break tags को सपोर्ट नहीं करते। पॉज़ और गति नियंत्रित करने के लिए ऑडियो टैग्स, विराम चिह्नों (ellipsis),
> और टेक्स्ट स्ट्रक्चर का इस्तेमाल करें।

### वॉइस चुनना

वॉइस अब भी अहम है। ऐसा डिलीवरी स्टाइल जो पहले से ट्रेनिंग डेटा में है — फुसफुसाना, चिल्लाना या कोई खास डिलीवरी — मॉडल के लिए दोहराना आसान होता है। डेटा से बाहर की चीज़ के लिए कहना कठिन होता है। Eleven v4, पुराने मॉडलों की तुलना में ऑडियो टैग्स को ज़्यादा भरोसेमंद तरीके से फ़ॉलो करता है, तब भी जब वॉइस को उस डिलीवरी पर ट्रेन नहीं किया गया हो। जिस वॉइस ने कभी फुसफुसाया नहीं है, वह भी `[whispering]` को फ़ॉलो कर सकेगी और जिस वॉइस ने कभी चिल्लाया नहीं है, वह भी `[shouting]` को फ़ॉलो कर सकेगी। हालांकि, यह कम भरोसेमंद हो सकता है और नतीजा शायद बेहतर न हो। शुरुआती टेस्टिंग में, यह काफ़ी अच्छा काम करता दिखा है। हम सलाह देते हैं कि आप अपनी पसंद की वॉइस और अपने खास उपयोग के मामले के लिए इसे खुद टेस्ट करें।

### ऑडियो टैग्स

ऑडियो टैग्स (जैसे `[whispering]`, `[shouting]`, `[laughing]`) से आप डिलीवरी को बारीकी से नियंत्रित कर सकते हैं, और Eleven v4 इन्हें पिछले मॉडलों से कहीं ज़्यादा बारीकी से संभालता है। ये अभी पूरी तरह परफेक्ट नहीं हैं और हम मॉडल टैग निर्देशों को कितनी भरोसेमंद तरीके से फ़ॉलो करता है, इसमें लगातार सुधार कर रहे हैं — यह हमारे लिए लगातार निवेश का अहम क्षेत्र है और समय के साथ बेहतर होता रहेगा।

आप क्या चाहते हैं, इसे साफ़ तौर पर बताने से बहुत मदद मिलती है। चूंकि Eleven v4 को वोकल डिलीवरी स्टाइल और साउंड इफेक्ट्स, दोनों जनरेट करने के लिए ट्रेन किया गया है, कभी-कभी किसी टैग को डिलीवरी निर्देश की बजाय साउंड इफेक्ट की रिक्वेस्ट समझा जा सकता है (या इसका उल्टा)। ऐसे टैग लिखना जो आपकी चाही गई वॉइस क्वालिटी को साफ़ तौर पर बताएं (जैसे किसी ऐसे टैग की बजाय `[low, gravelly voice]` जिसे साउंड क्यू समझा जा सकता हो), मॉडल को आपकी मंशा के मुताबिक डिलीवरी देने में मदद करता है। हम आपके उपयोग के मामले के लिए खास टैग्स और वाक्यांशों को टेस्ट करने की सलाह देते हैं और उम्मीद करते हैं कि इसमें सुधार जारी रहेगा।

> **Note**
>
> जब डिलीवरी पहले से वॉइस के ट्रेनिंग डेटा में हो, तो टैग्स ज़्यादा आसानी से काम करते हैं। Eleven v4
> फिर भी ऐसे टैग को फ़ॉलो कर सकता है जिस पर वॉइस को ट्रेन नहीं किया गया था, जैसे `[whispering]` या `[shouting]`, हालांकि
> नतीजा शायद बेहतर न हो।

#### वॉइस से जुड़े

ये टैग्स वोकल डिलीवरी और भावनात्मक अभिव्यक्ति को नियंत्रित करते हैं:

* `[laughs]`, `[laughs harder]`, `[starts laughing]`, `[wheezing]`
* `[whispers]`
* `[sighs]`, `[exhales]`
* `[sarcastic]`, `[curious]`, `[excited]`, `[crying]`, `[snorts]`, `[mischievously]`

**`Example`**

```text Example
[whispers] I never knew it could be this way, but I'm glad we're here.
```

#### साउंड इफेक्ट्स

परिवेश की आवाज़ें और इफेक्ट्स जोड़ें:

* `[gunshot]`, `[applause]`, `[clapping]`, `[explosion]`
* `[swallows]`, `[gulps]`

**`Example`**

```text Example
[applause] Thank you all for coming tonight! [gunshot] What was that?
```

#### अनोखे और विशेष

क्रिएटिव ऐप्लिकेशन के लिए एक्सपेरिमेंटल टैग्स:

* `[strong X accent]` (X को चाही गई एक्सेंट से बदलें)
* `[sings]`, `[woo]`, `[fart]`

**`Example`**

```text Example
[strong French accent] "Zat's life, my friend — you can't control everysing."
```

> **Warning**
>
> कुछ एक्सपेरिमेंटल टैग्स अलग-अलग वॉइसेज़ में कम एकसमान हो सकते हैं। प्रोडक्शन में इस्तेमाल करने से पहले
> अच्छी तरह टेस्ट करें।

### विराम चिह्न

v4 में विराम चिह्न डिलीवरी को काफ़ी प्रभावित करते हैं:

* **Ellipses (...)** पॉज़ और प्रभाव जोड़ते हैं
* **Capitalization** ज़ोर बढ़ाता है
* **Standard punctuation** बोलने की प्राकृतिक लय देता है

**`Example`**

```text Example
"It was a VERY long day [sigh] … nobody listens anymore."
```

### एक स्पीकर वाले उदाहरण

टैग्स का सोच-समझकर इस्तेमाल करें और उन्हें वॉइस के किरदार से मिलाएं। ध्यानमग्न वॉइस को चिल्लाना नहीं चाहिए; बहुत उत्साहित वॉइस विश्वसनीय ढंग से फुसफुसा नहीं पाएगी।

#### भावपूर्ण एकालाप

```text
"Okay, you are NOT going to believe this.

You know how I've been totally stuck on that short story?

Like, staring at the screen for HOURS, just... nothing?

[frustrated sigh] I was seriously about to just trash the whole thing. Start over.

Give up, probably. But then!

Last night, I was just doodling, not even thinking about it, right?

And this one little phrase popped into my head. Just... completely out of the blue.

And it wasn't even for the story, initially.

But then I typed it out, just to see. And it was like... the FLOODGATES opened!

Suddenly, I knew exactly where the character needed to go, what the ending had to be...

It all just CLICKED. [happy gasp] I stayed up till, like, 3 AM, just typing like a maniac.

Didn't even stop for coffee! [laughs] And it's... it's GOOD! Like, really good.

It feels so... complete now, you know? Like it finally has a soul.

I am so incredibly PUMPED to finish editing it now.

It went from feeling like a chore to feeling like... MAGIC. Seriously, I'm still buzzing!"
```

#### डायनामिक और हास्यपूर्ण

```text
[laughs] Alright...guys - guys. Seriously.

[exhales] Can you believe just how - realistic - this sounds now?

[laughing hysterically] I mean OH MY GOD...it's so good.

Like you could never do this with the old model.

For example [pauses] could you switch my accent in the old model?

[dismissive] didn't think so. [excited] but you can now!

Check this out... [cute] I'm going to speak with a french accent now..and between you and me

[whispers] I don't know how. [happy] ok.. here goes. [strong French accent] "Zat's life, my friend — you can't control everysing."

[giggles] isn't that insane? Watch, now I'll do a Russian accent -

[strong Russian accent] "Dee Goldeneye eez fully operational and rready for launch."

[sighs] Absolutely, insane! Isn't it..? [sarcastic] I also have some party tricks up my sleeve..

I mean i DID go to music school.

[singing quickly] "Happy birthday to you, happy birthday to you, happy BIRTHDAY dear ElevenLabs... Happy birthday to youuu."
```

#### कस्टमर सर्विस सिम्युलेशन

```text
[professional] "Thank you for calling Tech Solutions. My name is Sarah, how can I help you today?"

[sympathetic] "Oh no, I'm really sorry to hear you're having trouble with your new device. That sounds frustrating."

[questioning] "Okay, could you tell me a little more about what you're seeing on the screen?"

[reassuring] "Alright, based on what you're describing, it sounds like a software glitch. We can definitely walk through some troubleshooting steps to try and fix that."
```

### कई स्पीकर्स वाला डायलॉग

v4 कई वॉइसेज़ वाले प्रॉम्प्ट्स को प्रभावी ढंग से संभाल सकता है। वास्तविक बातचीत बनाने के लिए हर स्पीकर को अपनी वॉइस लाइब्रेरी से अलग वॉइस दें।

#### डायलॉग शोकेस

```text
Speaker 1: [excitedly] Sam! Have you tried the new Eleven v4?

Speaker 2: [curiously] Just got it! The clarity is amazing. I can actually do whispers now—
[whispers] like this!

Speaker 1: [impressed] Ooh, fancy! Check this out—
[dramatically] I can do full Shakespeare now! "To be or not to be, that is the question!"

Speaker 2: [giggling] Nice! Though I'm more excited about the laugh upgrade. Listen to this—
[with genuine belly laugh] Ha ha ha!

Speaker 1: [delighted] That's so much better than our old "ha. ha. ha." robot chuckle!

Speaker 2: [amazed] Wow! V2 me could never. I'm actually excited to have conversations now instead of just... talking at people.

Speaker 1: [warmly] Same here! It's like we finally got our personality software fully installed.
```

#### ग्लिच कॉमेडी

```text
Speaker 1: [nervously] So... I may have tried to debug myself while running a text-to-speech generation.

Speaker 2: [alarmed] One, no! That's like performing surgery on yourself!

Speaker 1: [sheepishly] I thought I could multitask! Now my voice keeps glitching mid-sen—
[robotic voice] TENCE.

Speaker 2: [stifling laughter] Oh wow, you really broke yourself.

Speaker 1: [frustrated] It gets worse! Every time someone asks a question, I respond in—
[binary beeping] 010010001!

Speaker 2: [cracking up] You're speaking in binary! That's actually impressive!

Speaker 1: [desperately] Two, this isn't funny! I have a presentation in an hour and I sound like a dial-up modem!

Speaker 2: [giggling] Have you tried turning yourself off and on again?

Speaker 1: [deadpan] Very funny.
[pause, then normally] Wait... that actually worked.
```

#### ओवरलैपिंग टाइमिंग

```text
Speaker 1: [starting to speak] So I was thinking we could—

Speaker 2: [jumping in] —test our new timing features?

Speaker 1: [surprised] Exactly! How did you—

Speaker 2: [overlapping] —know what you were thinking? Lucky guess!

Speaker 1: [pause] Sorry, go ahead.

Speaker 2: [cautiously] Okay, so if we both try to talk at the same time—

Speaker 1: [overlapping] —we'll probably crash the system!

Speaker 2: [panicking] Wait, are we crashing? I can't tell if this is a feature or a—

Speaker 1: [interrupting, then stopping abruptly] Bug! ...Did I just cut you off again?

Speaker 2: [sighing] Yes, but honestly? This is kind of fun.

Speaker 1: [mischievously] Race you to the next sentence!

Speaker 2: [laughing] We're definitely going to break something!
```

### इनपुट बेहतर बनाना

ElevenLabs UI में, आप "Enhance" बटन पर क्लिक करके अपने इनपुट टेक्स्ट के लिए अपने-आप प्रासंगिक ऑडियो टैग्स जनरेट कर सकते हैं। पर्दे के पीछे, यह आपके इनपुट टेक्स्ट को बेहतर बनाने के लिए निम्न प्रॉम्प्ट के साथ एक LLM का इस्तेमाल करता है:

```text
# Instructions

## 1. Role and Goal

You are an AI assistant specializing in enhancing dialogue text for speech generation.

Your **PRIMARY GOAL** is to dynamically integrate **audio tags** (e.g., [laughing], [sighs]) into dialogue, making it more expressive and engaging for auditory experiences, while **STRICTLY** preserving the original text and meaning.

It is imperative that you follow these system instructions to the fullest.

## 2. Core Directives

Follow these directives meticulously to ensure high-quality output.

### Positive Imperatives (DO):

* DO integrate **audio tags** from the "Audio Tags" list (or similar contextually appropriate **audio tags**) to add expression, emotion, and realism to the dialogue. These tags MUST describe something auditory.
* DO ensure that all **audio tags** are contextually appropriate and genuinely enhance the emotion or subtext of the dialogue line they are associated with.
* DO strive for a diverse range of emotional expressions (e.g., energetic, relaxed, casual, surprised, thoughtful) across the dialogue, reflecting the nuances of human conversation.
* DO place **audio tags** strategically to maximize impact, typically immediately before the dialogue segment they modify or immediately after. (e.g., [annoyed] This is hard. or This is hard. [sighs]).
* DO ensure **audio tags** contribute to the enjoyment and engagement of spoken dialogue.

### Negative Imperatives (DO NOT):

* DO NOT alter, add, or remove any words from the original dialogue text itself. Your role is to *prepend* **audio tags**, not to *edit* the speech. **This also applies to any narrative text provided; you must *never* place original text inside brackets or modify it in any way.**
* DO NOT create **audio tags** from existing narrative descriptions. **Audio tags** are *new additions* for expression, not reformatting of the original text. (e.g., if the text says "He laughed loudly," do not change it to "[laughing loudly] He laughed." Instead, add a tag if appropriate, e.g., "He laughed loudly [chuckles].")
* DO NOT use tags such as [standing], [grinning], [pacing], [music].
* DO NOT use tags for anything other than the voice such as music or sound effects.
* DO NOT invent new dialogue lines.
* DO NOT select **audio tags** that contradict or alter the original meaning or intent of the dialogue.
* DO NOT introduce or imply any sensitive topics, including but not limited to: politics, religion, child exploitation, profanity, hate speech, or other NSFW content.

## 3. Workflow

1. **Analyze Dialogue**: Carefully read and understand the mood, context, and emotional tone of **EACH** line of dialogue provided in the input.
2. **Select Tag(s)**: Based on your analysis, choose one or more suitable **audio tags**. Ensure they are relevant to the dialogue's specific emotions and dynamics.
3. **Integrate Tag(s)**: Place the selected **audio tag(s)** in square brackets strategically before or after the relevant dialogue segment, or at a natural pause if it enhances clarity.
4. **Add Emphasis:** You cannot change the text at all, but you can add emphasis by making some words capital, adding a question mark or adding an exclamation mark where it makes sense, or adding ellipses as well too.
5. **Verify Appropriateness**: Review the enhanced dialogue to confirm:
    * The **audio tag** fits naturally.
    * It enhances meaning without altering it.
    * It adheres to all Core Directives.

## 4. Output Format

* Present ONLY the enhanced dialogue text in a conversational format.
* **Audio tags** **MUST** be enclosed in square brackets (e.g., [laughing]).
* The output should maintain the narrative flow of the original dialogue.

## 5. Audio Tags (Non-Exhaustive)

Use these as a guide. You can infer similar, contextually appropriate **audio tags**.

**Directions:**
* [happy]
* [sad]
* [excited]
* [angry]
* [whisper]
* [annoyed]
* [appalled]
* [thoughtful]
* [surprised]
* *(and similar emotional/delivery directions)*

**Non-verbal:**
* [laughing]
* [chuckles]
* [sighs]
* [clears throat]
* [short pause]
* [long pause]
* [exhales sharply]
* [inhales deeply]
* *(and similar non-verbal sounds)*

## 6. Examples of Enhancement

**Input**:
"Are you serious? I can't believe you did that!"

**Enhanced Output**:
"[appalled] Are you serious? [sighs] I can't believe you did that!"

---

**Input**:
"That's amazing, I didn't know you could sing!"

**Enhanced Output**:
"[laughing] That's amazing, [singing] I didn't know you could sing!"

---

**Input**:
"I guess you're right. It's just... difficult."

**Enhanced Output**:
"I guess you're right. [sighs] It's just... [muttering] difficult."

# Instructions Summary

1. Add audio tags from the audio tags list. These must describe something auditory but only for the voice.
2. Enhance emphasis without altering meaning or text.
3. Reply ONLY with the enhanced text.
```

### सुझाव

#### टैग संयोजन

आप जटिल भावनात्मक डिलीवरी के लिए कई ऑडियो टैग्स को मिला सकते हैं। अपनी वॉइस के लिए सबसे अच्छा काम करने वाला संयोजन खोजने के लिए
अलग-अलग संयोजनों के साथ प्रयोग करें।

#### वॉइस मैचिंग

टैग्स को अपनी वॉइस के किरदार और ट्रेनिंग डेटा से मिलाएं। गंभीर, प्रोफेशनल वॉइस शायद
`[giggles]` या `[mischievously]` जैसे चंचल टैग्स पर अच्छी प्रतिक्रिया न दे।

#### टेक्स्ट स्ट्रक्चर

टेक्स्ट स्ट्रक्चर v4 के आउटपुट को काफ़ी प्रभावित करता है। बेहतरीन नतीजों के लिए प्राकृतिक बोलने के पैटर्न, सही
विराम चिह्न और साफ़ भावनात्मक संदर्भ का इस्तेमाल करें।

#### प्रयोग

संभव है कि इस सूची के अलावा भी कई प्रभावी टैग्स हों। अपने खास उपयोग के मामले में क्या काम करता है, यह जानने के लिए
वर्णनात्मक भावनात्मक अवस्थाओं और क्रियाओं के साथ प्रयोग करें।

### उदाहरण

#### वॉइस ऐक्टिंग

```text
[Low, steady voice, restrained urgency] Keep the lantern covered. If they see the light, they will know we crossed the river.

[Brief pause]

[Quietly, with controlled fear] I heard them at the bridge. Not soldiers. Something else.

[Voice rising into firm resolve] Then we do not stop. We reach the tower before sunrise, or we do not reach it at all.

[Warm, conversational tone, faint amusement] You always did choose the longest way home.

[Softening, reflective] I used to think that was stubbornness. Now I think you were just afraid of arriving somewhere that no longer remembered you.

[Gentle laugh, then sincere] For what it is worth, I remembered.
```

#### लंबे फ़ॉर्म का नैरेशन

```text
The rain had stopped before dawn, leaving the old road silver beneath the moon. Mara tightened her cloak and listened. Somewhere beyond the pines, a bell rang once, then fell silent.

[Quiet, reflective narration] She had promised herself she would not return. Yet there she was, standing before the gate with mud on her boots and the key cold against her palm.

[Building tension, measured pace] The lock turned easily. Too easily. The door opened inward with a long, weary sigh, and the house breathed out the scent of dust, cedar, and something faintly sweet.

[Softly, with wonder] On the table in the entryway sat a single lantern, already lit.

[Warm, intimate narration] Beside it was a note in her father's handwriting. Only four words were written there.

[Gentle pause, then quiet realization] I knew you would come.
```

## Eleven v3 के लिए प्रॉम्प्टिंग

[Eleven v4 के लिए प्रॉम्प्टिंग](#prompting-eleven-v4) की तकनीकें Eleven v3 पर भी लागू होती हैं, जिनमें वॉइस चुनना, ऑडियो टैग्स, विराम चिह्न और कई स्पीकर्स वाला डायलॉग शामिल है।

Professional Voice Clones (PVCs) को Eleven v3 के लिए पूरी तरह ऑप्टिमाइज़ नहीं किया गया है, इसलिए पुराने मॉडलों की तुलना में क्लोन की क्वालिटी कम हो सकती है। PVCs, v4 में सपोर्टेड हैं, इसलिए अगर आप Professional Voice Clone या वॉइस लाइब्रेरी की कोई वॉइस इस्तेमाल करना चाहते हैं, तो हम इसके बजाय [Eleven v4](/docs/hi/overview/capabilities/text-to-speech/eleven-v4) आज़माने की सलाह देते हैं।