title: How to make bot understand that I'm talking hindi in webchat speech
body: <p>I'm trying to build a hindi(hi-IN) voice chatbot..the bot is working in english in webchat but can anyone help me how to make the bot understand that I'm speaking hindi and it is later converted to hindi text using cognitive speech service</p>
  <pre><code> &lt;script&gt;
          (async function () {
              const res = await fetch('https://directline.botframework.com/v3/directline/tokens/generate', {
                  method: 'POST',
                  headers: new Headers({
                      'Authorization': 'Bearer 5********'
                  })
              });
              const { token } = await res.json();
  
              const store = window.WebChat.createStore(
                  {},
                  ({ dispatch }) =&gt; next =&gt; action =&gt; {
                      if (action.type === 'DIRECT_LINE/CONNECT_FULFILLED') {
                          dispatch({
                              type: 'WEB_CHAT/SEND_EVENT',
                              payload: {
                                  name: 'webchat/join',
                                  value: { username: &quot;UserName&quot; }
                              }
                          });
                      }
                      return next(action);
                  }
              );
  
              window.WebChat.renderWebChat({
                  directLine: window.WebChat.createDirectLine({ token }),
                  webSpeechPonyfillFactory: window.WebChat.createBrowserWebSpeechPonyfillFactory(),
                  styleOptions: {
                      hideUploadButton: true,
                      bubbleBackground: '#cccccc',
                      bubbleBorder: 'solid 1px #E6E6E6'
                  },
                  store
              }, document.getElementById('webchat'));
  
              document.querySelector('#webchat &gt; *').focus();
          })().catch(err =&gt; console.error(err));&lt;/script&gt;
      ```
  </code></pre>