Coqui XTTS-v2 다국어 음성 복제 TTS입니다. 짧은 오디오 샘플 하나로 음성을 복제해 16개 언어로 말하게 할 수 있는, 가장 널리 쓰이는 오픈소스 음성 복제 모델 중 하나입니다.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "lucataco/xtts-v2",
"input": {
"speaker": "https://example.com/voice-sample.wav",
"text": "안녕하세요, 이것은 제 목소리로 만든 한국어 음성입니다.",
"language": "ko",
"cleanup_voice": true
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
text | string | No | Hi there, I'm your new voice clone. Try your best to upload quality audio | 복제 음성으로 합성할 텍스트 |
speaker | string | Yes | - | 복제할 화자 오디오 (wav, mp3, m4a, ogg, flv) |
language | string | No | en | 합성 음성의 출력 언어 enesfrdeitptpltrrunlcsarzhhukohi |
cleanup_voice | boolean | No | false | 화자 오디오에 노이즈 제거 적용 (마이크 녹음에 권장) |
이 모델의 speaker 파라미터에 파일을 전달하는 방법은 3가지입니다.
POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 필요 없습니다.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=lucataco/xtts-v2" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:speaker=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "lucataco/xtts-v2",
"input": {
"prompt": "your prompt here",
"speaker": "https://example.com/image.jpg"
}
}POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.
| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
model | string | Yes | - | 모델 식별자 |
input | object | Yes | - | 위 테이블의 모델별 파라미터를 포함하는 객체 |
output_folder | string | No | - | 결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가) |
webhook_url | string | No | - | 완료 시 호출할 Webhook URL |
is_public | boolean | No | false | true 시 결과물을 영구 공개 URL로도 제공 |
영어 화자를 복제해 한국어로 말하게 하기
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "lucataco/xtts-v2",
"input": {
"speaker": "https://example.com/voice-sample.wav",
"text": "안녕하세요, 이것은 제 목소리로 만든 한국어 음성입니다.",
"language": "ko",
"cleanup_voice": true
}
}'