curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/aimastering/api/masterings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MasteringApi;
import java.io.File;
import java.util.*;
public class MasteringApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apieco-key
ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
apieco-key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.setApiKeyPrefix("Token");
MasteringApi apiInstance = new MasteringApi();
String apiecoKey = apiecoKey_example; // String |
Integer inputAudioId = 56; // Integer | Input audio id
String mode = mode_example; // String | Mode
Boolean bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled.
Boolean mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
String masteringAlgorithm = masteringAlgorithm_example; // String |
Boolean noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
String preset = preset_example; // String | This parameter is effective only when the mode is "custom".
BigDecimal targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
String targetLoudnessMode = targetLoudnessMode_example; // String |
BigDecimal masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
Boolean masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
BigDecimal masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
Integer referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
BigDecimal lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
BigDecimal highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
BigDecimal ceiling = 8.14; // BigDecimal |
String ceilingMode = ceilingMode_example; // String |
Integer oversample = 56; // Integer |
Integer sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
Integer bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
String outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
Boolean forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
BigDecimal startAt = 8.14; // BigDecimal | Partial mastering start at.
BigDecimal endAt = 8.14; // BigDecimal | Partial mastering end at.
String videoTitle = videoTitle_example; // String | This parameter represents the title of output video.
try {
Mastering result = apiInstance.createMastering(apiecoKey, inputAudioId, mode, bassPreservation, mastering, masteringAlgorithm, noiseReduction, preset, targetLoudness, targetLoudnessMode, masteringMatchingLevel, masteringReverb, masteringReverbGain, referenceAudioId, lowCutFreq, highCutFreq, ceiling, ceilingMode, oversample, sampleRate, bitDepth, outputFormat, forPreview, startAt, endAt, videoTitle);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MasteringApi#createMastering");
e.printStackTrace();
}
}
}
import io.swagger.client.api.MasteringApi;
public class MasteringApiExample {
public static void main(String[] args) {
MasteringApi apiInstance = new MasteringApi();
String apiecoKey = apiecoKey_example; // String |
Integer inputAudioId = 56; // Integer | Input audio id
String mode = mode_example; // String | Mode
Boolean bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled.
Boolean mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
String masteringAlgorithm = masteringAlgorithm_example; // String |
Boolean noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
String preset = preset_example; // String | This parameter is effective only when the mode is "custom".
BigDecimal targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
String targetLoudnessMode = targetLoudnessMode_example; // String |
BigDecimal masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
Boolean masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
BigDecimal masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
Integer referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
BigDecimal lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
BigDecimal highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
BigDecimal ceiling = 8.14; // BigDecimal |
String ceilingMode = ceilingMode_example; // String |
Integer oversample = 56; // Integer |
Integer sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
Integer bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
String outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
Boolean forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
BigDecimal startAt = 8.14; // BigDecimal | Partial mastering start at.
BigDecimal endAt = 8.14; // BigDecimal | Partial mastering end at.
String videoTitle = videoTitle_example; // String | This parameter represents the title of output video.
try {
Mastering result = apiInstance.createMastering(apiecoKey, inputAudioId, mode, bassPreservation, mastering, masteringAlgorithm, noiseReduction, preset, targetLoudness, targetLoudnessMode, masteringMatchingLevel, masteringReverb, masteringReverbGain, referenceAudioId, lowCutFreq, highCutFreq, ceiling, ceilingMode, oversample, sampleRate, bitDepth, outputFormat, forPreview, startAt, endAt, videoTitle);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MasteringApi#createMastering");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];
String *apiecoKey = apiecoKey_example; //
Integer *inputAudioId = 56; // Input audio id
String *mode = mode_example; // Mode (optional) (default to default)
Boolean *bassPreservation = true; // This parameter represents if the bass preservation is enabled. (optional) (default to false)
Boolean *mastering = true; // This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom". (optional) (default to false)
String *masteringAlgorithm = masteringAlgorithm_example; // (optional) (default to v2)
Boolean *noiseReduction = true; // This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom". (optional) (default to false)
String *preset = preset_example; // This parameter is effective only when the mode is "custom". (optional) (default to general)
BigDecimal *targetLoudness = 8.14; // This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to -5)
String *targetLoudnessMode = targetLoudnessMode_example; // (optional) (default to loudness)
BigDecimal *masteringMatchingLevel = 8.14; // This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to 0.5)
Boolean *masteringReverb = true; // This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to false)
BigDecimal *masteringReverbGain = 8.14; // This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true". (optional) (default to -36)
Integer *referenceAudioId = 56; // Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)
BigDecimal *lowCutFreq = 8.14; // This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20)
BigDecimal *highCutFreq = 8.14; // This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20000)
BigDecimal *ceiling = 8.14; // (optional) (default to 0)
String *ceilingMode = ceilingMode_example; // (optional) (default to peak)
Integer *oversample = 56; // (optional) (default to 1)
Integer *sampleRate = 56; // This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 44100)
Integer *bitDepth = 56; // This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 16)
String *outputFormat = outputFormat_example; // This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom". (optional) (default to wav)
Boolean *forPreview = true; // If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). (optional) (default to false)
BigDecimal *startAt = 8.14; // Partial mastering start at. (optional) (default to 0)
BigDecimal *endAt = 8.14; // Partial mastering end at. (optional) (default to -1)
String *videoTitle = videoTitle_example; // This parameter represents the title of output video. (optional) (default to )
MasteringApi *apiInstance = [[MasteringApi alloc] init];
// Create a new mastering.
[apiInstance createMasteringWith:apiecoKey
inputAudioId:inputAudioId
mode:mode
bassPreservation:bassPreservation
mastering:mastering
masteringAlgorithm:masteringAlgorithm
noiseReduction:noiseReduction
preset:preset
targetLoudness:targetLoudness
targetLoudnessMode:targetLoudnessMode
masteringMatchingLevel:masteringMatchingLevel
masteringReverb:masteringReverb
masteringReverbGain:masteringReverbGain
referenceAudioId:referenceAudioId
lowCutFreq:lowCutFreq
highCutFreq:highCutFreq
ceiling:ceiling
ceilingMode:ceilingMode
oversample:oversample
sampleRate:sampleRate
bitDepth:bitDepth
outputFormat:outputFormat
forPreview:forPreview
startAt:startAt
endAt:endAt
videoTitle:videoTitle
completionHandler: ^(Mastering output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AiMasteringApi = require('ai_mastering_api');
var defaultClient = AiMasteringApi.ApiClient.instance;
// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"
var api = new AiMasteringApi.MasteringApi()
var apiecoKey = apiecoKey_example; // {String}
var inputAudioId = 56; // {Integer} Input audio id
var opts = {
'mode': mode_example, // {String} Mode
'bassPreservation': true, // {Boolean} This parameter represents if the bass preservation is enabled.
'mastering': true, // {Boolean} This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
'masteringAlgorithm': masteringAlgorithm_example, // {String}
'noiseReduction': true, // {Boolean} This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
'preset': preset_example, // {String} This parameter is effective only when the mode is "custom".
'targetLoudness': 8.14, // {BigDecimal} This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
'targetLoudnessMode': targetLoudnessMode_example, // {String}
'masteringMatchingLevel': 8.14, // {BigDecimal} This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
'masteringReverb': true, // {Boolean} This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
'masteringReverbGain': 8.14, // {BigDecimal} This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
'referenceAudioId': 56, // {Integer} Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
'lowCutFreq': 8.14, // {BigDecimal} This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
'highCutFreq': 8.14, // {BigDecimal} This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
'ceiling': 8.14, // {BigDecimal}
'ceilingMode': ceilingMode_example, // {String}
'oversample': 56, // {Integer}
'sampleRate': 56, // {Integer} This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
'bitDepth': 56, // {Integer} This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
'outputFormat': outputFormat_example, // {String} This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
'forPreview': true, // {Boolean} If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
'startAt': 8.14, // {BigDecimal} Partial mastering start at.
'endAt': 8.14, // {BigDecimal} Partial mastering end at.
'videoTitle': videoTitle_example // {String} This parameter represents the title of output video.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createMastering(apiecoKey, inputAudioId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createMasteringExample
{
public void main()
{
// Configure API key authorization: apieco-key
Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");
var apiInstance = new MasteringApi();
var apiecoKey = apiecoKey_example; // String |
var inputAudioId = 56; // Integer | Input audio id
var mode = mode_example; // String | Mode (optional) (default to default)
var bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled. (optional) (default to false)
var mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom". (optional) (default to false)
var masteringAlgorithm = masteringAlgorithm_example; // String | (optional) (default to v2)
var noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom". (optional) (default to false)
var preset = preset_example; // String | This parameter is effective only when the mode is "custom". (optional) (default to general)
var targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to -5)
var targetLoudnessMode = targetLoudnessMode_example; // String | (optional) (default to loudness)
var masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to 0.5)
var masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to false)
var masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true". (optional) (default to -36)
var referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)
var lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20)
var highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20000)
var ceiling = 8.14; // BigDecimal | (optional) (default to 0)
var ceilingMode = ceilingMode_example; // String | (optional) (default to peak)
var oversample = 56; // Integer | (optional) (default to 1)
var sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 44100)
var bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 16)
var outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom". (optional) (default to wav)
var forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). (optional) (default to false)
var startAt = 8.14; // BigDecimal | Partial mastering start at. (optional) (default to 0)
var endAt = 8.14; // BigDecimal | Partial mastering end at. (optional) (default to -1)
var videoTitle = videoTitle_example; // String | This parameter represents the title of output video. (optional) (default to )
try
{
// Create a new mastering.
Mastering result = apiInstance.createMastering(apiecoKey, inputAudioId, mode, bassPreservation, mastering, masteringAlgorithm, noiseReduction, preset, targetLoudness, targetLoudnessMode, masteringMatchingLevel, masteringReverb, masteringReverbGain, referenceAudioId, lowCutFreq, highCutFreq, ceiling, ceilingMode, oversample, sampleRate, bitDepth, outputFormat, forPreview, startAt, endAt, videoTitle);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MasteringApi.createMastering: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');
$api_instance = new Swagger\Client\Api\MasteringApi();
$apiecoKey = apiecoKey_example; // String |
$inputAudioId = 56; // Integer | Input audio id
$mode = mode_example; // String | Mode
$bassPreservation = true; // Boolean | This parameter represents if the bass preservation is enabled.
$mastering = true; // Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
$masteringAlgorithm = masteringAlgorithm_example; // String |
$noiseReduction = true; // Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
$preset = preset_example; // String | This parameter is effective only when the mode is "custom".
$targetLoudness = 8.14; // BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
$targetLoudnessMode = targetLoudnessMode_example; // String |
$masteringMatchingLevel = 8.14; // BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
$masteringReverb = true; // Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
$masteringReverbGain = 8.14; // BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
$referenceAudioId = 56; // Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
$lowCutFreq = 8.14; // BigDecimal | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
$highCutFreq = 8.14; // BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
$ceiling = 8.14; // BigDecimal |
$ceilingMode = ceilingMode_example; // String |
$oversample = 56; // Integer |
$sampleRate = 56; // Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
$bitDepth = 56; // Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
$outputFormat = outputFormat_example; // String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
$forPreview = true; // Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
$startAt = 8.14; // BigDecimal | Partial mastering start at.
$endAt = 8.14; // BigDecimal | Partial mastering end at.
$videoTitle = videoTitle_example; // String | This parameter represents the title of output video.
try {
$result = $api_instance->createMastering($apiecoKey, $inputAudioId, $mode, $bassPreservation, $mastering, $masteringAlgorithm, $noiseReduction, $preset, $targetLoudness, $targetLoudnessMode, $masteringMatchingLevel, $masteringReverb, $masteringReverbGain, $referenceAudioId, $lowCutFreq, $highCutFreq, $ceiling, $ceilingMode, $oversample, $sampleRate, $bitDepth, $outputFormat, $forPreview, $startAt, $endAt, $videoTitle);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MasteringApi->createMastering: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MasteringApi;
# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::MasteringApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $inputAudioId = 56; # Integer | Input audio id
my $mode = mode_example; # String | Mode
my $bassPreservation = true; # Boolean | This parameter represents if the bass preservation is enabled.
my $mastering = true; # Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
my $masteringAlgorithm = masteringAlgorithm_example; # String |
my $noiseReduction = true; # Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
my $preset = preset_example; # String | This parameter is effective only when the mode is "custom".
my $targetLoudness = 8.14; # BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
my $targetLoudnessMode = targetLoudnessMode_example; # String |
my $masteringMatchingLevel = 8.14; # BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
my $masteringReverb = true; # Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
my $masteringReverbGain = 8.14; # BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
my $referenceAudioId = 56; # Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
my $lowCutFreq = 8.14; # BigDecimal | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
my $highCutFreq = 8.14; # BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
my $ceiling = 8.14; # BigDecimal |
my $ceilingMode = ceilingMode_example; # String |
my $oversample = 56; # Integer |
my $sampleRate = 56; # Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
my $bitDepth = 56; # Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
my $outputFormat = outputFormat_example; # String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom".
my $forPreview = true; # Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
my $startAt = 8.14; # BigDecimal | Partial mastering start at.
my $endAt = 8.14; # BigDecimal | Partial mastering end at.
my $videoTitle = videoTitle_example; # String | This parameter represents the title of output video.
eval {
my $result = $api_instance->createMastering(apiecoKey => $apiecoKey, inputAudioId => $inputAudioId, mode => $mode, bassPreservation => $bassPreservation, mastering => $mastering, masteringAlgorithm => $masteringAlgorithm, noiseReduction => $noiseReduction, preset => $preset, targetLoudness => $targetLoudness, targetLoudnessMode => $targetLoudnessMode, masteringMatchingLevel => $masteringMatchingLevel, masteringReverb => $masteringReverb, masteringReverbGain => $masteringReverbGain, referenceAudioId => $referenceAudioId, lowCutFreq => $lowCutFreq, highCutFreq => $highCutFreq, ceiling => $ceiling, ceilingMode => $ceilingMode, oversample => $oversample, sampleRate => $sampleRate, bitDepth => $bitDepth, outputFormat => $outputFormat, forPreview => $forPreview, startAt => $startAt, endAt => $endAt, videoTitle => $videoTitle);
print Dumper($result);
};
if ($@) {
warn "Exception when calling MasteringApi->createMastering: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.MasteringApi()
apiecoKey = apiecoKey_example # String |
inputAudioId = 56 # Integer | Input audio id
mode = mode_example # String | Mode (optional) (default to default)
bassPreservation = true # Boolean | This parameter represents if the bass preservation is enabled. (optional) (default to false)
mastering = true # Boolean | This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom". (optional) (default to false)
masteringAlgorithm = masteringAlgorithm_example # String | (optional) (default to v2)
noiseReduction = true # Boolean | This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom". (optional) (default to false)
preset = preset_example # String | This parameter is effective only when the mode is "custom". (optional) (default to general)
targetLoudness = 8.14 # BigDecimal | This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to -5)
targetLoudnessMode = targetLoudnessMode_example # String | (optional) (default to loudness)
masteringMatchingLevel = 8.14 # BigDecimal | This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to 0.5)
masteringReverb = true # Boolean | This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional) (default to false)
masteringReverbGain = 8.14 # BigDecimal | This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true". (optional) (default to -36)
referenceAudioId = 56 # Integer | Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled. (optional)
lowCutFreq = 8.14 # BigDecimal | This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20)
highCutFreq = 8.14 # BigDecimal | This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom". (optional) (default to 20000)
ceiling = 8.14 # BigDecimal | (optional) (default to 0)
ceilingMode = ceilingMode_example # String | (optional) (default to peak)
oversample = 56 # Integer | (optional) (default to 1)
sampleRate = 56 # Integer | This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 44100)
bitDepth = 56 # Integer | This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom". (optional) (default to 16)
outputFormat = outputFormat_example # String | This parameter represents the format of the output audio. This parameter is effective only when the mode is "custom". (optional) (default to wav)
forPreview = true # Boolean | If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime). (optional) (default to false)
startAt = 8.14 # BigDecimal | Partial mastering start at. (optional) (default to 0)
endAt = 8.14 # BigDecimal | Partial mastering end at. (optional) (default to -1)
videoTitle = videoTitle_example # String | This parameter represents the title of output video. (optional) (default to )
try:
# Create a new mastering.
api_response = api_instance.create_mastering(apiecoKey, inputAudioId, mode=mode, bassPreservation=bassPreservation, mastering=mastering, masteringAlgorithm=masteringAlgorithm, noiseReduction=noiseReduction, preset=preset, targetLoudness=targetLoudness, targetLoudnessMode=targetLoudnessMode, masteringMatchingLevel=masteringMatchingLevel, masteringReverb=masteringReverb, masteringReverbGain=masteringReverbGain, referenceAudioId=referenceAudioId, lowCutFreq=lowCutFreq, highCutFreq=highCutFreq, ceiling=ceiling, ceilingMode=ceilingMode, oversample=oversample, sampleRate=sampleRate, bitDepth=bitDepth, outputFormat=outputFormat, forPreview=forPreview, startAt=startAt, endAt=endAt, videoTitle=videoTitle)
pprint(api_response)
except ApiException as e:
print("Exception when calling MasteringApi->createMastering: %s\n" % e)
Name |
Description |
mode |
|
input_audio_id* |
|
bass_preservation |
Boolean
This parameter represents if the bass preservation is enabled.
|
mastering |
Boolean
This parameter represents if the mastering is enabled. This parameter is effective only when the mode is "default" or "custom".
|
mastering_algorithm |
String
Enum: default , custom v1 , v2
|
noise_reduction |
Boolean
This parameter represents if the nosie reduction is enabled. This parameter is effective only when the mode is "custom".
|
preset |
String
This parameter is effective only when the mode is "custom".
Enum: default , custom v1 , v2 general , pop , classical , jazz
|
target_loudness |
BigDecimal
This parameter represents the target loudness of the output audio in dB. This parameter is effective only when the mode is "custom".
|
target_loudness_mode |
String
Enum: default , custom v1 , v2 general , pop , classical , jazz loudness , rms , peak , youtube_loudness
|
mastering_matching_level |
BigDecimal
This parameter represents the mastering reference matching level. This parameter is effective only when the mode is "custom" and the mastering is enabled.
|
mastering_reverb |
Boolean
This parameter represents if the mastering reverb is enabled. This parameter is effective only when the mode is "custom" and the mastering is enabled.
|
mastering_reverb_gain |
BigDecimal
This parameter represents the mastering reverb gain relative to the dry sound in dB. This parameter is effective only when the mode is "custom" and the mastering is "true" and the mastering_reverb is "true".
|
reference_audio_id |
Integer
Reference audio id. This parameter is effective only when the mode is "custom" and the mastering is enabled.
|
low_cut_freq |
BigDecimal
This parameter represents the low cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
|
high_cut_freq |
BigDecimal
This parameter represents the high cut freq of the output audio in Hz. This parameter is effective only when the mode is "custom".
|
ceiling |
|
ceiling_mode |
String
Enum: default , custom v1 , v2 general , pop , classical , jazz loudness , rms , peak , youtube_loudness peak , true_peak , lowpass_true_peak
|
oversample |
|
sample_rate |
Integer
This parameter represents the sample rate of the output audio in dB. This parameter is effective only when the mode is "custom".
|
bit_depth |
Integer
This parameter represents the bit depth of the output audio in dB. This parameter is effective only when the mode is "custom".
|
output_format |
|
for_preview |
Boolean
If this is true, the mastering is treated for preview purpose (ex. not purchasable, not publishable, short lifetime).
|
start_at |
BigDecimal
Partial mastering start at.
|
end_at |
BigDecimal
Partial mastering end at.
|
video_title |
String
This parameter represents the title of output video.
|