Voice Design
curl --request POST \
--url https://apis.finevoice.ai/v1/voice/design \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "<string>",
"engine": "v2",
"prompt": "A warm, friendly female voice with a slight British accent",
"previewText": "Hello, this is a preview of the designed voice.",
"modelId": "<string>",
"seed": 123
}
'import requests
url = "https://apis.finevoice.ai/v1/voice/design"
payload = {
"taskId": "<string>",
"engine": "v2",
"prompt": "A warm, friendly female voice with a slight British accent",
"previewText": "Hello, this is a preview of the designed voice.",
"modelId": "<string>",
"seed": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taskId: '<string>',
engine: 'v2',
prompt: 'A warm, friendly female voice with a slight British accent',
previewText: 'Hello, this is a preview of the designed voice.',
modelId: '<string>',
seed: 123
})
};
fetch('https://apis.finevoice.ai/v1/voice/design', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apis.finevoice.ai/v1/voice/design",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskId' => '<string>',
'engine' => 'v2',
'prompt' => 'A warm, friendly female voice with a slight British accent',
'previewText' => 'Hello, this is a preview of the designed voice.',
'modelId' => '<string>',
'seed' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apis.finevoice.ai/v1/voice/design"
payload := strings.NewReader("{\n \"taskId\": \"<string>\",\n \"engine\": \"v2\",\n \"prompt\": \"A warm, friendly female voice with a slight British accent\",\n \"previewText\": \"Hello, this is a preview of the designed voice.\",\n \"modelId\": \"<string>\",\n \"seed\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apis.finevoice.ai/v1/voice/design")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskId\": \"<string>\",\n \"engine\": \"v2\",\n \"prompt\": \"A warm, friendly female voice with a slight British accent\",\n \"previewText\": \"Hello, this is a preview of the designed voice.\",\n \"modelId\": \"<string>\",\n \"seed\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.finevoice.ai/v1/voice/design")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskId\": \"<string>\",\n \"engine\": \"v2\",\n \"prompt\": \"A warm, friendly female voice with a slight British accent\",\n \"previewText\": \"Hello, this is a preview of the designed voice.\",\n \"modelId\": \"<string>\",\n \"seed\": 123\n}"
response = http.request(request)
puts response.read_body{}Voice Design
Voice Design
Design a new AI voice from a text prompt and preview it with sample text.
POST
/
v1
/
voice
/
design
Voice Design
curl --request POST \
--url https://apis.finevoice.ai/v1/voice/design \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskId": "<string>",
"engine": "v2",
"prompt": "A warm, friendly female voice with a slight British accent",
"previewText": "Hello, this is a preview of the designed voice.",
"modelId": "<string>",
"seed": 123
}
'import requests
url = "https://apis.finevoice.ai/v1/voice/design"
payload = {
"taskId": "<string>",
"engine": "v2",
"prompt": "A warm, friendly female voice with a slight British accent",
"previewText": "Hello, this is a preview of the designed voice.",
"modelId": "<string>",
"seed": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taskId: '<string>',
engine: 'v2',
prompt: 'A warm, friendly female voice with a slight British accent',
previewText: 'Hello, this is a preview of the designed voice.',
modelId: '<string>',
seed: 123
})
};
fetch('https://apis.finevoice.ai/v1/voice/design', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apis.finevoice.ai/v1/voice/design",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskId' => '<string>',
'engine' => 'v2',
'prompt' => 'A warm, friendly female voice with a slight British accent',
'previewText' => 'Hello, this is a preview of the designed voice.',
'modelId' => '<string>',
'seed' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apis.finevoice.ai/v1/voice/design"
payload := strings.NewReader("{\n \"taskId\": \"<string>\",\n \"engine\": \"v2\",\n \"prompt\": \"A warm, friendly female voice with a slight British accent\",\n \"previewText\": \"Hello, this is a preview of the designed voice.\",\n \"modelId\": \"<string>\",\n \"seed\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apis.finevoice.ai/v1/voice/design")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskId\": \"<string>\",\n \"engine\": \"v2\",\n \"prompt\": \"A warm, friendly female voice with a slight British accent\",\n \"previewText\": \"Hello, this is a preview of the designed voice.\",\n \"modelId\": \"<string>\",\n \"seed\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.finevoice.ai/v1/voice/design")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskId\": \"<string>\",\n \"engine\": \"v2\",\n \"prompt\": \"A warm, friendly female voice with a slight British accent\",\n \"previewText\": \"Hello, this is a preview of the designed voice.\",\n \"modelId\": \"<string>\",\n \"seed\": 123\n}"
response = http.request(request)
puts response.read_body{}Authorizations
Bearer token (API key). Format: Bearer {your_api_key}
Body
application/json
The voice design request payload.
Task identifier for updating an existing design task.
Voice generation engine. Supported: v1, v2.
Example:
"v2"
Voice design prompt describing desired voice characteristics.
Example:
"A warm, friendly female voice with a slight British accent"
Preview text used to audition the designed voice.
Example:
"Hello, this is a preview of the designed voice."
The base model identifier.
Random seed for deterministic generation.
Response
Voice design task accepted.
The response is of type object.
⌘I