FiguraSVC
ModrinthA unofficial addon that allows Figura scripts to detect and process Simple Voice Chat audio in real time.
66.7k загрузок 52 подписчиков обновлено 11mo ago
последняя v2.0.1+1.20.1 Modrinth
FiguraSVC
A unofficial addon for Figura that allows Simple Voice Chat to be detected by Figura Lua scripts.
DOCUMENTATION
Wiki will come soon!
Example Script
-- Example talking animation
local microphoneOffTime = 0
local isMicrophoneOn = false
function pings.talking(state)
-- (safe on servers) (visible to everyone)
animations.model.talk:setPlaying(state)
end
function events.tick()
local previousMicState = isMicrophoneOn
microphoneOffTime = microphoneOffTime + 1
isMicrophoneOn = microphoneOffTime <= 2 -- has svc.microphone been called in the past 2 ticks?
if previousMicState ~= isMicrophoneOn then
pings.talking(isMicrophoneOn)
end
end
if client:isModLoaded("figurasvc") and host:isHost() then
function events.HOST_MICROPHONE(pcm)
microphoneOffTime = 0
end
end
Версии
Release
2.0.1+1.21.1
Fixes crash issue caused by a mixin conflict introduced by forgix. I have no clue why it occurs. This also fixes the `events.microphone` call.-
This is simply…
Release
2.0+1.21.x
- Port to 1.21 versions (yes this works for every version of 1.21)
- Legacy events have been rewritten to use the same system as all other events
Release
2.0+1.20.1
I'm happy to say that FiguraSVC 2.0 is OUT!
- Added new events
- `events.host_microphone`
- Only runs on the host client, this can be used to process…
Beta
1.1.0+1.20.1
- Added a parameter to svc.microphone that provides the raw 16-bit PCM data.
- Fixed issue where the SVC plugin would keep erroring out if a figura avatar…

Комментарии 0
Пока нет комментариев. Будь первым, кто поделится мнением.