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

# ID से ट्रांसक्रिप्ट पाएं

GET https://api.elevenlabs.io/v1/speech-to-text/transcripts/{transcription_id}

पहले जनरेट किया गया ट्रांसक्रिप्ट उसकी ID से पाएं।

Reference: https://elevenlabs.io/docs/api-reference/speech-to-text/get

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Request

### Path parameters

- `transcription_id` (string, required) — पाने वाले ट्रांसक्रिप्ट की यूनीक ID

## Response

### 200

ट्रांसक्रिप्ट डेटा

- `speech_to_text_transcripts_get_Response_200`

## Errors

### 422 Unprocessable Entity Error

वैलिडेशन एरर

- `detail` (list of ValidationError, optional)

## Types

### SpeechToTextChunkResponseModel

टाइमिंग जानकारी के साथ ट्रांसक्रिप्शन का चंक-स्तरीय विवरण।

- `language_code` (string, required) — पहचाना गया भाषा कोड (जैसे अंग्रेज़ी के लिए 'eng')।
- `language_probability` (double, required) — भाषा पहचान का कॉन्फिडेंस स्कोर (0 से 1)।
- `text` (string, required) — ट्रांसक्रिप्शन का मूल टेक्स्ट।
- `words` (list of SpeechToTextWordResponseModel, required) — टाइमिंग जानकारी के साथ शब्दों की सूची।
- `channel_index` (integer, optional, nullable) — वह चैनल इंडेक्स जिससे यह ट्रांसक्रिप्ट संबंधित है (मल्टीचैनल ऑडियो के लिए)।
- `additional_formats` (list of AdditionalFormatResponseModel, optional, nullable) — ट्रांसक्रिप्ट के अनुरोधित अतिरिक्त फ़ॉर्मैट।
- `transcription_id` (string, optional, nullable) — रिस्पॉन्स की ट्रांसक्रिप्शन ID।
- `entities` (list of DetectedEntity, optional, nullable) — ट्रांसक्रिप्ट में टेक्स्ट, प्रकार और अक्षर स्थितियों के साथ पहचानी गई एंटिटी की सूची।
- `audio_duration_secs` (double, optional, nullable) — ट्रांसक्राइब किए गए ऑडियो की अवधि सेकंड में।
- `edited_transcript` (SpeechToTextChunkResponseModelEditedTranscript, optional, nullable) — वैकल्पिक ट्रांसक्रिप्ट एडिट का नतीजा: संपादित टेक्स्ट या, अगर इसे बनाया नहीं जा सका, तो एक त्रुटि। कोई एडिट अनुरोध न होने पर यह मौजूद नहीं होता। सफल होने पर, `text` और `edited_text` दोनों में संपादित ट्रांसक्रिप्ट होता है; क्या बदला है यह देखने के लिए उनकी तुलना टॉप-लेवल `text` से करें।

### MultichannelSpeechToTextResponseModel

मल्टीचैनल स्पीच-टू-टेक्स्ट ट्रांसक्रिप्शन के लिए रिस्पॉन्स मॉडल।

- `transcripts` (list of SpeechToTextChunkResponseModel, required) — हर ऑडियो चैनल के लिए एक ट्रांसक्रिप्ट की सूची। हर ट्रांसक्रिप्ट में उसके संबंधित चैनल का टेक्स्ट और शब्द-स्तरीय विवरण होता है।
- `transcription_id` (string, optional, nullable) — रिस्पॉन्स की ट्रांसक्रिप्शन ID।
- `audio_duration_secs` (double, optional, nullable) — सभी चैनलों में ट्रांसक्राइब किए गए ऑडियो की अवधि सेकंड में।

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### SpeechToTextWordResponseModel

टाइमिंग जानकारी के साथ ट्रांसक्रिप्शन का शब्द-स्तरीय विवरण।

- `text` (string, required) — वह शब्द या साउंड जिसे ट्रांसक्राइब किया गया।
- `type` (enum, required) — शब्द या साउंड का टाइप। 'audio_event' का इस्तेमाल हंसी या कदमों की आवाज़ जैसे गैर-शब्द साउंड के लिए होता है।
  - Allowed values: `word`, `spacing`, `audio_event`
