Help

libRaidVoice

Libraries Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 721 Downloads
  • Supports: 4.2
  • 0 Average Daily Downloads
  • Comments
  • Created 11/1/2009 4:11:35 AM
  • Updated 9/25/2011 10:53:26 AM
  • 5 Favorites
  • Project Site
  • License: GNU General Public License version 3 (GPLv3)
  • Release Type: Release
  • Newest File: 0.11release
or

About libRaidVoice

This library provides simple API for integrating some voicechat features.It evolved from RaidVoice addon. RaidVoice addon is my main project that uses this library to enable people to see each other when speaking on external voice chat like TeamSpeak or Ventrillo. Purpose of this library is to provide transparent overlay over global functions and events. Any ace3 addon can recieve voice events as if they came from ingame voicechat, this can be beneficial mainly for unitframes. You can also use this library to broadcast talking players. Supported is both push to talk and voice activation. Muted players support is included too.

Supported events:

VOICE_START

VOICE_STOP

MUTELIST_UPDATE

How it works:

Library should snoop on addon channel communication and use small cache to store who is speaking. When voice status of any players changes callback will be fired through ace. Push to talk effect is gained by binding a key to function that notifies other players. Voice activation requires in-game voicechat to be enabled and microphone activation level to be set.Then a short loopback sound is recorded, if the treshold is reached, players are notified in same way as before.

latest API Documentation

Example usage:

local RV = LibStub('libRaidVoice-1.0')


--how to broadcast voice events:

--bind keys to

RV:playerStartsSpeaking()
RV:playerStopsSpeaking()


--Or enable blizz voice chat, set voice sensitivy and call:
RV:useVoiceActivation(true)

(optional) RV:setVoiceUpdatePeriod(2) 
--update period in seconds

--This can be disabled using:
RV:useVoiceActivation(false)



--how to hide blizz voice box with player name

		VoiceChatTalkers:UnregisterAllEvents();
		VoiceChatTalkers:SetScript("OnLoad",nil);
		VoiceChatTalkers:SetScript("OnUpdate",nil);
		VoiceChatTalkers:SetScript("OnEnter",nil);
		VoiceChatTalkers:SetScript("OnEvent",nil);
		VoiceChatTalkers:Hide();
		


--for sending mute/unmute information
--bind a key to

RV:playerMute()
RV:playerUnmute()

--use GetMuteStatus
--to query mute status of other players

global functions:

UnitIsTalking(playerNameOrUnit) - returns 1 if player is speaking on external voichat or when speaking over Blizzard voicechat, nil if not speaking.

GetMuteStatus(playerNameOrUnit) - returns 1 if player is muted on external voichat or Blizzard voicechat, nil otherwise.

IsVoiceChatEnabled - returns always 1

------------------------------------------------------------------------
r26 | starouscz | 2011-09-25 15:53:24 +0000 (Sun, 25 Sep 2011) | 1 line
Changed paths:
   A /tags/0.11release (from /trunk:25)

Tagging as 0.11release
------------------------------------------------------------------------
r25 | starouscz | 2011-09-25 15:49:11 +0000 (Sun, 25 Sep 2011) | 1 line
Changed paths:
   M /trunk/libRaidVoice-1.0.lua

try to hook problematic functions only when needed
------------------------------------------------------------------------

Comments

Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster Addon Downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse.com Experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Minecraft 3D Print Giveaway

Enter Now!