title: Web App Bot - .NET Text to Speech not working
body: <p>Working with the Azure Web App Bot SDK v3.
  I try to output text and speech at the same time.</p>
  
  <pre><code>        messageActivity.Text = information;
          messageActivity.Speak = information;
          messageActivity.Locale = "de-DE";
  
          await context.PostAsync(messageActivity);
  </code></pre>
  
  <p>Cortana nor Direct Line nor the Bot emulator does speak something out. However, the Bot does receive the text to speak out loud.</p>
  
  <p><a href="https://i.stack.imgur.com/FFNWy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FFNWy.png" alt="enter image description here"></a></p>
  
  <p>In addition, even</p>
  
  <pre><code>await context.SayAsync(information, information);
  </code></pre>
  
  <p>isn't working. I seems like there is an issue with the localization or something. I ran out of ideas.</p>
  
  <p>Direct line is configured as following</p>
  
  <pre><code>  const speechOptions = {
      speechRecognizer: new CognitiveServices.SpeechRecognizer({ subscriptionKey: 'SUB_KEY_XXX', locale: 'de-DE' }),
      speechSynthesizer: new CognitiveServices.SpeechSynthesizer({
        gender: CognitiveServices.SynthesisGender.Male,
        subscriptionKey: 'SUB_KEY_AGAIN',
        voiceName: 'Microsoft Server Speech Text to Speech Voice (de-DE, Michael)'
      })
    };
  </code></pre>
  
  <p>Sidenote: Voice to text works flawlessly.</p>
  
  <p>EDIT: Direct Line does work now. While I was using a iFrame for demonstration purposes, the voice output only works if the input also was provided via voice input. <a href="https://github.com/Microsoft/BotFramework-WebChat/issues/1179" rel="nofollow noreferrer">However, you can change that behaviour as well</a>.</p>