- `logprob` (double, required) — वह लॉग प्रायिकता जिसके साथ इस शब्द का अनुमान लगाया गया था। Logprobs की रेंज [-infinity, 0] है; ज़्यादा logprobs मॉडल के अपने अनुमानों पर ज़्यादा भरोसे को दर्शाते हैं।
- `start` (double, optional, nullable) — शब्द या साउंड का शुरुआती समय, सेकंड में।
- `end` (double, optional, nullable) — शब्द या साउंड का समाप्ति समय सेकंड में।
- `speaker_id` (string, optional, nullable) — इस शब्द के स्पीकर का विशिष्ट पहचानकर्ता।
- `characters` (list of SpeechToTextCharacterResponseModel, optional, nullable) — शब्द बनाने वाले कैरेक्टर्स और उनकी टाइमिंग जानकारी।
- `channel_index` (integer, optional, nullable) — वह चैनल जिस पर यह शब्द बोला गया था (मल्टीचैनल ऑडियो के लिए)। सिंगल-चैनल ट्रांसक्रिप्शन के लिए Null।

### AdditionalFormatResponseModel

- `requested_format` (string, required) — अनुरोधित फ़ॉर्मैट।
- `file_extension` (string, required) — अतिरिक्त फ़ॉर्मैट का फ़ाइल एक्सटेंशन।
- `content_type` (string, required) — अतिरिक्त फ़ॉर्मैट का कंटेंट टाइप।
- `is_base64_encoded` (boolean, required) — क्या कंटेंट base64 encoded है।
- `content` (string, required) — अतिरिक्त फ़ॉर्मैट का कंटेंट।

### DetectedEntity

An entity detected within transcribed text.

- `text` (string, required) — The text that was identified as an entity.
- `entity_type` (string, required) — The type of entity detected (e.g., 'credit_card', 'email_address', 'person_name').
- `start_char` (integer, required) — Start character position in the transcript text.
- `end_char` (integer, required) — End character position in the transcript text.

### SpeechToTextChunkResponseModelEditedTranscript

वैकल्पिक ट्रांसक्रिप्ट एडिट का नतीजा: संपादित टेक्स्ट या, अगर इसे बनाया नहीं जा सका, तो एक त्रुटि। कोई एडिट अनुरोध न होने पर यह मौजूद नहीं होता। सफल होने पर, `text` और `edited_text` दोनों में संपादित ट्रांसक्रिप्ट होता है; क्या बदला है यह देखने के लिए उनकी तुलना टॉप-लेवल `text` से करें।

- `kind`: `error` (TranscriptEditError)
  - `error_type` ("edit_failed", required) — edit_failed: एडिट नहीं बनाया जा सका।
  - `message` (string, required) — विफलता का यूज़र के लिए संक्षिप्त विवरण।
- `kind`: `transcript` (EditedTranscript)
  - `edited_text` (string, required) — The edited transcript text. If no edits were made it will be identical to the `text` field.
  - `text` (string, required) — The committed transcript text the edit instruction was applied to.
  - `message_type` (string, optional, default: edited_transcript)

### ValidationErrorLocItems

### SpeechToTextCharacterResponseModel

- `text` (string, required) — ट्रांसक्राइब किया गया कैरेक्टर।
- `start` (double, optional, nullable) — किरदार का शुरुआती समय, सेकंड में।
- `end` (double, optional, nullable) — कैरेक्टर का समाप्ति समय सेकंड में।

## Examples

**Response**

```json
{
  "language_code": "en",
  "language_probability": 0.98,
  "text": "Hello world!",
  "words": [
    {
      "end": 0.5,
      "logprob": -0.124,
      "speaker_id": "speaker_1",
      "start": 0,
      "text": "Hello",
      "type": "word"
    },
    {
      "end": 0.5,
      "logprob": 0,
      "speaker_id": "speaker_1",
      "start": 0.5,
      "text": " ",
      "type": "spacing"
    },
    {
      "end": 1.2,
      "logprob": -0.089,
      "speaker_id": "speaker_1",
      "start": 0.5,
      "text": "world!",
      "type": "word"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/speech-to-text/transcripts/transcription_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```