تحويل النص إلى صوت
استنساخ الصوت
مزامنة الشفاه
أخرى
تحويل النص إلى صوت
استنساخ الصوت
مزامنة الشفاه
أخرى
إنشاء نموذج
اختبر واجهة إنشاء نموذج صوتي.
واجهة إنشاء نموذج
نقطة النهاية
POST /api/open/create-model
ترويسات الطلب
Content-Type: multipart/form-data Authorization: Bearer YOUR_API_TOKEN // مفتاح API
معلمات الطلب
Form Data: name: string // undefined,اسم النموذج description: string // undefined,وصف النموذج visibility: string // undefined,Model visibility,undefined 'private',undefined:'public' | 'private' audioFiles: File // undefined,ملفات الصوت,Format:wav/mp3
الاستجابة
// undefined - 200
{
"modelId": string, // Created model ID
"title": string, // اسم النموذج
"description": string, // وصف النموذج
"createdAt": string, // Created at
"message": string // Success message
}
// undefined
{
"error": string // undefined
}مثال CURL
curl -X POST https://fishaudio.org/api/open/create-model \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -F "name=اسم النموذج" \ -F "description=وصف النموذج" \ -F "visibility=private" \ -F "audioFiles=@/path/to/audio1.wav"
تصحيح مباشر
أكواد الحالة
200: Success 400: Bad Request 401: Unauthorized 403: Forbidden 404: Not Found 429: Too Many Requests 500: Internal Server Error