> 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.

# ट्रांसक्रिप्ट एडिटिंग

> **Note**
>
> **कैसे करें गाइड** · मानता है कि आपने [स्पीच टू टेक्स्ट क्विकस्टार्ट](/docs/hi/eleven-api/guides/cookbooks/speech-to-text) पूरा कर लिया है।

## परिचय

> **Warning**
>
> ट्रांसक्रिप्ट एडिटिंग एक प्रायोगिक सुविधा है और इसमें बेस ट्रांसक्रिप्शन लागत के ऊपर 30% का अतिरिक्त शुल्क लगता है। हर अनुरोध के लिए कम से कम 10 सेकंड के ऑडियो का बिल लिया जाता है। विस्तृत कीमत की जानकारी के लिए [API प्राइसिंग पेज](https://elevenlabs.io/pricing?price.section=speech_to_text\&price.sections=speech_to_text,speech_to_text#pricing-table)
> देखें।

ट्रांसक्रिप्ट एडिटिंग आपको ट्रांसक्रिप्शन अनुरोध के साथ प्राकृतिक भाषा में एक निर्देश जोड़ने देती है। ऑडियो ट्रांसक्राइब होने के बाद, आपका निर्देश ट्रांसक्रिप्ट पर लागू होता है और मूल टेक्स्ट के साथ एडिट किया हुआ टेक्स्ट भी लौटाया जाता है।

इससे आपकी अपनी पाइपलाइन में अलग से पोस्ट-प्रोसेसिंग करने की ज़रूरत नहीं रहती। आम उपयोगों में तारीखों, समय या इकाइयों को लिखने का तरीका एक जैसा करना, संक्षिप्त रूपों को विस्तृत करना, अनावश्यक सामग्री हटाना, अलग स्टाइल या टोन लागू करना या ट्रांसक्रिप्ट को दोबारा फ़ॉर्मैट करना शामिल है।

उदाहरण के लिए, `Write all dates in ISO 8601 format (YYYY-MM-DD)` निर्देश के साथ किसी वॉइसमेल को ट्रांसक्राइब करने पर टेक्स्ट के दोनों वर्ज़न मिलते हैं:

```json maxLines=0
{
  "language_code": "eng",
  "language_probability": 0.9912,
  "text": "Hi, this is Jill. Your appointment is confirmed for the twelfth of July twenty twenty-six, and the follow-up is on the third of August.",
  "words": [
    { "text": "Hi,", "start": 0.12, "end": 0.38, "type": "word", "logprob": 0.0 },
    { "text": " ", "start": 0.38, "end": 0.41, "type": "spacing", "logprob": 0.0 },
    { "text": "this", "start": 0.41, "end": 0.55, "type": "word", "logprob": 0.0 },
    ...
  ],
  "transcription_id": "Y2ZX8AxHUzTPCIualYiE",
  "edited_transcript": {
    "kind": "transcript",
    "text": "Hi, this is Jill. Your appointment is confirmed for 2026-07-12, and the follow-up is on 2026-08-03."
  }
}
```

`text` और `words` फ़ील्ड हमेशा मूल ट्रांसक्रिप्ट के बारे में बताते हैं। एडिट किया हुआ वर्ज़न अलग से `edited_transcript` में लौटाया जाता है।

## ट्रांसक्रिप्ट एडिटिंग इंटीग्रेट करना

ट्रांसक्रिप्ट एडिटिंग को स्पीच टू टेक्स्ट API में `convert` मेथड को `transcript_edit` पैरामीटर देकर इंटीग्रेट किया जाता है। निर्देश अधिकतम 2000 वर्णों का हो सकता है।

```python maxLines=0
import os
from dotenv import load_dotenv
from elevenlabs.client import ElevenLabs

load_dotenv()

elevenlabs = ElevenLabs(
    api_key=os.getenv("ELEVENLABS_API_KEY"),
)

with open("voicemail.mp3", "rb") as audio_file:
    transcription = elevenlabs.speech_to_text.convert(
        file=audio_file,
        model_id="scribe_v2",
        # Natural-language instruction applied to the finished transcript.
        transcript_edit="Write all dates in ISO 8601 format (YYYY-MM-DD)",
    )

print("Original:", transcription.text)
print("Edited:", transcription.edited_transcript)
```

```typescript maxLines=0
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import "dotenv/config";
import { readFile } from "node:fs/promises";

const elevenlabs = new ElevenLabsClient({
  apiKey: process.env.ELEVENLABS_API_KEY,
});

const audioBlob = new Blob([await readFile("voicemail.mp3")], { type: "audio/mp3" });

const transcription = await elevenlabs.speechToText.convert({
  file: audioBlob,
  modelId: "scribe_v2",
  // Natural-language instruction applied to the finished transcript.
  transcriptEdit: "Write all dates in ISO 8601 format (YYYY-MM-DD)",
});

console.log("Original:", transcription.text);
console.log("Edited:", transcription.editedTranscript);
```

ट्रांसक्रिप्ट एडिटिंग सिंक्रोनस अनुरोधों और [वेबहुक](/docs/hi/eleven-api/guides/how-to/speech-to-text/batch/webhooks) अनुरोधों, दोनों के साथ काम करती है। वेबहुक अनुरोधों के लिए, `edited_transcript` वेबहुक पेलोड के `transcription` ऑब्जेक्ट में शामिल होता है।

Scribe v2 Realtime हर कमिट किए गए ट्रांसक्रिप्ट पर इन्हीं निर्देशों को सपोर्ट करता है। [रीयलटाइम ट्रांसक्रिप्ट एडिटिंग गाइड](/docs/hi/eleven-api/guides/how-to/speech-to-text/realtime/transcript-editing) देखें।

## निर्देश लिखना

निर्देश पूरे ट्रांसक्रिप्ट में जहाँ भी प्रासंगिक हो, लागू होता है और हर मेल खाने वाली जगह को एडिट किया जाता है, सिर्फ़ पहली जगह को नहीं। निर्देश से खास शब्दों या वाक्यांशों को बदला जा सकता है और बाकी सब वैसा ही रखा जा सकता है, या पूरे टेक्स्ट को फिर से लिखा या एनोटेट किया जा सकता है। एक ही निर्देश में कई एडिट शामिल हो सकते हैं।

नीचे दिए उदाहरण सपोर्ट किए गए निर्देशों की रेंज दिखाते हैं:

| निर्देश                                                                                                 | असर                                                                                               |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `Write all dates in ISO 8601 format (YYYY-MM-DD)`                                                       | `the twelfth of July twenty twenty-six` बदलकर `2026-07-12` हो जाता है                             |
| `Write times in 24-hour format`                                                                         | `half past two in the afternoon` बदलकर `14:30` हो जाता है                                         |
| `Expand abbreviations such as "ETA" and "ASAP" on first use`                                            | `ETA` बदलकर `estimated time of arrival (ETA)` हो जाता है                                          |
| `Add the sentiment of every sentence in brackets at the end. Choose from [positive, negative, neutral]` | `Thanks, that was really helpful.` बदलकर `Thanks, that was really helpful. [positive]` हो जाता है |
| `Redact every curse word with its first letter followed by stars, e.g. s***`                            | `That was a damn good call.` बदलकर `That was a d*** good call.` हो जाता है                        |
| `Format the transcript as a bulleted list, one sentence per bullet`                                     | पूरे ट्रांसक्रिप्ट को दोबारा फ़ॉर्मैट करता है                                                     |

> **Note**
>
> कुछ बदलावों के लिए खास पैरामीटर उपलब्ध हैं, जो एडिट निर्देश की तुलना में सस्ते और ज़्यादा अनुमानित होते हैं। खास नामों और शब्दों की पहचान को प्राथमिकता देने के लिए [कीटर्म प्रॉम्प्टिंग](/docs/hi/eleven-api/guides/how-to/speech-to-text/batch/keyterm-prompting), फ़िलर शब्दों और
> असहज बोलने के पैटर्न हटाने के लिए `no_verbatim`, और अंकों व शब्दों के बीच चुनने के लिए (जहाँ सपोर्ट हो) `numbers_format` इस्तेमाल करें। जिन बदलावों को ये विकल्प कवर नहीं करते, उनके लिए ट्रांसक्रिप्ट एडिटिंग रखें।

निर्देश लिखते समय इन बातों का ध्यान रखें:

* वांछित आउटपुट स्पष्ट रूप से बताएं। `Write all dates in ISO 8601 format (YYYY-MM-DD)`, `fix the dates` से ज़्यादा भरोसेमंद है।
* निर्देश किसी भी भाषा में लिखा जा सकता है, हालांकि अंग्रेज़ी में लिखे निर्देश सबसे अच्छे काम करते हैं। एडिट किया हुआ ट्रांसक्रिप्ट मूल भाषा में ही रहता है।
* सिर्फ़ निर्देश पर ही काम किया जाता है। ऑडियो में बोली गई सामग्री को डेटा माना जाता है और वह निर्देश लागू करने के तरीके को नहीं बदल सकती।
* अगर ट्रांसक्रिप्ट में निर्देश से कुछ भी प्रभावित नहीं होता, तो एडिट किया हुआ ट्रांसक्रिप्ट मूल के समान होता है।

## रिस्पॉन्स फ़ॉर्मैट

जब `transcript_edit` सेट होता है, तो रिस्पॉन्स में `edited_transcript` ऑब्जेक्ट होता है। इसका `kind` फ़ील्ड बताता है कि एडिट सफल हुआ या नहीं:

| `kind`       | फ़ील्ड                                  | विवरण                                                                          |
| ------------ | --------------------------------------- | ------------------------------------------------------------------------------ |
| `transcript` | `text`                                  | एडिट किया हुआ ट्रांसक्रिप्ट। कोई एडिट न होने पर मूल `text` के समान।            |
| `error`      | `error_type` (`edit_failed`), `message` | एडिट नहीं बन पाया। ट्रांसक्रिप्शन सफल रहा और मूल `text` फिर भी लौटाया जाता है। |

अगर `transcript_edit` का अनुरोध नहीं किया गया था, तो यह फ़ील्ड मौजूद नहीं होता।

**`एडिट विफल हुआ`**

```json title="एडिट विफल हुआ"
{
  "text": "Hi, this is Jill. Your appointment is confirmed for ...",
  "edited_transcript": {
    "kind": "error",
    "error_type": "edit_failed",
    "message": "The transcript could not be edited. Please try again."
  }
}
```

ध्यान रखने योग्य बातें:

* एडिट किया हुआ ट्रांसक्रिप्ट सादा टेक्स्ट होता है। शब्द-स्तर के टाइमस्टैंप, स्पीकर लेबल और `additional_formats` मूल ट्रांसक्रिप्ट का ही वर्णन करते रहते हैं।
* एडिट ट्रांसक्रिप्शन पूरा होने के बाद चलता है, इसलिए इससे लेटेंसी बढ़ती है, जो ट्रांसक्रिप्ट की लंबाई के साथ बढ़ती है।
* अतिरिक्त शुल्क अनुरोध की ऑडियो अवधि पर लागू होता है, और हर अनुरोध के लिए कम से कम 10 सेकंड का बिल लिया जाता है।

> **Warning**
>
> ट्रांसक्रिप्ट एडिटिंग को `entity_detection`, `entity_redaction` या
> `use_multi_channel` के साथ नहीं जोड़ा जा सकता। इन्हें मिलाने वाले अनुरोध अमान्य पैरामीटर त्रुटि के साथ अस्वीकार कर दिए जाते हैं।

## अगले चरण

#### [API रेफरेंस](/docs/hi/api-reference/speech-to-text)

पूरा स्पीच टू टेक्स्ट API रेफरेंस और पैरामीटर।

#### [वेबहुक](/docs/hi/eleven-api/guides/how-to/speech-to-text/batch/webhooks)

वेबहुक के ज़रिए एडिट किए हुए ट्रांसक्रिप्ट समेत ट्रांसक्रिप्ट एसिंक्रोनस रूप से पाएं।