TwinTune API
  • 🔊getting started
    • Requesting an API Key
  • 💻api endpoints
    • POST VC Inference
    • POST TTS Inference
    • GET VC Inference
    • GET TTS Inference
    • GET VC Models
  • 📖Types & Limits
    • List TTS Models
    • Inference Job
    • VC Model
    • Paginated Response
    • Pagination Meta
    • Rate Limits
  • 💡tips and recommendations
    • Build your Dataset
    • Audio Recording
Powered by GitBook
On this page
  • Create new VC Inference Job
  • Headers
  • Query Parameters
  • Body Parameters
  • Response
  1. api endpoints

POST VC Inference

PreviousRequesting an API KeyNextPOST TTS Inference

Last updated 10 months ago

Create new VC Inference Job

POST /v1/inferences-vc

Creates a voice conversions and adds it to the inference queue. All requests must be made as multipart form requests. The response will contain the job status.

Headers

Name
Value

Content-Type

multipart/form-data

x-api-key

<token>

Query Parameters

Name
Type
Description
Default Values

modelId

string

Name of the user

indexRate

number

Influence exerted by the index model

default=0.76 min=0 max=1

rmsMixRate

number

Fusion ratio for replacing the input volume envelope with the output volume envelope

default=1 min=0 max=1

filterRadius

integer

median filter in the result of the pitch recognition of the crop

default=3 min=0 max=7

Body Parameters

Name
Type
Description

audioInfer

binary

Support wav, mp3 or flac. Max file size is 50MB.

The parameters "audioInfer" and "modelId" are mandatory for the correct functioning of the application.

Response

{
    "inferenceId": "123x456",
    "modelId": "123x456",
    "status": "RUNNING",
    "type": "VC",
    "inferenceUrl": null,
    "jobStartTime": "2024-01-01 20:15:50.428000 +00:00",
    "jobEndTime": null
}
{"message": "Invalid file type, use: ['audio/x-wav', 'audio/mpeg', 'audio/flac']"}
{"message": "Forbidden"}
{"message": "Payload Too Large"}
{
  "detail": [
    {
      "loc": [
        "query",
        ""
      ],
      "msg": "field required",
      "type": "value_error.missing"
    },
    {
      "loc": [
        "body",
        ""
      ],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}
{"error": "Rate limit exceeded."}

💻
inference job