UnaAccessException no autorizada al inicializar SpeechSynthesizer
Estoy usando Microsofts SpeechSynthesizer para crear una salida de audio para mi aplicación de Windows Phone. Yo uso este codigo
private async void TextToSpeech_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
SpeechSynthesizer synth = new SpeechSynthesizer();
await synth.SpeakTextAsync("You have a meeting with Peter in 15 minutes.");
}
Me sale esta excepción:
{System.UnauthorizedAccessException: Access is denied.
at Windows.Phone.Speech.Synthesis.SpeechSynthesizer..ctor()
at NerdQuiz.Question.<TextToSpeech_Tap>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)}
Me enteré de que el error se produce en
new SpeechSynthesizer();