Go Back   WowAce Forums > Addon Chat > Libraries
Libraries Threads for new libraries and mixins.

Reply
 
Thread Tools
Old 2 Weeks Ago   #11
Dridzt
Senior Member
 
Dridzt's Avatar
 
Join Date: Nov 2005
Posts: 281
Default Re: LibRaidVoice

Quote:
Originally Posted by sylvanaar View Post
I still dont see how he knows that someone is talking on the out-of-game voice-chat. I know its not impossible, just wondering how he did it.
He said that above, he's using a key-bind inside WoW to detect push-to-talk situations,
and the in-game voice activation to detect the voice-activation situations.
(since out of game voice activation would trigger in-game voice activation if you have it enabled).

Same trick in principle x2.
__________________
* the poster formerly known as Astaldo
Dridzt is offline   Reply With Quote
Old 2 Weeks Ago   #12
Starouscz
Member
 
Join Date: Jul 2009
Posts: 20
Default Re: LibRaidVoice

Quote:
Originally Posted by sylvanaar View Post
I still dont see how he knows that someone is talking on the out-of-game voice-chat. I know its not impossible, just wondering how he did it.
I use 2 Things

1) push to talk key as mentioned by Adirelle
2) voice activated chat is made as follows:
User enables blizzard ingame chat and set activation volume
addon records loopback sound at regular intervals and reads microphone value
if value is above activation volume the user is speaking
Starouscz is offline   Reply With Quote
Old 2 Weeks Ago   #13
Adirelle
Amazing Member
 
Adirelle's Avatar
 
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
Default Re: LibRaidVoice

I don't not really know how the internal push-to-talk works. Could you use the voice-chat keybinding for your library ?
__________________
Author of Squire, Inline Aura and several other addons.

If you have a problem and you think the solution involves using a regular expression, then you have two problems.
Adirelle is offline   Reply With Quote
Old 2 Weeks Ago   #14
sylvanaar
Legendary Member
 
Join Date: Nov 2006
Posts: 2,668
Default Re: LibRaidVoice

Ok. His question was how should he communicate over the addon channel, so he can do that directly from his library using SendAddonMessage() with "RAID" distribution. He can also register CHAT_MESSAGE_ADDON in his library in order to recieve any messages that are sent by other players
sylvanaar is offline   Reply With Quote
Old 2 Weeks Ago   #15
Adirelle
Amazing Member
 
Adirelle's Avatar
 
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
Default Re: LibRaidVoice

IMO a library using built-in settings (e.g. voice activation level and push-to-talk button) and mimicking built-in voice-chat methods and events should be quite straightforward to write. Obviously, the library should wrap built-in events and statuses so the addon would only use one entry point.
__________________
Author of Squire, Inline Aura and several other addons.

If you have a problem and you think the solution involves using a regular expression, then you have two problems.
Adirelle is offline   Reply With Quote
Old 2 Weeks Ago   #16
Starouscz
Member
 
Join Date: Jul 2009
Posts: 20
Default Re: LibRaidVoice

Hi, i have finally achieved what i wanted and submitted libraidvoice for approval. Simple library that can be included in unitframes and used there.

example of addon that uses my library and prints speaking players (who have raidvoice)
Code:
RV =LibStub:GetLibrary("libRaidVoice-1.0");
RV.RegisterCallback(self,"RAIDVOICE_UPDATE","voiceUpdate")
			 	

function MyAddon:voiceUpdate(event, arg1)

print(arg1);
--prints playername or nill if player stops speaking

end
If you are author of unitframe please do try it.You can make those speakers like in blizz interface now. I am expecting feedback.
Starouscz is offline   Reply With Quote
Reply

Tags
libraidvoice voicechat


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:42 AM.