음성 생성
텍스트를 입력받아 원하는 모델의 목소리로 발화하는 음성 데이터를 생성합니다.
정보
사용 가능한 모델의 종류와 사용 가능 여부 등은 문의를 통한 확인이 필요합니다.
1. API endpoint
POST https://app.aistudios.com/api/odin/v3/tools/voice-generator
2. Request parameter
key | desc | type | required | default |
---|---|---|---|---|
script | 발화할 대사 | String | true | - |
model | 목소리 아이디 | String | true | - |
type | 목소리 종류 ( deepbrainai | elevenlabs | google | ...) | String | true | - |
language | 목소리의 언어 ( en | ko | ja | ...) | String | true | - |
3. Response parameters
key | desc | type |
---|---|---|
downloadUrl | 생성된 음성 데이터의 URL | String |
정보
생성된 음성 데이터는 언제든지 삭제될 수 있으므로 생성된 URL을 직접 사용하지 않고 다운로드 받아 사용해야 합니다.
4. Sample Request
- cURL
- Node.js
- Python
curl https://app.aistudios.com/api/odin/v3/tools/voice-generator \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"script": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.\nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"model": "M000351175",
"type": "deepbrainai",
"language": "en"
}'
import axios from "axios";
axios.post("https://app.aistudios.com/api/odin/v3/tools/voice-generator",
{
"script": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.\nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"model": "M000351175",
"type": "deepbrainai",
"language": "en",
},
{
headers: {
"Authorization": ${API KEY},
"Content-Type": "application/json",
}
}
)
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error(error);
})
import requests
import json
url = "https://app.aistudios.com/api/odin/v3/tools/voice-generator"
body = {
"script": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.\nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"model": "M000351175",
"type": "deepbrainai",
"language": "en"
}
headers = {
"Content-Type": "application/json",
"Authorization": ${API KEY}
}
r = requests.post(url, data=json.dumps(body), headers=headers)