Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

AudioEndpoint

Questions and comments specific to a particular plugin should go here.
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: AudioEndpoint

Post by skribb »

could this possibly be used to play audio from EG thru a specific device? I'd like to be able to play audio from the speakers even tho headphones is set as default device/render. :D
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: AudioEndpoint

Post by Sem;colon »

skribb wrote:could this possibly be used to play audio from EG thru a specific device? I'd like to be able to play audio from the speakers even tho headphones is set as default device/render. :D
No, you can just change the default device.
If you like my work, Image me a drink :wink:
yasuo
Posts: 26
Joined: Sun Aug 11, 2013 2:34 pm

Re: AudioEndpoint

Post by yasuo »

Sorry for the late reply - i missed to subscribe this topic initially and did not read your answer.
i created two feature requests
- define output device when playing sound
and
- 433MhZ output plugin

i think the latter may be to abstract - depending on how expensive a regular, EG-compatible 433Mhz transmitter is (do you know of any?)...
but the first one should benefit many people since there could be much reasons to play sounds on certain soundcards: maybe you want an acoustic signal as Doorbell but you dont want that Sound on your full Gained 5.1 theater system XD

my workaround is to rename .wav to .433 and link them to a portableapps.com Version of mpc wich defaults to my USB soundcard. Another dirty and easy hack ;-)
Sem;colon wrote:Hi Yasuno,

that's an interesting use for a sound card :)
Wouldn't this work with IR signals as well?

At the moment I'm not aware of any possibility to play a specific audio file on a specific output device with EventGhost without a 3rd party tool.
Unfortunately it's not easy to program this (it is possible though), Pako did something similar as he created the intelliSpeech plugin.

What you can do: On most media player you can set a specific output, you can then use EventGhost to open audio files with that media player

You should make a post for that idea (using a soundcard as Transceiver) in the Feature Request Forum.
Me or someone else may pick it up some day and create a plugin for that.
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: AudioEndpoint

Post by skribb »

yasuo wrote:Sorry for the late reply - i missed to subscribe this topic initially and did not read your answer.
i created two feature requests
- define output device when playing sound
and
- 433MhZ output plugin

i think the latter may be to abstract - depending on how expensive a regular, EG-compatible 433Mhz transmitter is (do you know of any?)...
but the first one should benefit many people since there could be much reasons to play sounds on certain soundcards: maybe you want an acoustic signal as Doorbell but you dont want that Sound on your full Gained 5.1 theater system XD

my workaround is to rename .wav to .433 and link them to a portableapps.com Version of mpc wich defaults to my USB soundcard. Another dirty and easy hack ;-)
Sem;colon wrote:Hi Yasuno,

that's an interesting use for a sound card :)
Wouldn't this work with IR signals as well?

At the moment I'm not aware of any possibility to play a specific audio file on a specific output device with EventGhost without a 3rd party tool.
Unfortunately it's not easy to program this (it is possible though), Pako did something similar as he created the intelliSpeech plugin.

What you can do: On most media player you can set a specific output, you can then use EventGhost to open audio files with that media player

You should make a post for that idea (using a soundcard as Transceiver) in the Feature Request Forum.
Me or someone else may pick it up some day and create a plugin for that.

Cool, thanks for the tips
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
mikeparkie
Posts: 17
Joined: Wed Jul 30, 2014 9:53 am

Re: AudioEndpoint

Post by mikeparkie »

Can this be used to keep an audio endpoint alive? I have some USB speakers which go to sleep every 10 minutes, very annoying as I have to turn them back on manually each time.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: AudioEndpoint

Post by Sem;colon »

I don't think so... But you could use the SchedulGhost plugin to in combination with the EventGhost "play audio file" action to play a short quiet sound every 5 minutes to keep it awake, I guess.
If you like my work, Image me a drink :wink:
mikeparkie
Posts: 17
Joined: Wed Jul 30, 2014 9:53 am

