OpenSourceAIs
OpenSourceAIs
OpenSourceAIs
  • Open Source AIs
  • AI configuration
    • Preparing your environment
    • Installing a Daemon
    • AI config file
  • Client Tokens
    • Configuration
  • APIs
    • System status
    • Client Apps
      • Authenticate into OSAIS
      • Update notification params
      • Check a request
    • AIs
      • Integration Test
        • ai_ping
      • Txt2Img & Img2Img
        • ai_cnet
        • ai_diffusion
        • ai_vqgan
      • Img2Vid
        • ai_vtoonify
        • ai_sadtalker
      • Image Utilities
        • ai_rembg
        • ai_gfpgan
      • TTS & STT
        • ai_coquitts
  • Sample App
    • NodeJS sample
Powered by GitBook
On this page
  • Get the JSON config file for this AI
  • Post a request to AI coquitts via OpenSourceAIs
  1. APIs
  2. AIs
  3. TTS & STT

ai_coquitts

An authenticated client can post a request to CoquiTTS

PreviousTTS & STTNextNodeJS sample

Last updated 8 months ago

This AI has the ability to produce Text To Speech. The output is a wav file.

This AI can run AI alongside a Daemon on GPU only

Get the JSON config file for this AI

GET https://opensourceais.com/api/v1/public/config/coquitts

{
    "engine": "coquitts",
    "name": "Coqui TTS",
    "location": "",
    "ip": "0.0.0.0",
    "port": 5502,
    "version": "1.0.8",
    "description": "Text to Speech",
    "github": "https://github.com/coqui-ai/TTS",
    "requiresGPU": true,
    "isFree": false,
    "default_cost": 1000,
    "params": [{
        "in": "word",
        "out": "--prompt",
        "isMandatory": true,
        "type": "string",
        "default": null,
        "ui": {
            "title": "Input (text)",
            "placeholder": "eg: This is not what it sounds like",
            "widget": "uiEdit",
            "column": 1
        }
    }, {
        "in": "url_upload",
        "out": "-filename",
        "isMandatory": false,
        "type": "string",
        "default": null,
        "accept": {
            "$max": 4096,
            "$ext": [".wav"]
        },
        "ui": {
            "title": "Your voice",
            "widget": "uiSelectFile",
            "column": 1
        }
    }, {
        "in": "intl",
        "out": "--intl",
        "isMandatory": false,
        "type": "string",
        "default": "en",
        "accept": {
            "$in":["en", "fr-fr"],
            "display":["en", "fr"]
        },
        "ui": {
            "title": "Language accent",
            "widget": "uiMultiToggle",
            "column": 2
        }
    }, {
        "in": "output",
        "out": "-o",
        "isMandatory": true,
        "type": "function",
        "default": "$output_uid.wav"
    }, {
        "in": "idir",
        "out": "-idir",
        "isMandatory": false,
        "type": "string",
        "default": "./_input/"
    }, {
        "in": "odir",
        "out": "-odir",
        "isMandatory": false,
        "type": "string",
        "default": "./_output/"
    }]
}

Post a request to AI coquitts via OpenSourceAIs

POST https://opensourceais.com/api/v1/private/client/ai/coquitts

Request Body

Name
Type
Description

word*

String

The text to transform into speech

intl

String

An international code, such as en, or fr-fr to define the locale accent of the AI.

url_upload

String

A well formed URI starting with https://... and accessing a .WAV file. Note that this file has a limit of 4Mb. You should only upload files of at most 15sec of sample voice.

{
    "data": {
        "uid": 1678361974000,
        "created_at": "2023-03-09T11:39:44.000Z"
    }
}
{
     data: null,
     status: 400,
     statusText: "A client token is required"
}
GitHub - coqui-ai/TTS: πŸΈπŸ’¬ - a deep learning toolkit for Text-to-Speech, battle-tested in research and productionGitHub
Coqui TTS github page
Logo