public PreviewController(IConfiguration config, ISourceService sourceService, ITextService textService) { _sourceService = sourceService; _textService = textService; var yandexUrl = config["NotificallSettings:YandexUrl"]; var yandexApiKey = config["NotificallSettings:YandexApiKey"]; var defaultLanguage = config["NotificallSettings:DefaultLanguage"]; _voiceService = new VoiceService(yandexUrl, yandexApiKey, defaultLanguage, AudioFormat.mp3, AudioQuality.lo); _textConverter = new TemplateToTextConverter(); }
public EventHandler(IEventManager eventManager, ISourceManager sourceManager, ITextManager textManager, ICallManager callManager, IVoiceService voiceService, IBlobManager blobManager, ITelephonyHandler telephonyHandler) { _eventManager = eventManager; _sourceManager = sourceManager; _textManager = textManager; _callManager = callManager; _voiceService = voiceService; _blobManager = blobManager; _telephonyHandler = telephonyHandler; _textConverter = new TemplateToTextConverter(); _audioConverter = new AudioFileConverter(); }