services/speech_to_text/v1.js
function overrideCheck(msg) {
      if (msg.srclang){
        var langCode = payloadutils.langTransToSTTFormat(msg.srclang);
        config.lang = langCode;
      }
      return Promise.resolve();
    }
function overrideCheck(msg) {
      if (msg.srclang){
        var langCode = payloadutils.langTransToSTTFormat(msg.srclang);
        config.lang = langCode;
      }
      return Promise.resolve();
    }
function overrideCheck ( msg ) { if ( msg . srclang ) { var langCode = payloadutils . langTransToSTTFormat ( msg . srclang ) ; config . lang = langCode ; } return Promise . resolve ( ) ; }
Allow the language to be overridden through msg.srclang, no check for validity
Allow the language to be overridden through msg . srclang no check for validity