Translate API

Javascript Fetch

const raw = await fetch('https://kuing.in/api/tts', { method: 'POST', headers: { 'api-key':'your-api-key', 'Content-Type': 'application/json' }, body: JSON.stringify({ language: 'ar-XA', text: 'Hello World' gender: 'female', autotranslate: true }) }) const result = raw.json(); return result;

PHP Curl

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://kuing.in/api/tts', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => 'text=Halo bagaimana kabar mu &language=ar-XA&gender=female&autotranslate=false', CURLOPT_HTTPHEADER => array( 'Content-Type: application/x-www-form-urlencoded' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

RESPON JSON SERVER

{ "status": "success", "text": { "text": "Halo selamat siang salam sejahtera.", "targetLanguage": "", "result": "Halo selamat siang salam sejahtera." }, "audioFileName": "https://kuing.in/audio/344d1faa-7f1f-4d34-b773-c57bf1587c8f.mp3", "audioBase64": "data:audio/mp3;base64,//NExAAR8AHUAUAAAPl3lDkEAxBwMQfesHw..........." }

https://kuing.in

Adalah, website official catur adi sukrisno yang menyediakan berbagai macam aplikasi yang berguna untuk membantu anda dalam mengolah data.