Thumbnail

Audiotoolbox Plugin

Avatarptp

How To Add This Control To Your Project

  1. Make sure you have the latest version of EZ-Builder installed.
  2. Select the Install button below to download the archive file.
  3. Double click the downloaded archive file to execute installer.
  4. The installer will add this control to EZ-Builder.
  5. Load EZ-Builder and press the Project -> Add Control button from the menu.
  6. Choose the Audio category tab.
  7. Press the Audiotoolbox Plugin icon to add the control to your project.

*** Version 11 ***

Fix for new EZ-Builder version

*** Version 10 ***

ImportUWPVoices command restored

*** Version 9 ***

Bug Fix (UI sync monitor object waits indefinitely, solution pulse the monitor when leaving ez-builder) 

*** Version 8 ***

Build Fix 

*** Version 7 ***

Bug Fixes

*** Version 6 ***

Added Audio Session Tracking 

Audio Session Tracking mode can be configured to:
1) None
No tracking (default)

2) All
Tracks all audio sessions from all processes 

3) CurrentProcess
Tracks only the current process (EZ-Builder instance) audio sessions

User-inserted image


When the Audio Session Tracking is active (All / CurrentProcess) an EZ-Script variable $NumberOfActiveAudioSessions counts the number audio sessions are active (playing) on the default render (output) device.

User-inserted image


a value of zero means the render device is idle.

sample script:

Code:

#Say and do not wait
Say("How vexingly quick daft zebras jump!")

#wait 100 ms to allow the session counter variable to update
Sleep(100)

#at least 1 will be printed
print($NumberOfActiveAudioSessions)
#wait for #active audio sessions is zero (render/output device is idle)
WaitFor($NumberOfActiveAudioSessions=0)

Say("Jived fox nymph grabs quick waltz.")
Sleep(100)
print($NumberOfActiveAudioSessions)
WaitFor($NumberOfActiveAudioSessions=0)

print($NumberOfActiveAudioSessions)

*** Version 5

Cortana Voice Added

*** Version 4 : New Features

Code:


ControlCommand("AudioToolbox Plugin", "ImportUWPVoices")


The above script command allows EZ-Builder to access the UWP Voices.

How to use quick video:


*** Version 2 : New Features

Set Default Devices:

User-inserted image


Select the desired devices and press "Set Default" button

Set Default Devices via EZ-Script:

First configure the devices:

User-inserted image


script:

Code:


#SetDefault takes in consideration the device type (input or output)

#Set device 0 as default
ControlCommand("AudioToolbox Plugin", "SetDefault", 0)
SayWait("Hello Device 0")

#Set device 1 as default
ControlCommand("AudioToolbox Plugin", "SetDefault", 1)
SayWait("Hello Device 1")



*** Version 1

1) Start Capturing sound on device #1:

Code:


ControlCommand("AudioToolbox Plugin", "StartCapture", 1)


2) Set EZB #0 to listen to device #1:

Code:


#0 = EZB Controller Index (0..4)
#1 = Device Index (0..2)
#75 = Volume
ControlCommand("AudioToolbox Plugin", "StartEZBListen", 0, 1, 75)


2.1) Add EZB #1 to listen to device #1:

Code:


ControlCommand("AudioToolbox Plugin", "StartEZBListen", 1, 1, 100)


3) Stop EZB #0 to listen

Code:


ControlCommand("AudioToolbox Plugin", "StopEzbListen", 0)


4) Stop Capture on device #1

Code:


ControlCommand("AudioToolbox Plugin", "StopCapture", 1)


*****
Note:

You have the option to configure the 3 devices (device num: 0 .. 2):

User-inserted image

#7  
@Vincent.j
It's fixed. 

The bug was introduced in version #7 when solving the random crash/hang.

Thanks for feedback.
#8  
I'm having trouble updating to the new version, but I think it's because I still have the background processes running.. I'll reboot and try again.
#9  
OK! Got it updated and running.  
But, still having an issue.  I've installed the UK English Windows voices.  After running the plugin, Hazel is the only additional voice to show up in EZ Builder.
I also tried running the "ImportUMPVoices" script as shown on this page, but it returns an error.   I've attached snapshots below:

User-inserted image



User-inserted image
Australia
#10  
Thanks @ptp.
The background process bug is fixed.
#11  
@kaptaink_cg
I've restored the ImportUMPVoices feature