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

# Recupera trascrizione per ID

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

Recupera una trascrizione generata in precedenza tramite il suo 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) — L'ID univoco della trascrizione da recuperare

## Response

### 200

I dati della trascrizione

- `speech_to_text_transcripts_get_Response_200`

## Errors

### 422 Unprocessable Entity Error

Errore di convalida

- `detail` (list of ValidationError, optional)

## Types

### SpeechToTextChunkResponseModel

Dettaglio della trascrizione a livello di chunk con informazioni temporali.

- `language_code` (string, required) — Il codice della lingua rilevata (ad esempio, 'eng' per l'inglese).
- `language_probability` (double, required) — Il punteggio di confidenza del rilevamento della lingua (da 0 a 1).
- `text` (string, required) — Il testo non elaborato della trascrizione.
- `words` (list of SpeechToTextWordResponseModel, required) — Elenco delle parole con le relative informazioni temporali.
- `channel_index` (integer, optional, nullable) — L'indice del canale a cui appartiene questa trascrizione (per l'audio multicanale).
- `additional_formats` (list of AdditionalFormatResponseModel, optional, nullable) — Formati aggiuntivi richiesti per la trascrizione.
- `transcription_id` (string, optional, nullable) — L'ID della trascrizione della risposta.
- `entities` (list of DetectedEntity, optional, nullable) — Elenco delle entità rilevate con testo, tipo e posizioni dei caratteri nella trascrizione.
- `audio_duration_secs` (double, optional, nullable) — La durata in secondi dell'audio trascritto.
- `edited_transcript` (SpeechToTextChunkResponseModelEditedTranscript, optional, nullable) — Risultato della modifica facoltativa della trascrizione: il testo modificato oppure un errore, se non è stato possibile produrlo. Assente quando non è stata richiesta alcuna modifica.

### MultichannelSpeechToTextResponseModel

Modello di risposta per la trascrizione Speech to Text multicanale.

- `transcripts` (list of SpeechToTextChunkResponseModel, required) — Elenco di trascrizioni, una per ogni canale audio. Ogni trascrizione contiene il testo e i dettagli a livello di parola per il rispettivo canale.
- `transcription_id` (string, optional, nullable) — L'ID della trascrizione della risposta.
- `audio_duration_secs` (double, optional, nullable) — La durata in secondi dell'audio trascritto su tutti i canali.

### ValidationError

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

### SpeechToTextWordResponseModel

Dettaglio della trascrizione a livello di parola con informazioni sulla tempistica.

- `text` (string, required) — La parola o il suono trascritto.
- `type` (enum, required) — Il tipo di parola o suono. 'audio_event' viene usato per suoni non verbali come risate o passi.
  - Allowed values: `word`, `spacing`, `audio_event`
- `logprob` (double, required) — Il logaritmo della probabilità con cui questa parola è stata prevista. Le logprobs sono comprese nell'intervallo [-infinity, 0]; valori più alti indicano una maggiore sicurezza del modello nelle sue previsioni.
- `start` (double, optional, nullable) — Il tempo di inizio della parola o del suono in secondi.
- `end` (double, optional, nullable) — L'ora di fine della parola o del suono in secondi.
- `speaker_id` (string, optional, nullable) — Identificatore univoco del parlante di questa parola.
- `characters` (list of SpeechToTextCharacterResponseModel, optional, nullable) — I caratteri che compongono la parola e le relative informazioni temporali.
- `channel_index` (integer, optional, nullable) — Il canale in cui è stata pronunciata questa parola (per l'audio multicanale). Null per le trascrizioni a canale singolo.

### AdditionalFormatResponseModel

- `requested_format` (string, required) — Il formato richiesto.
- `file_extension` (string, required) — L'estensione del file del formato aggiuntivo.
- `content_type` (string, required) — Il tipo di contenuto del formato aggiuntivo.
- `is_base64_encoded` (boolean, required) — Se il contenuto è codificato in base64.
- `content` (string, required) — Il contenuto del formato aggiuntivo.

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

Risultato della modifica facoltativa della trascrizione: il testo modificato oppure un errore, se non è stato possibile produrlo. Assente quando non è stata richiesta alcuna modifica.

- `kind`: `error` (TranscriptEditError)
  - `error_type` ("edit_failed", required) — edit_failed: non è stato possibile produrre la modifica.
  - `message` (string, required) — Una breve spiegazione dell'errore rivolta all'utente.
- `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) — Il carattere trascritto.
- `start` (double, optional, nullable) — Il tempo di inizio del carattere in secondi.
- `end` (double, optional, nullable) — L'ora di fine del carattere in secondi.

## 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()
```