ai_coquitts

An authenticated client can post a request to CoquiTTS

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

Coqui TTS github page

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"
    }
}

Last updated