public static Command CreateStreamingSynthesisCommand() { var streamingSynthesisCommand = new Command("synthesize"); foreach (var option in CommandLineOptions.CreateStreamingSynthesisOptions()) { streamingSynthesisCommand.AddOption(option); } streamingSynthesisCommand.Handler = CommandHandler .Create <string, string> ( (synthesizeText, audioNAme) => { _client.StreamingSynthesize(synthesizeText, audioNAme).Wait(); } ); return(streamingSynthesisCommand); }