RTCMultiConnection Docs

RTCMultiConnection API Reference / "language" object

  1. Using "language" object; you can set target language in which text or voice should be auto converted.
  2. connection.language = 'ja'; // prefer Japanese
    connection.autoTranslateText = true;
    
    // you can use "e.data" and "e.original"
    connection.onmessage = function(e) {
       // e.data     ---- translated text
       // e.original ---- original text
    };
    
  3. List of supported languages (41):
    English
    connection.language = 'en';
    
    Arabic (العربية)
    connection.language = 'ar';
    
    Chinese (Simplified Han) [中文简体]
    connection.language = 'zh-CN';
    
    Chinese (Traditional Han) [中國傳統]
    connection.language = 'zh-TW';
    
    Russian (Русский)
    connection.language = 'ru';
    
    Dutch
    connection.language = 'de';
    
    French (Français)
    connection.language = 'fr';
    
    Hindi (हिंदी)
    connection.language = 'hi';
    
    Portuguese (Português)
    connection.language = 'pt';
    
    Spanish (Español)
    connection.language = 'es';
    
    Turkish (Türk)
    connection.language = 'tr';
    
    Nederlands
    connection.language = 'nl';
    
    Italiano
    connection.language = 'it';
    
    Polish (Polski)
    connection.language = 'pl';
    
    Roman (Român)
    connection.language = 'ro';
    
    Swedish (Svensk)
    connection.language = 'sv';
    
    Vietnam (Việt)
    connection.language = 'vi';
    
    Thai(ภาษาไทย)
    connection.language = 'th';
    
    Japanese (日本人)
    connection.language = 'ja';
    
    Korean (한국의)
    connection.language = 'ko';
    
    Greek (ελληνικά)
    connection.language = 'el';
    
    Tamil (தமிழ்)
    connection.language = 'ts';
    
    Armenian (հայերեն)
    connection.language = 'hy';
    
    Bosnian (Bosanski)
    connection.language = 'bs';
    
    Catalan (Català)
    connection.language = 'ca';
    
    Croatian (Hrvatski)
    connection.language = 'hr';
    
    Danish (Dansk)
    connection.language = 'dq';
    
    Esperanto
    connection.language = 'eo';
    
    Finnish (Suomalainen)
    connection.language = 'fi';
    
    Haitian Creole (Haitian kreyòl)
    connection.language = 'ht';
    
    Hungarian (Magyar)
    connection.language = 'hu';
    
    Icelandic
    connection.language = 'is';
    
    Indonesian
    connection.language = 'id';
    
    Latin (Latinum)
    connection.language = 'la';
    
    Latvija (Latvijas or lætviə)
    connection.language = 'lv';
    
    Macedonian (Македонски)
    connection.language = 'mk';
    
    Norwegian (norsk)
    connection.language = 'no';
    
    Serbian (српски)
    connection.language = 'sr';
    
    Slovak (Slovenský)
    connection.language = 'sk';
    
    Swahili (Kiswahili)
    connection.language = 'ws';
    
    Welsh (Cymraeg)
    connection.language = 'cy';
    

Relevant Resources

  1. connection.autoTranslateText
  2. connection.Translator

Want to ask a Question?

You can include your email for private conversation!