updated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user