Fish Audio 音声クローン
curl --request POST \
--url https://api.highwayapi.ai/v4beta/model \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"type": {},
"title": "<string>",
"train_mode": {},
"voices": [
null
],
"visibility": {},
"description": {},
"cover_image": {},
"texts": [
"<string>"
],
"tags": [
"<string>"
],
"enhance_audio_quality": true
}
'import requests
url = "https://api.highwayapi.ai/v4beta/model"
payload = {
"type": {},
"title": "<string>",
"train_mode": {},
"voices": [None],
"visibility": {},
"description": {},
"cover_image": {},
"texts": ["<string>"],
"tags": ["<string>"],
"enhance_audio_quality": True
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
type: {},
title: '<string>',
train_mode: {},
voices: [null],
visibility: {},
description: {},
cover_image: {},
texts: ['<string>'],
tags: ['<string>'],
enhance_audio_quality: true
})
};
fetch('https://api.highwayapi.ai/v4beta/model', 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://api.highwayapi.ai/v4beta/model",
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([
'type' => [
],
'title' => '<string>',
'train_mode' => [
],
'voices' => [
null
],
'visibility' => [
],
'description' => [
],
'cover_image' => [
],
'texts' => [
'<string>'
],
'tags' => [
'<string>'
],
'enhance_audio_quality' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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://api.highwayapi.ai/v4beta/model"
payload := strings.NewReader("{\n \"type\": {},\n \"title\": \"<string>\",\n \"train_mode\": {},\n \"voices\": [\n null\n ],\n \"visibility\": {},\n \"description\": {},\n \"cover_image\": {},\n \"texts\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"enhance_audio_quality\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v4beta/model")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"type\": {},\n \"title\": \"<string>\",\n \"train_mode\": {},\n \"voices\": [\n null\n ],\n \"visibility\": {},\n \"description\": {},\n \"cover_image\": {},\n \"texts\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"enhance_audio_quality\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v4beta/model")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"type\": {},\n \"title\": \"<string>\",\n \"train_mode\": {},\n \"voices\": [\n null\n ],\n \"visibility\": {},\n \"description\": {},\n \"cover_image\": {},\n \"texts\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"enhance_audio_quality\": true\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"type": {},
"title": "<string>",
"description": "<string>",
"cover_image": "<string>",
"state": {},
"tags": [
"<string>"
],
"created_at": {},
"updated_at": {},
"visibility": {},
"like_count": 123,
"mark_count": 123,
"shared_count": 123,
"task_count": 123,
"author": {
"_id": "<string>",
"nickname": "<string>",
"avatar": "<string>"
},
"train_mode": {},
"samples": [
{
"title": "<string>",
"text": "<string>",
"task_id": "<string>",
"audio": "<string>"
}
],
"languages": [
"<string>"
],
"lock_visibility": true,
"unliked": true,
"liked": true,
"marked": true
}音声
Fish Audio 音声クローン
POST
/
v4beta
/
model
Fish Audio 音声クローン
curl --request POST \
--url https://api.highwayapi.ai/v4beta/model \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"type": {},
"title": "<string>",
"train_mode": {},
"voices": [
null
],
"visibility": {},
"description": {},
"cover_image": {},
"texts": [
"<string>"
],
"tags": [
"<string>"
],
"enhance_audio_quality": true
}
'import requests
url = "https://api.highwayapi.ai/v4beta/model"
payload = {
"type": {},
"title": "<string>",
"train_mode": {},
"voices": [None],
"visibility": {},
"description": {},
"cover_image": {},
"texts": ["<string>"],
"tags": ["<string>"],
"enhance_audio_quality": True
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
type: {},
title: '<string>',
train_mode: {},
voices: [null],
visibility: {},
description: {},
cover_image: {},
texts: ['<string>'],
tags: ['<string>'],
enhance_audio_quality: true
})
};
fetch('https://api.highwayapi.ai/v4beta/model', 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://api.highwayapi.ai/v4beta/model",
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([
'type' => [
],
'title' => '<string>',
'train_mode' => [
],
'voices' => [
null
],
'visibility' => [
],
'description' => [
],
'cover_image' => [
],
'texts' => [
'<string>'
],
'tags' => [
'<string>'
],
'enhance_audio_quality' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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://api.highwayapi.ai/v4beta/model"
payload := strings.NewReader("{\n \"type\": {},\n \"title\": \"<string>\",\n \"train_mode\": {},\n \"voices\": [\n null\n ],\n \"visibility\": {},\n \"description\": {},\n \"cover_image\": {},\n \"texts\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"enhance_audio_quality\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v4beta/model")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"type\": {},\n \"title\": \"<string>\",\n \"train_mode\": {},\n \"voices\": [\n null\n ],\n \"visibility\": {},\n \"description\": {},\n \"cover_image\": {},\n \"texts\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"enhance_audio_quality\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v4beta/model")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"type\": {},\n \"title\": \"<string>\",\n \"train_mode\": {},\n \"voices\": [\n null\n ],\n \"visibility\": {},\n \"description\": {},\n \"cover_image\": {},\n \"texts\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"enhance_audio_quality\": true\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"type": {},
"title": "<string>",
"description": "<string>",
"cover_image": "<string>",
"state": {},
"tags": [
"<string>"
],
"created_at": {},
"updated_at": {},
"visibility": {},
"like_count": 123,
"mark_count": 123,
"shared_count": 123,
"task_count": 123,
"author": {
"_id": "<string>",
"nickname": "<string>",
"avatar": "<string>"
},
"train_mode": {},
"samples": [
{
"title": "<string>",
"text": "<string>",
"task_id": "<string>",
"audio": "<string>"
}
],
"languages": [
"<string>"
],
"lock_visibility": true,
"unliked": true,
"liked": true,
"marked": true
}Fish Audio API は、音声モデル(ボイスクローン)の作成に使用します。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
enum<string>
必須
モデルタイプ。tts はテキスト読み上げを表します。選択可能な値:
tts許可される値: "tts"string
必須
モデルのタイトルまたは名前。
enum<string>
必須
モデルのトレーニングモード。TTS モデルの場合、fast はモデルが作成後すぐに使用可能であることを示します。選択可能な値:
fast許可される値: "fast"file[]
必須
モデルのチューニングに使用する音声ファイルをアップロードします。
enum<string>
デフォルト:"public"
モデルの可視性。public は発見ページに表示され、unlist はリンクを持つすべての人がアクセスでき、private は作成者のみが表示できます。選択可能な値:
public, unlist, privatestring | null
モデルの説明。
file | null
モデルのカバー画像。モデルが public の場合、この項目は必須です。
string[]
音声に対応するテキスト。指定しない場合、音声に対して ASR(自動音声認識)が実行されます。
string[]
モデルのタグ。
boolean
デフォルト:false
音声品質を向上させます。
レスポンス情報
string
必須
作成されたモデルの一意の識別子。
enum<string>
必須
モデルタイプ。選択可能な値:
svc, ttsstring
必須
モデルのタイトルまたは名前。
string
必須
モデルの説明。
string
必須
モデルのカバー画像の URL。
enum<string>
必須
モデルの現在の状態。選択可能な値:
created, training, trained, failedstring[]
必須
モデルのタグ。
string<date-time>
必須
モデル作成時のタイムスタンプ。
string<date-time>
必須
モデルが最後に更新された時のタイムスタンプ。
enum<string>
必須
モデルの可視性設定。選択可能な値:
public, unlist, privateinteger
必須
モデルが受け取ったいいね数。
integer
必須
モデルが受け取ったお気に入り/ブックマーク数。
integer
必須
モデルが共有された回数。
integer
必須
モデルに関連付けられたタスク数。
AuthorEntity · object
必須
enum<string>
デフォルト:"full"
モデルで使用されるトレーニングモード。選択可能な値:
fast, fullSampleEntity · object[]
string[]
モデルがサポートする言語。
boolean
デフォルト:false
可視性設定がロックされているかどうか。
boolean
デフォルト:false
現在のユーザーがこのモデルのいいねを取り消しているかどうか。
boolean
デフォルト:false
現在のユーザーがこのモデルにいいねしているかどうか。
boolean
デフォルト:false
現在のユーザーがこのモデルをお気に入り/ブックマークしているかどうか。
⌘I