Parlat — voice transcription SDK, CLI, and MCP server for Pro users
Project description
parlat-cli
Python SDK, CLI и MCP-сервер для Парлат — голосовой расшифровки на русском.
Установка
Выберите режим в зависимости от использования:
# 1. Только SDK + базовый CLI (login / status / transcribe FILE)
# ~3 MB зависимостей, без C-расширений.
pip install parlat-cli
# 2. + микрофон (parlat record)
pip install 'parlat-cli[record]'
# 3. + MCP-сервер для Claude Code / Cursor / Windsurf / Claude Desktop
pip install 'parlat-cli[mcp]'
# 4. Всё разом
pip install 'parlat-cli[all]'
SDK
from parlat.client import APIClient, ApiError
client = APIClient(
"https://api.parlat.ru",
token="parlat_sk_..." # из /dashboard/api-keys
)
# Файл с диска
result = client.transcribe_file("meeting.mp3", language="auto")
print(result["text"])
# Уже загруженные байты (например, из Telegram-бота)
audio_bytes = await download_from_tg(...)
result = client.transcribe_file(
"voice.oga",
file_bytes=audio_bytes,
language="ru",
)
Все ошибки бросают ApiError(code, message, upgrade_url, status):
try:
client.transcribe_file("big.wav")
except ApiError as e:
if e.code == "not_pro":
print(f"Upgrade: {e.upgrade_url}")
elif e.code == "file_too_large":
print("Too big — split into 25 MB chunks")
CLI
parlat login # email + пароль интерактивно
parlat status # план и квота
parlat transcribe meeting.mp3 # файл → текст в stdout
parlat transcribe voice.oga --lang ru # форсировать язык
parlat record --copy # с микрофона (нужен [record])
parlat record --max 30 # лимит 30 сек
parlat logout # удалить токен
Exit codes: 0 ok, 1 ошибка API, 2 не залогинен, 3 нужна Pro-подписка, 4 сеть, 5 не установлен extra.
MCP
После pip install 'parlat-cli[mcp]' и parlat login добавьте в свой MCP-клиент:
// ~/.config/claude-code/mcp.json (или аналог для Cursor / Windsurf / Claude Desktop)
{
"mcpServers": {
"parlat": {
"command": "parlat",
"args": ["mcp"]
}
}
}
Появятся два инструмента:
transcribe_voice— записать с микрофона, вернуть текст. Авто-стоп после 2 сек тишины.transcribe_file— расшифровать локальный файл.
Telegram-бот за 30 секунд
from aiogram import Bot, Dispatcher, F, types
import aiohttp, os
bot = Bot(token=os.environ["TG_TOKEN"])
dp = Dispatcher()
@dp.message(F.voice)
async def handle_voice(msg: types.Message):
file = await bot.get_file(msg.voice.file_id)
url = f"https://api.telegram.org/file/bot{bot.token}/{file.file_path}"
async with aiohttp.ClientSession() as s:
r = await s.post(
"https://api.parlat.ru/v1/transcribe/url",
headers={"Authorization": f"Bearer {os.environ['PARLAT_KEY']}"},
json={"url": url, "language": "auto"},
)
data = await r.json()
await msg.answer(data["text"])
Никаких локальных моделей, никакого ffmpeg на твоей стороне — всё на сервере Parlat.
Получить API-ключ
- Регистрация на parlat.ru/signup
- Оформить Pro на parlat.ru/pricing (290 ₽/мес)
- parlat.ru/dashboard/api-keys → «Создать ключ»
Документация
parlat.ru/docs.html — полный endpoint reference, примеры на Python/Node/aiogram, error codes, лимиты.
Лицензия
MIT. См. pypi.org/project/parlat-cli.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parlat_cli-0.2.0.tar.gz.
File metadata
- Download URL: parlat_cli-0.2.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50f013f379efe0ed196ee0786e3e1eced5232e457abb5dae453bf70d75be2649
|
|
| MD5 |
3d0f1fc443b77c55c160a25e2d8c7e73
|
|
| BLAKE2b-256 |
c919c669d309b06792eef5ab6892c521786b8e424ad33aab79978f045da6fd38
|
Provenance
The following attestation bundles were made for parlat_cli-0.2.0.tar.gz:
Publisher:
publish-cli.yml on Dkibkalo/parlat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parlat_cli-0.2.0.tar.gz -
Subject digest:
50f013f379efe0ed196ee0786e3e1eced5232e457abb5dae453bf70d75be2649 - Sigstore transparency entry: 1540636559
- Sigstore integration time:
-
Permalink:
Dkibkalo/parlat@691af94f3e7bd9d1ff56f5b9704965963e883387 -
Branch / Tag:
refs/tags/cli-v0.2.0 - Owner: https://github.com/Dkibkalo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@691af94f3e7bd9d1ff56f5b9704965963e883387 -
Trigger Event:
push
-
Statement type:
File details
Details for the file parlat_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: parlat_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed4fbd497d40941b4a600eedca8197f60a2bec27170d1570842500a609480c83
|
|
| MD5 |
c109267a213cb84a9a3e3ae59eb1194f
|
|
| BLAKE2b-256 |
7e61d4f043cd33b5f650b392d1e294230be13fa37ab44c542cefd472ddf130b2
|
Provenance
The following attestation bundles were made for parlat_cli-0.2.0-py3-none-any.whl:
Publisher:
publish-cli.yml on Dkibkalo/parlat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parlat_cli-0.2.0-py3-none-any.whl -
Subject digest:
ed4fbd497d40941b4a600eedca8197f60a2bec27170d1570842500a609480c83 - Sigstore transparency entry: 1540636668
- Sigstore integration time:
-
Permalink:
Dkibkalo/parlat@691af94f3e7bd9d1ff56f5b9704965963e883387 -
Branch / Tag:
refs/tags/cli-v0.2.0 - Owner: https://github.com/Dkibkalo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@691af94f3e7bd9d1ff56f5b9704965963e883387 -
Trigger Event:
push
-
Statement type: