Perform language identification

A simple HTTP service for submitting audio or text to determine the language within. For audio, the service returns a list of languages for each speech segment along with a confidence score. For text, the service returns a list of languages indentified with a confidence score for each. Data to be analyzed is provided within the body of the HTTP POST. It is important the that “Content-Type” is set correctly so that the correct engine is invoked for analysis. For audio, most popular audio and video file formats like the following are supported. mp3 - audio/mpeg, m4a - audio/m4a , ogg - audio/ogg , flac - audio/x-flac , wav - audio/x-wav or audio/wav. For text, only plain utf-8 encoded test is supported. txt - text/plain

User request completion callback

When submitting a request, an optional HTTP callback can be specified which will be invoked when the request completes or fails. The callback is an HTTP POST to the exact URL provided. Only one attempt is made to reach the URL provided. The contents of the HTTP request match the response from the Query language identification request status and retrieve results method.

Headers

  • x-requestid - Contains the request_id received when the request was submitted
  • x-status - One of the following indicating the status of the request:
StatusDescription
“Completed”The request has finished processing and the user callback, if provided has been called.
"Failed"An error occurred processing the request.
  • x-error - If the request failed, this would contain an error message.
  • x-userdata - This will contain the user data supplied with the original request.

Body

If the status is “Completed” the body of the request contains language id results. If the status is “Failed” the body of the request contains the same error message provided in the “x-error” header.

Details

Language
Authorization
Header
Click Try It! to start a request and see the response here!