Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
HMI Documentation
GetLanguage

GetLanguage

Type
Function
Sender
SDL
Purpose
Get the current TTS language.

Request

Parameters

This RPC has no additional parameter requirements

Response

Parameters

Name Type Mandatory Additional
language Common.Language true

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 110,
  "jsonrpc" : "2.0",
  "method" : "TTS.GetLanguage"
}

Example Response

{
  "id" : 110,
  "jsonrpc" : "2.0",
  "result" :
  {
    "language" : "DE-DE",
    "code" : 0,
    "method" : "TTS.GetLanguage"
  }
}

Example Error

{
  "id" : 110,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 22,
    "message" : "During the API call the unknown error has occurred",
    "data" :
    {
      "method" : "TTS.GetLanguage"
    }
  }
}
View on GitHub.com
Previous Section Next Section