diff --git a/Astrocore.Api/Controllers/TextToSpeechController.cs b/Astrocore.Api/Controllers/TextToSpeechController.cs index d275856..43e3d0b 100644 --- a/Astrocore.Api/Controllers/TextToSpeechController.cs +++ b/Astrocore.Api/Controllers/TextToSpeechController.cs @@ -35,8 +35,9 @@ namespace Astrocore.Api.Controllers var mp3File = doc.RootElement.GetProperty("URL").GetString(); var mp3Bytes = await client.GetByteArrayAsync(mp3File); var tempDir = Path.GetTempPath(); - var mp3Path = Path.Combine(tempDir, "tts.mp3"); - var dfpwmPath = Path.Combine(tempDir, "tts.dfpwm"); + var fileNameGuid = Guid.NewGuid().ToString(); + var mp3Path = Path.Combine(tempDir, $"{fileNameGuid}.mp3"); + var dfpwmPath = Path.Combine(tempDir, $"{fileNameGuid}.dfpwm"); await System.IO.File.WriteAllBytesAsync(mp3Path, mp3Bytes); var process = new Process