This commit is contained in:
2025-06-16 19:43:30 -04:00
parent e64e676b14
commit 2e1bdb2cfd

View File

@@ -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