Attached you will find a profile that gives you the ability to record and play .wav audio files through VoiceAttack (v1.7 and later). One of the applications for this functionality is an audio journal for documenting whatever you want with your voice (like making a "captain's log"). The profile leverages a number of C# inline functions, and most notable are the functions that perform the recording, playback, and file name retrieval. The profile is included in a .vax package to provide a default directory in your VA Apps folder for storing the audio files.
Detailed descriptions of each VA command action and inline function line are provided. Here is a breakdown of the four commands in the profile:
- Record Audio: Starts and stops audio recording. There are options for specifying the .wav file name, storage location, audio quality, and name incrementing. Name incrementing lets you create new files with incremented names (as opposed to continuously overwriting an existing file) with each new recording. You have the ability to cancel (and not save) an audio recording with a key press or by pressing the "Stop Commands" button. You can also specify if you want to have a secondary key press trigger the start of audio recording (instead of recording initiating after the command is launched). By default commands are blocked while recording to prevent actions from executing unintentionally.
- Play Audio: Plays back the most recent .wav audio file in a specified directory.
- Stop Audio Playback: Stops playback of a .wav audio file. Playback may also be stopped by simply pressing the "Stop Commands" button.
- Delete Audio: Deletes the most recent .wav audio file in a specified directory.
Special thanks goes to Pfeil for providing helpful suggestions for improving the command and inline function content and efficiency.
Please let me know if you run into any issues with the profile.
Support This and Future EffortsIf you find this profile useful, please consider buying me a cup of coffee. Thank you for your support!
Cheers!