Convai TTS API

The TTS API from Convai — 3 operation(s) for tts.

OpenAPI Specification

convai-com-tts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Convai Character Characters TTS API
  version: '1.0'
  description: 'REST API for creating, listing, updating, cloning, and deleting Convai

    conversational AI characters. Characters are reusable conversational agents

    with backstory, voice, personality, language, and knowledge configuration

    that can be embodied in games, virtual worlds, and 3D experiences via the

    Unity, Unreal, Web, and other Convai SDKs.

    '
  contact:
    name: Convai Developer Support
    url: https://forum.convai.com
servers:
- url: https://api.convai.com
  description: Convai REST API
security:
- ConvaiApiKey: []
tags:
- name: TTS
paths:
  /tts:
    post:
      summary: Synthesize Speech
      operationId: synthesizeSpeech
      tags:
      - TTS
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - transcript
              - voice
              properties:
                transcript:
                  type: string
                voice:
                  type: string
                filename:
                  type: string
                encoding:
                  type: string
                  enum:
                  - wav
                  - mp3
                  - pcm
      responses:
        '200':
          description: Audio bytes
          content:
            audio/wav:
              schema:
                type: string
                format: binary
            audio/mpeg:
              schema:
                type: string
                format: binary
  /tts/get_available_voices:
    get:
      summary: List Available Voices
      operationId: listVoices
      tags:
      - TTS
      responses:
        '200':
          description: Voice list
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    voice:
                      type: string
                    language:
                      type: string
                    gender:
                      type: string
                    description:
                      type: string
  /tts/get_available_languages:
    get:
      summary: List Available Languages
      operationId: listLanguages
      tags:
      - TTS
      responses:
        '200':
          description: Language list
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    language:
                      type: string
                    code:
                      type: string
components:
  securitySchemes:
    ConvaiApiKey:
      type: apiKey
      in: header
      name: CONVAI-API-KEY