Farsava API

Languagemodel

v1SpeechLanguagemodelsGet


/v1/speech/languagemodels

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/farsava/v1/speech/languagemodels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LanguagemodelApi;

import java.io.File;
import java.util.*;

public class LanguagemodelApiExample {

    public static void main(String[] args) {
        
        LanguagemodelApi apiInstance = new LanguagemodelApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            array[inline_response_200_1] result = apiInstance.v1SpeechLanguagemodelsGet(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguagemodelApi#v1SpeechLanguagemodelsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LanguagemodelApi;

public class LanguagemodelApiExample {

    public static void main(String[] args) {
        LanguagemodelApi apiInstance = new LanguagemodelApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            array[inline_response_200_1] result = apiInstance.v1SpeechLanguagemodelsGet(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguagemodelApi#v1SpeechLanguagemodelsGet");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

LanguagemodelApi *apiInstance = [[LanguagemodelApi alloc] init];

[apiInstance v1SpeechLanguagemodelsGetWith:apiecoKey
              completionHandler: ^(array[inline_response_200_1] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FarsavaApi = require('farsava_api');

var api = new FarsavaApi.LanguagemodelApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1SpeechLanguagemodelsGet(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1SpeechLanguagemodelsGetExample
    {
        public void main()
        {
            
            var apiInstance = new LanguagemodelApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                array[inline_response_200_1] result = apiInstance.v1SpeechLanguagemodelsGet(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LanguagemodelApi.v1SpeechLanguagemodelsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LanguagemodelApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API

try {
    $result = $api_instance->v1SpeechLanguagemodelsGet($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LanguagemodelApi->v1SpeechLanguagemodelsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LanguagemodelApi;

my $api_instance = WWW::SwaggerClient::LanguagemodelApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API

eval { 
    my $result = $api_instance->v1SpeechLanguagemodelsGet(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LanguagemodelApi->v1SpeechLanguagemodelsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LanguagemodelApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    api_response = api_instance.v1_speech_languagemodels_get(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LanguagemodelApi->v1SpeechLanguagemodelsGet: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - ok

Status: 400 - This response means that server could not understand the request due to invalid syntax.

Status: 401 - Authentication is needed to get requested response. This is similar to 403, but in this case, authentication is possible.

Status: 403 - Client does not have access rights to the content so server is rejecting to give proper response.

Status: 404 - Server can not find requested resource.

Status: 429 - The user has sent too many requests in a given amount of time (rate limiting).

Status: 500 - The server has encountered a situation it doesn't know how to handle.

Status: 501 - The request method is not supported by the server and cannot be handled.


Speech

v1SpeechHealthcheckGet


/v1/speech/healthcheck

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/farsava/v1/speech/healthcheck"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SpeechApi;

import java.io.File;
import java.util.*;

public class SpeechApiExample {

    public static void main(String[] args) {
        
        SpeechApi apiInstance = new SpeechApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            inline_response_200 result = apiInstance.v1SpeechHealthcheckGet(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SpeechApi#v1SpeechHealthcheckGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SpeechApi;

public class SpeechApiExample {

    public static void main(String[] args) {
        SpeechApi apiInstance = new SpeechApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            inline_response_200 result = apiInstance.v1SpeechHealthcheckGet(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SpeechApi#v1SpeechHealthcheckGet");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

SpeechApi *apiInstance = [[SpeechApi alloc] init];

[apiInstance v1SpeechHealthcheckGetWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FarsavaApi = require('farsava_api');

var api = new FarsavaApi.SpeechApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1SpeechHealthcheckGet(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1SpeechHealthcheckGetExample
    {
        public void main()
        {
            
            var apiInstance = new SpeechApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                inline_response_200 result = apiInstance.v1SpeechHealthcheckGet(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SpeechApi.v1SpeechHealthcheckGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SpeechApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API

try {
    $result = $api_instance->v1SpeechHealthcheckGet($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SpeechApi->v1SpeechHealthcheckGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SpeechApi;

my $api_instance = WWW::SwaggerClient::SpeechApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API

eval { 
    my $result = $api_instance->v1SpeechHealthcheckGet(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SpeechApi->v1SpeechHealthcheckGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SpeechApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    api_response = api_instance.v1_speech_healthcheck_get(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SpeechApi->v1SpeechHealthcheckGet: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - ok

Status: 400 - This response means that server could not understand the request due to invalid syntax.

Status: 401 - Authentication is needed to get requested response. This is similar to 403, but in this case, authentication is possible.

Status: 403 - Client does not have access rights to the content so server is rejecting to give proper response.

Status: 404 - Server can not find requested resource.

Status: 429 - The user has sent too many requests in a given amount of time (rate limiting).

Status: 500 - The server has encountered a situation it doesn't know how to handle.

Status: 501 - The request method is not supported by the server and cannot be handled.


Voice

v1VoiceHealthcheckGet


/v1/voice/healthcheck

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/farsava/v1/voice/healthcheck"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VoiceApi;

import java.io.File;
import java.util.*;

public class VoiceApiExample {

    public static void main(String[] args) {
        
        VoiceApi apiInstance = new VoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            inline_response_200 result = apiInstance.v1VoiceHealthcheckGet(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VoiceApi#v1VoiceHealthcheckGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VoiceApi;

public class VoiceApiExample {

    public static void main(String[] args) {
        VoiceApi apiInstance = new VoiceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        try {
            inline_response_200 result = apiInstance.v1VoiceHealthcheckGet(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VoiceApi#v1VoiceHealthcheckGet");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

VoiceApi *apiInstance = [[VoiceApi alloc] init];

[apiInstance v1VoiceHealthcheckGetWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FarsavaApi = require('farsava_api');

var api = new FarsavaApi.VoiceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1VoiceHealthcheckGet(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1VoiceHealthcheckGetExample
    {
        public void main()
        {
            
            var apiInstance = new VoiceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

            try
            {
                inline_response_200 result = apiInstance.v1VoiceHealthcheckGet(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VoiceApi.v1VoiceHealthcheckGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\VoiceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API

try {
    $result = $api_instance->v1VoiceHealthcheckGet($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VoiceApi->v1VoiceHealthcheckGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VoiceApi;

my $api_instance = WWW::SwaggerClient::VoiceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API

eval { 
    my $result = $api_instance->v1VoiceHealthcheckGet(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VoiceApi->v1VoiceHealthcheckGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.VoiceApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)

try: 
    api_response = api_instance.v1_voice_healthcheck_get(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VoiceApi->v1VoiceHealthcheckGet: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required

Responses

Status: 200 - ok

Status: 400 - This response means that server could not understand the request due to invalid syntax.

Status: 401 - Authentication is needed to get requested response. This is similar to 403, but in this case, authentication is possible.

Status: 403 - Client does not have access rights to the content so server is rejecting to give proper response.

Status: 404 - Server can not find requested resource.

Status: 429 - The user has sent too many requests in a given amount of time (rate limiting).

Status: 500 - The server has encountered a situation it doesn't know how to handle.

Status: 501 - The request method is not supported by the server and cannot be handled.