Re: AudioEndpoint

Post by mikeparkie »

Thanks, I'll give it a go :D

Update, if anyone else was interested.

Added a blank sound (which makes a slight crackle). So I added a mute before the sound plays and then removed the mute after it's done. Works perfectly for me.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Macro Name="Speaker: Keep Alive" Expanded="True">
        <Event Name="SpeakerKeepAlive." />
        <Action>
            SchedulGhost.EnableSchedule(u'SpeakerKeepAlive')
        </Action>
        <Action>
            System.MuteOn(u'Speakers (KEF EGG)')
        </Action>
        <Action>
            System.PlaySound(u'D:\\Backups\\Sounds\\Blank.wav', 1, False)
        </Action>
        <Action>
            System.MuteOff(u'Speakers (KEF EGG)')
        </Action>
    </Macro>
</EventGhost>
Last edited by mikeparkie on Sat Nov 12, 2016 12:56 pm, edited 1 time in total.
yasuo
Posts: 26
Joined: Sun Aug 11, 2013 2:34 pm

Re: AudioEndpoint

Post by yasuo »

Sem;colon wrote:I don't think so... But you could use the SchedulGhost plugin to in combination with the EventGhost "play audio file" action to play a short quiet sound every 5 minutes to keep it awake, I guess.
Hmmm but how will you select the soundcard to play onto? Asuming the usb soundcard is not the default soundcard....
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: AudioEndpoint

Post by Sem;colon »

New version!

v2.1.0:
-Added action "Get Mute": Returns True if a specific audio endpoint is muted, and False if not
-Added action "Set Mute": Set mute for a specific audio endpoint (ON, OFF or TOGGLE)
-Added action "Get Volume": Returns the current volume of a specific audio endpoint
-Added action "Set Volume": Set the volume for a specific audio endpoint. Can be absolute or relative
-Events are generated if the volume changes on any audio endpoint
-Events are generated if the mute state changes on any audio endpoint
-Updated AudioEndpointControl by jonib with the latest sources
-Plugin is now in the .egplugin format for easy installation

get it from the first post! :)
If you like my work, Image me a drink :wink:
yasuo
Posts: 26
Joined: Sun Aug 11, 2013 2:34 pm

Re: AudioEndpoint

Post by yasuo »

Cool! Thanks for the Update!
raccoon32
Posts: 3
Joined: Sun Dec 11, 2016 4:33 pm

Install issues

Post by raccoon32 »

-snip-
Last edited by raccoon32 on Mon Dec 12, 2016 1:01 am, edited 1 time in total.
raccoon32
Posts: 3
Joined: Sun Dec 11, 2016 4:33 pm

Re: AudioEndpoint

Post by raccoon32 »

Hello,

I tried installing this plugin using the .egplugin file. My issue is that although the plugin does show up in the plugin browser, the program becomes completely unresponsive once I try to add it.
The .egplugin method installs the plugin into "C:\ProgramData\EventGhost\Plugins" instead of "C:\Program Files (x86)\EventGhost\Plugins", where all my other plugins are.
But I've also tried moving the plugin from ProgramData to Program Files (x86), which didn't fix the issue.

Can you help me get this plugin working?
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: AudioEndpoint

Post by kkl »

For me, AudioEndpoint.plugin v2.1 causes EG to hang when adding plugin ["(Not Responding)"]. I then tried adding v2.0 and it worked fine. Back to v2.1 -> hang. I use 0.4.1r17222.
raccoon32
Posts: 3
Joined: Sun Dec 11, 2016 4:33 pm

Re: AudioEndpoint

Post by raccoon32 »

v2 works fine for me as well. Thanks for the info.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: AudioEndpoint

Post by Sem;colon »

hmm, looks like the new lib form version 2.1 only works with EG version 0.5 and up.
Please keep using version 2.0 if you are on EG 0.4!
If you like my work, Image me a drink :wink:
Post Reply