Author Topic: "Overwrite file" option for 'Captured Audio' Action  (Read 2365 times)

SemlerPDX

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 261
  • Upstanding Lunatic
    • My AVCS Homepage
"Overwrite file" option for 'Captured Audio' Action
« on: April 19, 2023, 09:32:13 PM »
First wanted to say how awesome this action is - never used it before recently, and it's just great!! I've been sending dictation audio to OpenAI's Whisper transcriber (and translator) and while WSR hears garbage, OpenAI returns perfect English text from audio file of exactly what I said.  Cheers, Gary! This is a great action!!



One suggestion I think people other than just me could make use of would be to allow it to overwrite an existing file of the provided output file name, like a checkbox to allow it but not override the default behavior of throwing an error like this:


I could definitely see why people may not want it overwriting audio files willy nilly, but a checkbox for the option would be greatly appreciated by at least me, so I don't need to call an inline before this action with:
Code: [Select]
if (System.IO.File.Exists(filePath))
{
   System.IO.File.Delete(filePath);
}