Dhamma.Gift Tts API

Озвучка (Voice API) — api.dhamma.gift

Operations 4

POST /api/tts/pali Озвучить фразу (MP3 в base64) #
POST /api/tts/memo Текст целиком одним MP3 с паузами (Memo) #
GET /api/tts/dg-voices Список голосов #
GET /api/tts/health Сервис жив, версия правил произношения #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dhamma-gift:dhamma-gift-tts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dhamma-gift-tts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhamma.gift search Tts API
  version: 1.0.0
  description: Поиск по палийскому канону (Sutta/Vinaya) — API для dg-light.js. Все ответы — JSON.
servers:
- url: /
  description: Текущий сервер
tags:
- name: TTS
  description: Озвучка (Voice API) — api.dhamma.gift
paths:
  /api/tts/pali:
    servers:
    - url: https://api.dhamma.gift
      description: api.dhamma.gift
    post:
      tags:
      - TTS
      summary: Озвучить фразу (MP3 в base64)
      description: Открытый сервис озвучки без ключа, CORS открыт, 60 запросов в минуту с IP. Ответ в формате Google Text-to-Speech.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              properties:
                text:
                  type: string
                  maxLength: 2000
                  description: 'Текст: пали в IAST, перевод на английском или русском'
                  example: Evaṁ me sutaṁ.
                voice:
                  type: string
                  default: pratham
                  description: Голос, список — GET /api/tts/dg-voices
                  example: pratham
                rate:
                  type: number
                  minimum: 0.25
                  maximum: 3
                  default: 1
                  description: Скорость; на сайте пали читается на 0.875
                  example: 0.875
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  audioContent:
                    type: string
                    description: base64 MP3, mono, 22 kHz
        '400':
          description: Неизвестный голос, пустой текст или неверный запрос
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
        '429':
          description: Превышен лимит запросов
      operationId: postApiTtsPali
      x-operation-id-source: derived
  /api/tts/memo:
    servers:
    - url: https://api.dhamma.gift
      description: api.dhamma.gift
    post:
      tags:
      - TTS
      summary: Текст целиком одним MP3 с паузами (Memo)
      description: Строки читаются подряд с паузами любой длины. Речь — до 30 минут (паузы не считаются), вся запись с паузами — до 180 минут; до 200 строк и 20 000 символов. Считается как 10 запросов в лимите.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - segments
              properties:
                segments:
                  type: array
                  items:
                    type: string
                  maxItems: 200
                  description: Строки, всего до 20 000 символов
                  example:
                  - Evaṁ me sutaṁ.
                  - Ekaṁ samayaṁ bhagavā…
                voice:
                  type: string
                  default: pratham
                rate:
                  type: number
                  default: 1
                delay:
                  type: number
                  maximum: 3600
                  description: Пауза между строками, секунды
                  example: 2
                end_delay:
                  type: number
                  maximum: 3600
                  description: Пауза в конце, секунды
                  example: 0
                sound:
                  type: string
                  enum:
                  - ''
                  - gong.mp3
                  - tick.mp3
                  description: Звук в конце
      responses:
        '200':
          description: MP3
          content:
            audio/mpeg:
              schema:
                type: string
                format: binary
        '400':
          description: Неизвестный голос или пустой текст
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
        '413':
          description: 'Превышен лимит: паузы, число строк/символов или длина записи'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
        '429':
          description: Превышен лимит запросов
      operationId: postApiTtsMemo
      x-operation-id-source: derived
  /api/tts/dg-voices:
    servers:
    - url: https://api.dhamma.gift
      description: api.dhamma.gift
    get:
      tags:
      - TTS
      summary: Список голосов
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  voices:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        lang:
                          type: string
                        label:
                          type: string
      description: 'Порядок — как в меню; первый голос языка — голос по умолчанию; lang: pi, en, ru.'
      operationId: getApiTtsDgVoices
      x-operation-id-source: derived
  /api/tts/health:
    servers:
    - url: https://api.dhamma.gift
      description: api.dhamma.gift
    get:
      tags:
      - TTS
      summary: Сервис жив, версия правил произношения
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  loaded:
                    type: array
                    items:
                      type: string
                  rules:
                    type: string
      operationId: getApiTtsHealth
      x-operation-id-source: derived