Author Topic: Audio Recorder & Playback profile  (Read 8724 times)

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Audio Recorder & Playback profile
« on: May 07, 2018, 10:52:38 AM »
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 Efforts
If you find this profile useful, please consider buying me a cup of coffee. Thank you for your support!
 


Cheers! :)
« Last Edit: June 02, 2020, 09:39:55 PM by Exergist »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Audio Recorder & Playback profile
« Reply #1 on: May 07, 2018, 12:13:34 PM »
The next beta will have the captured audio feature (ui and proxy) I had mentioned that is currently embedded in VA (but not exposed).  I hope that doesn't step on your toes again.

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: Audio Recorder & Playback profile
« Reply #2 on: May 07, 2018, 12:28:53 PM »
lol no that's fine, I'm always in favor of "native" solutions over add-ons :)

It will be interesting to try out. This profile basically opens a running channel for recording audio. I'm going to guess that the "captured audio" will be limited by the Recognition settings. I.e., if a user pauses during recording and then continues speaking perhaps all of the content won't be picked up?

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: Audio Recorder & Playback profile
« Reply #3 on: May 14, 2018, 11:43:46 AM »
The new 'Captured Audio' feature in v1.7.0.5 is quite neat. A lot of the functionality I created in the recording Gary took care of in a slick way.

The recorder still has a place though since the 'Captured Audio' is only limited to phrases that VA interprets. So if you pause while speaking the captured audio may be broken up into pieces.

@Gary is there a way to have VA just open an audio channel for recording so the functionality in this Recorder could be made 100% native?

Andrew U.K.

  • Newbie
  • *
  • Posts: 3
Re: Audio Recorder & Playback profile
« Reply #4 on: March 31, 2020, 04:56:06 AM »
This is exactly what I'm after. Obviously VA has been updated since this post but I have searched and can't find away of doing it.

I'm a complete newbie using VA and have just played about with it and used simple commands.

I would like to record my audio, and be able to replay the audio file. Like an audio memo.

I can find Speech to text that then reads back the text, but I'd just like to here what I said first hand.

Cheers
Andrew

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4786
  • RTFM
Re: Audio Recorder & Playback profile
« Reply #5 on: March 31, 2020, 11:13:00 AM »
...have you tried the profile attached to the first post?


The method Gary was referring to allows you to hear what the speech recognition engine heard while it was attempting recognition, however that means you have no real control over when the recording starts and stops (E.G. if you hesitate while speaking, and the speech recognition engine interprets that as the end of a sentence, the recording will cut off).

Andrew U.K.

  • Newbie
  • *
  • Posts: 3
Re: Audio Recorder & Playback profile
« Reply #6 on: April 01, 2020, 09:29:19 AM »
Thanks for replying here and Discord.

I couldn't work out how to import a .vax profile.

« Last Edit: April 01, 2020, 12:15:40 PM by Andrew U.K. »

Bailey

  • Newbie
  • *
  • Posts: 7
Re: Audio Recorder & Playback profile
« Reply #7 on: April 24, 2020, 01:32:29 AM »
Having a good time with this profile. Thank you.
~Bailey