title: How to use Google Speech to Text Feature with Microsoft Bot Framework Chatbot ?
body: <p>I want to use, Google Speech to Text feature with my Microsoft Bot Framework based Chatbot, 
  Regular implementation of Microsoft BorFramework based bot is as : </p>
  
  <pre><code>const params = BotChat.queryParams(location.search);
      const user = {
          id: params['userid'] || 'userid',
          name: params['username'] || 'username'
      };
      const bot = {
          id: params['botid'] || 'botid',
          name: params['botname'] || 'botname'
      };
      window.botchatDebug = params['debug'] &amp;&amp; params['debug'] === 'true';
  
      const speechOptions = {
          speechRecognizer: new CognitiveServices.SpeechRecognizer({ subscriptionKey: '0000SPEECHKEY00000000' }),
          speechSynthesizer: new CognitiveServices.SpeechSynthesizer({
              gender: CognitiveServices.SynthesisGender.Female,
              subscriptionKey: '0000SPEECHKEY00000000',
              voiceName: 'Microsoft Server Speech Text to Speech Voice (en-US, JessaRUS)'
          })
      };
      BotChat.App({
          bot: bot,
          locale: params['locale'],
          resize: 'detect',
          // sendTyping: true,    // defaults to false. set to true to send 'typing' activities to bot (and other users) when user is typing
          speechOptions: speechOptions,
          user: user,
          directLine: {
              domain: params['domain'],
              secret: params['s'],
              token: params['t'],
              webSocket: params['webSocket'] &amp;&amp; params['webSocket'] === 'true' // defaults to true
          }
      }, document.getElementById('BotChatGoesHere'));
  </code></pre>