Getting system sound level

I’m creating a reading script for my grandfather (who lost eye sight recently) and I need your help.

I got the applescript to select the text on the book (on iBooks for OS X) and make it reading, but I need a system to detect that the reading of the page has finished, so that I can make the script to turn to next page and let it start reading the new page again.

I could do it by hand, page by page, but that would take way too long.

Is there a way to do this?

My code so far (for now I change the page by pressing enter):

select_and_speak()

on select_and_speak()
	tell application "Finder" to activate
	delay 0.5
	tell application "iBooks" to activate
	delay 8
	tell application "Extra Suites"
		ES move mouse {302, 833}
		delay 1
		ES move mouse {467, 844}
		delay 1
		ES click mouse
	end tell
	delay 10
	try
	on error
		tell application "iBooks"
			display dialog "Press Enter when you want to go to the next page." buttons {"Stop Reading", "Next"} default button 2 cancel button 1 with icon 1
		end tell
		tell application "System Events"
			keystroke "t" using {command down, option down, shift down}
			return 0
		end tell
	end try
	tell application "System Events"
		keystroke "t" using {command down, option down, shift down}
		key code 116
	end tell
	select_and_speak()
end select_and_speak

Hi mftetsudou,

Your post doesn’t seem to match your title, but if you want to get the volume:

set volume_settings to get volume settings
output volume of volume_settings

gl,
kel