# Voices

{% hint style="info" %}
Чтобы отправлять авторизованные запросы нужно получить API ключ, как это сделать написано в разделе [**С чего начать?**](https://docs.gptunnel.ru/)
{% endhint %}

## Получения списка голосов

<mark style="color:green;">`GET`</mark> `https://gptunnel.ru/v1/tts/voices`

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | string | API ключ    |

### Пример запроса

{% tabs %}
{% tab title="NodeJS" %}

```typescript
import axios from 'axios'

const request = axios({
  method: 'GET',
  url: 'https://gptunnel.ru/v1/tts/voices',
  headers: {
    // use your API key here
    Authorization: 'YOUR_API_KEY',
  }
})

request.then((result) => {
  console.log(result)
}).catch((error) => {
  console.error(error)
})
```

{% endtab %}

{% tab title="Curl" %}

```bash
curl --request GET \
  --url https://gptunnel.ru/v1/tts/voices \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json'
```

{% endtab %}
{% endtabs %}

### Пример ответа

```json
[
	{
		"id": "65f4092eddc5862248a18111",
		"name": "ALEX",
		"create_date": "2024-03-29T18:50:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d78",
		"name": "OLEG",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d72",
		"name": "DMITRY",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d73",
		"name": "VALERIA",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d7c",
		"name": "VALENTIN",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d74",
		"name": "SVETLANA",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d75",
		"name": "VADIM",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d76",
		"name": "SERGEY",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d77",
		"name": "LARISA",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d7d",
		"name": "DANYA",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d7a",
		"name": "KIRA",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d7b",
		"name": "ROMAN",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d70",
		"name": "ZLATA",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d79",
		"name": "PAVEL",
		"create_date": "2024-03-26T18:55:44.232Z"
	},
	{
		"id": "65f4092eddc5862248a18d71",
		"name": "LEONID",
		"create_date": "2024-03-26T18:55:44.232Z"
	}
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gptunnel.ru/tts/voices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
