Пример #1
0
        public IActionResult Get()
        {
            // var result = new [] {
            //     new { FirstName = "John", LastName = "Doe" },
            //     new { FirstName = "Mike", LastName = "Smith" }
            // };
            var clipboard = Dependencies.CheckoutTextReader(PlatformEnum.MacOS);
            var speech    = Dependencies.CheckoutTts(PlatformEnum.MacOS);
            var lines     = clipboard.GetLines();

            var result = new [] {
                new { Clipboard = lines[0] }
            };

            new Task(() => {
                speech.Speak(lines[0]);
            }).Start();

            return(Ok(result));
        }