All URIs are relative to /v1
Method | HTTP request | Description |
---|---|---|
getLanguageModelById | GET /speech/languagemodels/{languageModelId} | GET /speech/languagemodels/{languageModelId} |
getLanguageModelList | GET /speech/languagemodels | GET /speech/languagemodels |
trainLanguageModel | POST /speech/languagemodels | POST /speech/languagemodels |
GET /speech/languagemodels/{languageModelId}
Retrieving the status of a language model with specified languageModelId. A language model is ready to use when its status is trained.
farsava-cli getLanguageModelById languageModelId=value
Name | Type | Description | Notes |
---|---|---|---|
languageModelId | string | Id of the language model. | [default to null] |
- Content-Type: Not Applicable
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GET /speech/languagemodels
Returns list of user available language models. Each user can access general language models plus their own custom trained language models.
farsava-cli getLanguageModelList
This endpoint does not need any parameter.
- Content-Type: Not Applicable
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
POST /speech/languagemodels
Train a custom language model using pharases provided by user. Returning a languageModelId for accessing the language model later and using this custom language model to transcribe audios. Using custom language models will boost accuracy for specific keywords/phrases and can be used for a domain-specific speech recognition.
farsava-cli trainLanguageModel
Name | Type | Description | Notes |
---|---|---|---|
languageModelTrainRequestBody | LanguageModelTrainRequestBody | A json object including a name and a corpora. Corpora is a array of text data to train a custom model. This text data can be keywords/phrases. All values in the array must be a string. Name is an arbitary string you set for the custom language model name. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]