Exemplo n.º 1
0
        protected YandexTtsService(YandexTtsConfig config, IHttpServiceCaller httpServiceCaller)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }
            if (httpServiceCaller == null)
            {
                throw new ArgumentNullException(nameof(httpServiceCaller));
            }

            Config        = config;
            ServiceCaller = httpServiceCaller;
        }
Exemplo n.º 2
0
 public YandexTtsClient(YandexTtsConfig config, IHttpServiceCaller httpServiceCaller)
     : base(config, httpServiceCaller)
 {
 }
Exemplo n.º 3
0
 public YandexTtsClient(YandexTtsConfig config)
     : this(config, new HttpServiceCaller())
 {
 }