Introduction
Falcon AI solutions help you control your application contents towards your business goals. With Falcon audio processing robust AI model you can easily identify music in your audio file in just a milliseconds. Our model has been built with millions of samples.
Common use case for using Falcon Audio Processing API include the following:
Music Detection: Detecting music in an audio file. Using music detection API , you can detect whether the audio file contains any music or not.
The Falcon API Flow
Using Falcon API is simple:
  1. 1. Click here if you haven't already and create an account.
  2. 2. Get API access credentials. To get your API credential, To get your API credential, log in to your account and go to the API key page.
  3. 3. Submit your file to the API along with the necessary authentication details.
  4. 4. Receive an immediate response from the API that includes a comprehensive description of what was detected with the scores.
The API response provides all the necessary information in JSON format.
Audio Processing
Falcon Audio Processing API let you analyze the audio contents in your application. The API currently provides music detection and soon there will be other services added in to the API.
Music Detection
Using music detection service, you can detect the existence of music in the audio files and categorize and decide according to your business strategy and requirements.
  • File type: MP3 and WAV
  • Maximum file size: 10MB
  • Minimum audio length: 3 seconds
Get Started
Create an account to obtain your own API keys if you haven't done so already.
Quick Setup
Getting started only requires a minimal amount of coding effort. Our goal has been to simplify and speed up the integration process for you.
Endpoint
https://api.nixofalcon.com/ai/audio
Parameters
Parameter Type Description
Token String Client API Key
Files Object Object Audio to be sent for detection
Code Example

headers = {'Accept': 'application/json', 'Authorization': 'Bearer API KEY' }

files = {'audio': (open('/path/to/audio.wav', 'rb'))}
params = {
    'model': 'Music-Detection'
}
response = requests.post('https://api.nixofalcon.com/ai/audio', headers=headers, files=files, data=params)

response.text
/**
* Request service API
* @param string $token API token generated in the project services
* @param string $filePath full path to audio file
* @return bool
*/

function requestApi(
    string $token,
    string $filePath
): bool {
    $url = "https://api.nixofalcon.com/ai/audio";
    $file = curl_file_create($filePath);
    $headers = ["Authorization: Bearer " . $token, "Accept: application/json"];
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
    $data = [
        "audio" => $file,
        "model" => "Music-Detection"
    ];
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
    $response = curl_exec($curl);
    if (curl_errno($curl)) {
        echo "CURL ERROR - " . curl_error($curl);
    }
    curl_close($curl);
    return $response;
}
$apiKeys = "YOUR_API_KEY";
$filePath = "audio/sample.wav";
$result = requestApi($apiKeys, $filePath);

curl -k -X POST "https://api.nixofalcon.com/ai/audio" -H "Authorization:

Bearer API Key" -H "Content-Type:

multipart/form-data" -H "Accept: application/json" -F "audio=@/path/to/audio.wav" -d "model=Music-Detection"