> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt.
> For full documentation content in one file, see https://docs.sarvam.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# Get Voice

GET https://api.sarvam.ai/voices/{voice_id}

Returns full details for one cloned voice, including its ASR transcript (`reference_text`) and time-limited signed URLs for the reference, recorded, and preview audio.

**Base URL:** `https://api.sarvam.ai`.
**Auth:** send your key in the `api-subscription-key` header.

Reference: https://docs.sarvam.ai/api-reference/voice-cloning/get-voice

## Authentication

- `api-subscription-key` header (required) — API Key authentication via header

## Request

### Path parameters

- `voice_id` (string, required) — ID of the cloned voice.

## Response

### 200

Voice details with signed audio URLs.

- `status` (string, required) — `success`
- `data` (Sarvam_Model_API_VoiceLibraryDetail, required)

## Errors

### 401 Unauthorized Error

Unauthorized. The `api-subscription-key` header is missing or invalid.

- `error` (Sarvam_Model_API_ErrorDetails, required) — Error details

### 404 Not Found Error

Not Found. No voice with this ID exists in your workspace.

- `error` (Sarvam_Model_API_ErrorDetails, required) — Error details

### 500 Internal Server Error

Internal Server Error.

- `error` (Sarvam_Model_API_ErrorDetails, required) — Error details

## Types

### Sarvam_Model_API_VoiceLibraryDetail

- `id` (string, required) — Unique voice ID.
- `name` (string, required)
- `language` (string, required)
- `status` (string, required) — `active` or `deleted`.
- `source` (string, required) — `cloned` for voice-clone voices.
- `created_by` (string, required)
- `created_at` (string, required)
- `has_preview` (boolean, required)
- `gender` (string, optional, nullable)
- `accent` (string, optional, nullable)
- `descriptor` (string, optional, nullable) — Style descriptor (e.g. `conversational`, `sales`).
- `created_by_name` (string, optional, nullable)
- `created_by_email` (string, optional, nullable)
- `sample_duration_seconds` (double, optional, nullable)
- `is_favorited` (boolean, optional)
- `reference_text` (string, optional, nullable) — ASR transcript of the reference audio.
- `preview_audio_url` (string, optional, nullable)
- `reference_audio_url` (string, optional, nullable) — Signed URL for the (denoised) reference audio.
- `recorded_audio_url` (string, optional, nullable) — Signed URL for the original uploaded audio.
- `previews` (list of Sarvam_Model_API_VoiceLibraryPreviewItem, optional)
- `noise_reduction_applied` (boolean, optional) — True once the background denoise job has improved the reference audio.
- `tags` (list of string, optional)
- `metadata` (SarvamModelApiVoiceLibraryDetailMetadata, optional)

### Sarvam_Model_API_ErrorDetails

- `request_id` (string, required, nullable)
- `message` (string, required) — Message describing the error
- `code` (enum, required) — Error code for the specific error that has occurred. Refer to the error code documentation for more details.
  - Allowed values: `invalid_request_error`, `internal_server_error`, `unprocessable_entity_error`, `insufficient_quota_error`, `invalid_api_key_error`, `authentication_error`, `not_found_error`, `rate_limit_exceeded_error`, `model_call_error`, `gateway_timeout_error`, `billing_service_unavailable_error`

### Sarvam_Model_API_VoiceLibraryPreviewItem

- `text` (string, optional) — Preview sentence.
- `audio_url` (string, optional, nullable) — Signed URL for the preview audio.
- `duration` (double, optional, nullable)

### SarvamModelApiVoiceLibraryDetailMetadata

## Examples

**Response**

```json
{
  "status": "success",
  "data": {
    "id": "svc-efb9cac0-c63d-433a-9903-b3f0b0865b2b",
    "name": "my-cloned-voice",
    "language": "en-IN",
    "status": "active",
    "source": "cloned",
    "created_by": "user-uuid",
    "created_at": "2026-09-04T13:31:06.561329Z",
    "has_preview": true,
    "gender": null,
    "accent": null,
    "descriptor": null,
    "created_by_name": null,
    "created_by_email": null,
    "sample_duration_seconds": 5.24,
    "is_favorited": false,
    "reference_text": "Hello, welcome to Sarvam AI. We build cutting edge voice technology for Indian languages.",
    "preview_audio_url": "https://...blob.core.windows.net/voice-clone/...?se=...&sp=r&sig=...",
    "reference_audio_url": "https://...blob.core.windows.net/voice-clone/...?se=...&sp=r&sig=...",
    "recorded_audio_url": "https://...blob.core.windows.net/voice-clone/...?se=...&sp=r&sig=...",
    "previews": [],
    "noise_reduction_applied": true,
    "tags": [],
    "metadata": {}
  }
}
```

**SDK Code**

```typescript voiceCloning_getVoice_example
import { SarvamAIClient } from "sarvamai";

const client = new SarvamAIClient({
  apiSubscriptionKey: process.env.SARVAM_API_KEY,
});

const voice = await client.voiceCloning.getVoice(
  "svc-efb9cac0-c63d-433a-9903-b3f0b0865b2b"
);
console.log(voice.referenceText, voice.noiseReductionApplied);

```

```typescript voiceCloning_getVoice_example
import { SarvamAIClient } from "sarvamai";

async function main() {
    const client = new SarvamAIClient({
        apiSubscriptionKey: "YOUR_API_KEY_HERE",
    });
    await client.voiceCloning.getVoice("voice_id");
}
main();

```

```python voiceCloning_getVoice_example
from sarvamai import SarvamAI

client = SarvamAI(
    api_subscription_key="YOUR_API_KEY_HERE",
)

client.voice_cloning.get_voice(
    voice_id="voice_id",
)

```

```go voiceCloning_getVoice_example
package main

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

func main() {

	url := "https://api.sarvam.ai/voices/voice_id"

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

	req.Header.Add("api-subscription-key", "<apiSubscriptionKey>")

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

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

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

}
```

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

url = URI("https://api.sarvam.ai/voices/voice_id")

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

request = Net::HTTP::Get.new(url)
request["api-subscription-key"] = '<apiSubscriptionKey>'

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

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

HttpResponse<String> response = Unirest.get("https://api.sarvam.ai/voices/voice_id")
  .header("api-subscription-key", "<apiSubscriptionKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sarvam.ai/voices/voice_id', [
  'headers' => [
    'api-subscription-key' => '<apiSubscriptionKey>',
  ],
]);

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

```csharp voiceCloning_getVoice_example
using RestSharp;

var client = new RestClient("https://api.sarvam.ai/voices/voice_id");
var request = new RestRequest(Method.GET);
request.AddHeader("api-subscription-key", "<apiSubscriptionKey>");
IRestResponse response = client.Execute(request);
```

```swift voiceCloning_getVoice_example
import Foundation

let headers = ["api-subscription-key": "<apiSubscriptionKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sarvam.ai/voices/voice_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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