public bool CreateVoiceCode() { swi = new Communications(); swi.APIkey = APIkey; swi.APIUrl = APIUrl; swi.MakeAcontentProfile(TTSmessageText.Trim(), DefaultLanguage); bool rslt = swi.CreateCustomVoiceTTSmessage(TTScampaignName, CallerID, autoRetry, autoReplay, detectAnsweringMachine); if (rslt) { VoiceCode = swi.VoiceCode; VoiceJsonData = swi.JsonData; } else { isError = swi.isError; ErrorMessage = swi.errorMessage; } return(rslt); }