diff --git a/Astrocore.Api/Controllers/TextToSpeechController.cs b/Astrocore.Api/Controllers/TextToSpeechController.cs index d81ef2a..d275856 100644 --- a/Astrocore.Api/Controllers/TextToSpeechController.cs +++ b/Astrocore.Api/Controllers/TextToSpeechController.cs @@ -23,7 +23,7 @@ namespace Astrocore.Api.Controllers public async Task Index(string message) { var client = _httpClientFactory.CreateClient(); - var body = $"msg={Uri.EscapeDataString(message)}&lang=Gwyneth&source=ttsmp3"; + var body = $"msg={Uri.EscapeDataString(message)}&lang=Geraint&source=ttsmp3"; var request = new HttpRequestMessage(HttpMethod.Post, "https://ttsmp3.com/makemp3_new.php") { Content = new StringContent(body, Encoding.UTF8, "application/x-www-form-urlencoded") diff --git a/Astrocore.Api/Program.cs b/Astrocore.Api/Program.cs index 7cf3432..2ef370d 100644 --- a/Astrocore.Api/Program.cs +++ b/Astrocore.Api/Program.cs @@ -16,18 +16,11 @@ namespace Astrocore.Api var app = builder.Build(); - // Configure the HTTP request pipeline. - if (app.Environment.IsDevelopment()) - { - app.UseSwagger(); - app.UseSwaggerUI(); - } - + app.UseSwagger(); + app.UseSwaggerUI(); app.UseHttpsRedirection(); app.UseAuthorization(); - app.MapControllers(); - app.Run(); } }