Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Pudd

Pages: [1]
1
XBMC (Old board see 'KODI' above) / Re: XBMC.Softmute not softmuting
« on: August 12, 2011, 06:38:29 PM »
Heh, I guess after a while all the versions just merge in to one!

I'm more than happy to try and break... I mean, test... VC, and if I do, I'll be sure to let you know!

2
XBMC (Old board see 'KODI' above) / Re: XBMC.Softmute not softmuting
« on: August 12, 2011, 02:32:23 PM »
I didn't know there were updates lurking in the forums....  Just setting that up now, see if it makes a difference.

Using 0.895 and the SoftMute works :D...  Although, for whatever reason it doesn't like my previous commands so it looks like I'll have to rebuild them.  If I try and load my old Voice Commands XML it just crashes VoxCommando.  But, that's no big issue, now I'm getting my hands dirty it'll only take me a half hour to recreate those commands. :D

Thank you for all the help guys, it seems 0.895 was the answer to my problem.

When I used getvolume in 0.892 it wouldn't return anything.  But in 0.895 it returns "<html><li>XX</html>" where XX is the current volume.  Perhaps I set something up wrong or differently between the installations, but it's certainly working fine now.  :)

3
XBMC (Old board see 'KODI' above) / Re: XBMC.Softmute not softmuting
« on: August 12, 2011, 01:34:51 PM »
I like to be an awkward one :D

Thank for the welcome JitterJames, and congratulations on an excellent bit of software that's become central to my HTPC!

I've double checked my audio set up, and I'm using a standard analogue output.  The SetVolume command works perfectly, it is just the SoftMute that doesn't.  Is there any difference to the way that XBMC.Send SetVolume(20) and XBMC.SoftMute 20 work?

I've simplified what I'm trying to do just to try and get the hang on it.  New command is an edited volume change with a read back using TTS and is built like this:

XBMC.SoftMute 20
TTS.SpeakSync Volume set to {1}
XBMC.SoftUnMute
XBMC.SendSetVolume({1})

The volume changes to what it should be using the XBMC.Send method, but it doesn't SoftMute or SoftUnMute still.

If I change the softmute to a setvolume(20) it has the intended effect.  But it's only useful because I'm setting the volume in this command.

Question about error handling:  What happens if XBMC.SoftMute can't get the current volume?  Does it abandon the process?  I've noticed that I can't use XBMC.Send GetVolume, whether that's related or not, I don't know.

As for a command that just softmutes, has no effect and a cursory glance doesn't look like anything's logged by XBMC, but I'll need to copy the logs away from the HTPC at a later date to properly look through them.

Again, cheers for the help.

4
XBMC (Old board see 'KODI' above) / Re: XBMC.Softmute not softmuting
« on: August 12, 2011, 12:26:20 PM »
The only other work around I was thinking of playing with (after my current movie) would be to getVol, reduce the volume, TTS, set volume back to original...  I'll have a play around and if I come up with anything, I'll be sure to post it.

Cheers for the help so far :)

Update:
Just been fiddling, I can't seen to get the volume using XBMC.Send getvolume, but that may be because I'm already using one variable (getcurrentlyplaying).  Is it possible to getcurrentlyplaying, regex the album from it, save that to one variable, get the volume, save that to a second variable, reduce the volume to 20% while TTS says "You're listening to {var.VarAlbum}" and once TTS is done, then setVolume to {var.VarVolume} ?

5
XBMC (Old board see 'KODI' above) / Re: XBMC.Softmute not softmuting
« on: August 12, 2011, 12:11:01 PM »
I've given that a go, but it hasn't worked unfortunately. :(

Again, the main window log says it's successful, and the timing is correct too (it won't SoftUnMute until after the TTS has completed).

Does SoftMute rely on EventGhost by any chance?

Thank you for your time on this :)

6
XBMC (Old board see 'KODI' above) / Re: XBMC.Softmute not softmuting
« on: August 12, 2011, 11:50:29 AM »
Thanks for the welcome :)

Sorry, I forgot to mention that.

All other commands are working fine (that I've tested).  Even XBMC.SoftMute is green in the main window as though it was successful.

7
XBMC (Old board see 'KODI' above) / XBMC.Softmute not softmuting
« on: August 12, 2011, 10:49:59 AM »
I've got myself a nice TTS voice but I can't hear it over XBMC.  So, I looked around and excellent, there's a function that fits my needs exactly:  XBMC.SoftMute.

...  Except it isn't working.

Just to make sure I'm not being an idiot (which has been known), I've set XBMC.SoftMute with a parameter of 20 as the first action in a sequence, with XBMC.SoftUnMute as the last action.  Unfortunately, all the commands seem to be working, but the SoftMute isn't lowering the volume while the TTS is speaking.  I've tried using both TTS.Speak and TTS.SpeakSync in case it's SoftUnMuting (if that's a word?  It is now) too quickly.

The commands are as follows for one such example:
XBMC.SoftMute 20
XBMC.Send getcurrentlyplaying
Results.RegEx album:(,*)
TTS.SpeakSync The album is, {match.1}
XBMC.SoftUnMute

VoxCommando version: 0.892
Windows 7 with XBMC 10.1

Pages: [1]