internal static NarrationEventArgs Create(AudioGesture gesture) { var args = new NarrationEventArgs(null, NarrationEventType.VocalGesture, null, 0, false, null) { Gesture = gesture }; return(args); }
public void SpeakEffect(AudioGesture effect) { var args = NarrationEventArgs.Create(effect); _lastNarrationEventArgs = args; _narrator.OnNarrationEvent(args); TelemetryMessage.Telemetry.TraceEvent(TraceEventType.Information, IdMapper.GetId <AudioGesture>(), effect.ToString()); }
byte[] IAudioProvider.GetAudioGesture(AudioTheme theme, AudioGesture gesture) { byte[] bytes = _audioThemeGestures[theme][gesture]; return(bytes); }