A repository for python software development kit (SDK) of Farsava API using asyncio.
Farsava API: Speech Recognition and Text to Speech by applying powerful deep neural network models.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.5
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import aiofarsava
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import aiofarsava
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import aiofarsava
from aiofarsava.rest import ApiException
from pprint import pprint
configuration = aiofarsava.Configuration()
# Configure Bearer authorization (JWT): bearerAuth
configuration.access_token = 'YOUR_BEARER_TOKEN'
# create an instance of the API class
api_instance = aiofarsava.LanguageModelApi(aiofarsava.ApiClient(configuration))
language_model_id = 'language_model_id_example' # str | Id of the language model.
try:
# GET /speech/languagemodels/{languageModelId}
api_response = api_instance.get_language_model_by_id(language_model_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling LanguageModelApi->get_language_model_by_id: %s\n" % e)
All URIs are relative to https://api.farsava.ir/v1
You can also visit our documentation.
Class | Method | HTTP request | Description |
---|---|---|---|
LanguageModelApi | get_language_model_by_id | GET /speech/languagemodels/{languageModelId} | GET /speech/languagemodels/{languageModelId} |
LanguageModelApi | get_language_model_list | GET /speech/languagemodels | GET /speech/languagemodels |
LanguageModelApi | train_language_model | POST /speech/languagemodels | POST /speech/languagemodels |
SpeechApi | delete_transcription | DELETE /speech/transcriptions/{transcriptionId} | DELETE /speech/transcriptions/{transcriptionId} |
SpeechApi | get_transcription | GET /speech/transcriptions/{transcriptionId} | GET /speech/transcriptions/{transcriptionId} |
SpeechApi | recognize | POST /speech/asr | POST /speech/asr |
SpeechApi | recognize_live | GET /speech/asrlive | GET /speech/asrlive |
SpeechApi | recognize_long_running | POST /speech/asrlongrunning | POST /speech/asrlongrunning |
SpeechApi | speech_health_check | GET /speech/healthcheck | GET /speech/healthcheck |
VoiceApi | get_voices_list | GET /voice/speakers | GET /voice/speakers |
VoiceApi | synthesize | POST /voice/tts | POST /voice/tts |
VoiceApi | voice_health_check | GET /voice/healthcheck | GET /voice/healthcheck |
- ASRRequestBodyData
- ASRRequestBodyURI
- ASRResponseBody
- ASRStatus
- AudioEncoding
- Error
- HealthCheckResponseBody
- LMStatus
- LanguageCode
- LanguageModelResult
- LanguageModelTrainRequestBody
- RecognitionAudioData
- RecognitionAudioURI
- RecognitionConfig
- SpeechRecognitionModel
- SpeechRecognitionResult
- SynthesisInput
- TTSAudioConfig
- TTSRequestBody
- TTSResponseBody
- TTSVoiceGender
- VoiceSelectionParams
- WordInfo
- Type: Bearer authentication (JWT)