Langki Configuration
Langki templates can be used for various languages, but users need to set up their target languages before using the template.
Text to speech
To set the language for TTS, first follow the link to choose a voice you like, then copy the voice code into the template as shown below.


Set autoplay
to true if you want the AI to automatically read the message after responding.
The rate
setting allows you to adjust the reading speed.
Speech analysis
To set the language for speech analysis, you need to set the locale code as follows.

The list of supported languages and their locale codes:
Language & Region | Locale Code |
---|---|
Arabic (Egypt) | ar-EG |
Arabic (Saudi Arabia) | ar-SA |
Catalan | ca-ES |
Chinese (Cantonese, Traditional) | zh-HK |
Chinese (Mandarin, Simplified) | zh-CN |
Chinese (Taiwanese Mandarin, Traditional) | zh-TW |
Danish (Denmark) | da-DK |
Dutch (Netherlands) | nl-NL |
English (Australia) | en-AU |
English (Canada) | en-CA |
English (India) | en-IN |
English (United Kingdom) | en-GB |
English (United States) | en-US |
Finnish (Finland) | fi-FI |
French (Canada) | fr-CA |
French (France) | fr-FR |
German (Germany) | de-DE |
Hindi (India) | hi-IN |
Italian (Italy) | it-IT |
Japanese (Japan) | ja-JP |
Korean (Korea) | ko-KR |
Malay (Malaysia) | ms-MY |
Norwegian Bokmål (Norway) | nb-NO |
Polish (Poland) | pl-PL |
Portuguese (Brazil) | pt-BR |
Portuguese (Portugal) | pt-PT |
Russian (Russia) | ru-RU |
Spanish (Mexico) | es-MX |
Spanish (Spain) | es-ES |
Swedish (Sweden) | sv-SE |
Tamil (India) | ta-IN |
Thai (Thailand) | th-TH |
Vietnamese (Vietnam) | vi-VN |
Shortcut is the key that you can quickly press instead of using the mouse to click the recording button.
Suggested responses
Users can set up suggested responses by following this structure
config.suggestions = [
"response 1",
"response 2",
"response 3",
"response 4",
]
Translate and respond in a specific language
You can also configure the language for the translation function as follows:


Alternatively, for convenience, you can also ask the AI to respond entirely in a specific language directly in the Prompt section.
Darkmode and lightmode
If you're using Anki in dark mode, you can also switch the chatbot to dark mode.


API key for subscribers
Running Langki’s features costs money on the server side. While each request isn’t that expensive on its own, the total can grow quickly as more users start using the tool. That’s why a daily quota comes into place.
Subscribers will receive an API key to unlock this quota. The key is embedded directly in the Langki template so it works fine in both Anki desktop and Ankiweb, and subscribers have to remove the key before sharing their decks.
The add-on helps conveniently add or remove the API key from all Langki templates in the profile.
You may use the API key across devices; however, do not share it with others. The key will be revoked if misuse by multiple individuals is detected.