Reverie API Documentation
  • Reverie APIs
  • Reference
    • Localization API
      • Setup
      • API Reference
      • Supported Languages
      • Supported Domains
      • API Messages
    • Transliteration API
      • Setup
      • API Reference
      • Language Codes
      • Supporting Domains
      • API Messages
    • Text to Speech API
      • Setup
      • API Reference
      • SSML (Speech Synthesis Markup Language)
      • Phoneme Reference
      • API Default Behaviour
      • Supporting Speaker Code
      • Supporting Sampling Rate
      • Supporting Audio Format
      • API Messages
    • Speech to Text | Streaming API
      • Setup
      • API Reference
      • Language Codes
      • Supporting Audio Format
      • Supporting Domains
      • API Messages
  • Speech to Text | File API
    • Setup
    • API Reference
    • Language Codes
    • Supporting Audio Format
    • API Messages
  • Speech to Text | Batch API
    • Setup
    • API Reference
    • Language Codes
    • Sample Request Responses
    • Supporting Audio Format
  • Language Identification API
    • Sample Code
    • API Reference
    • Language Codes
  • Reverie Products
    • Swalekh
    • Vachak
Powered by GitBook
On this page
  • Request URL
  • Header
  • Request
  • Response
  1. Language Identification API

API Reference

Request URL

Verb/Method

POST

URL Elements

https://(hostname)

Sample URL

https://revgen.reverieinc.com/get_lang

Header

Header Name
Description
Value

Content-Type

The format of the data to be posted.

application/JSON

Request

Element
Type
Is Mandatory?
Description

text

String

Yes

Input text for language detection.

max_length

int

No

Length of the string to be processed for tokenization. It should be a number in the power of 2(i.e, 16 = 2^4, 32 = 2^5 ..). Max value could be 512.

Response

Element
Type
Description

lang

String

The API will return the detected language.

confidence

Float

The API will return the confidence score of detected language.

PreviousSample CodeNextLanguage Codes

Last updated 1 year ago