Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

FluffyBunnyFeet's profile on WallpaperFusion.com
Is there a way to have Voicebot play a system beep/tone?
I know of the following BFS functions:
. . BFS.VoiceBotActions.PlayRandomSound
. . BFS.VoiceBotActions.PlaySound
. . BFS.Audio.PlayFile
. . BFS.Audio.PlayWAV

But all of the above require providing an actual sound file as an argument.
I don't want the functionality of the macro to be dependent on whether the user has a file at the specified location, or such, I just want to play a system 'beep', also being able to specify the frequency and duration as arguments would be great.

Similar to Auto-IT's 'Beep' function:
===================

Code

Beep
Plays back a beep to the user.

Beep ( [Frequency = 500 [, Duration = 1000]] )

Parameters
Frequency [optional] The frequency of the beep in hertz. Can be anywhere from 37 through 32,767 (0x25 through 0x7FFF). Default is 500 Hz. 
Duration [optional] The length of the beep in milliseconds. Default = 1000 ms. 

Return Value
None. (Always returns 1 regardless of success.)

Related
SoundPlay

Example
; plays back a beep noise, at the frequency 500 for 1 second
Beep(500, 1000)
Dec 12, 2019  • #1
FluffyBunnyFeet's profile on WallpaperFusion.com
Think I found it:
Console.Beep( Frequency, Duration );

public static void Beep (int frequency, int duration);
Parameters
. frequency .. Int32 . . The frequency of the beep, ranging from 37 to 32767 hertz.
. duration .. Int32 . . The duration of the beep measured in milliseconds.

Example:
Console.Beep( 550, 75 );

Plays a 550Hz beep for 75ms.
Dec 12, 2019  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)