Speaker Volume revSetSpeechVolume 100 -- Full volume

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Thomas seewald
Posts: 7
Joined: Mon Sep 26, 2016 12:06 pm

Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by Thomas seewald » Mon Sep 26, 2016 12:14 pm

Hello, i think revSetSpeechVolume 100 is not full volume, but 100% of actual Volume.
This way it can not "speak" louder than the current music.

This is concept or error?
If concept, suggestions are welcome to solve the problem without platform specific tricks as applescript.

Thank you

TS

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by jmburnod » Mon Sep 26, 2016 12:46 pm

Hi Thomas,
Welcome to this forum,
I think revSetSpeechVolume 100 is not full volume, but 100% of actual Volume.
Yes. You're right
This is concept or error?
Sorry I don't know
Best regards
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by dunbarx » Mon Sep 26, 2016 3:07 pm

Hi.

What is the difference between "full" volume" and "maximum" volume?

Surely you computer does not have "11" as the maximum volume, as purported by the amplifier of the rock band "Spinal Tap".

Craig Newman

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by jmburnod » Tue Sep 27, 2016 9:29 pm

Hi Craig
From the doc :
"The higher the volume, the louder LiveCode will speak. Setting the volume to 0 will cause LiveCode to speak silently, and setting the volume to 100 will result in the maximum possible speech loudness"

If I understand this correctly, the doc is wrong. That is not the maximum possible, but as said Thomas 100 % of the current volume.

I remember it was possible to do something like that with hypercard or supercard

Code: Select all

on startup
   put the soundvolume into tOldSndVolume
end startup

on quit
   set the soundvolume to tOldSndVolume
end quit
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by dunbarx » Tue Sep 27, 2016 10:39 pm

Jean-Marc.

But what is the difference between the maximum volume and the full volume? I still don't see where you can set the volume greater than that settable in the system preferences.

And it must have been Supercard, because I do not remember a native property "soundVolume" in HC.

So did that program have two "volume" properties?

Craig

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by SparkOut » Wed Sep 28, 2016 6:59 am

@Craig, iiuc, the (general) sound volume on the computer may be set to 70% of the maximum system volume.

That volume level becomes the maximum possible to use with speech output. Given the above, if you set revSetSpeechVolume 70, your speech will sound at 70% of 70% of the max system volume.

Which is what I personally would expect. I would not want to be using my computer with the sound low down so as not to cause a disturbance and then have it overriding my consideration by shouting something out at loudest volume.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by dunbarx » Wed Sep 28, 2016 2:42 pm

Sparkout.

Ah, now I see what everyone means.

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Speaker Volume revSetSpeechVolume 100 -- Full volume

Post by jmburnod » Mon Oct 03, 2016 9:35 am

@Craig
And it must have been Supercard, because I do not remember a native property "soundVolume" in HC.
Yes. :D
All the best
Jean-Marc
https://alternatic.ch

Post Reply

Return to “Talking LiveCode”