Язык

FiguraSVC

FiguraSVC

Modrinth

A 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
Fabric Forge Neoforge Quilt 1.20.1 – 1.21.6 DecorationSocial

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.20.1
fabric, quilt · 1.20.1 · 11mo ago
7.0k
Release
2.0.1+1.20.1
forge · 1.20.1 · 11mo ago
10.7k
Release
2.0.1+1.21.1
forge · 1.21.1, 1.21.2, 1.21.3 · 11mo ago
453
Release
2.0.1+1.21.1
fabric, quilt · 1.21.1, 1.21.2, 1.21.3 · 11mo ago
20.4k
Release
2.0.1+1.21.1
neoforge · 1.21.1, 1.21.2, 1.21.3 · 11mo ago
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…
6.1k
Release
2.0+1.21.x
fabric, forge, neoforge · 1.21, 1.21.1, 1.21.2 · 15mo ago
- 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
7.1k
Release
2.0+1.20.1
fabric, forge, quilt · 1.20.1 · 15mo ago
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…
6.5k
Beta
1.1.0+1.20.4
fabric · 1.20.4 · 26mo ago
- 1.20.4 Port
1.6k
Beta
1.1.0+1.20.1
fabric · 1.20.1 · 26mo ago
- 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…
6.2k
Alpha
1.0.0+1.20.1
fabric · 1.20.1 · 26mo ago
The first release of FiguraSVC, bound to be buggy, as such, it is released under the Alpha channel.
680

Комментарии 0

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

Скачать FiguraSVC

Файлы отдаются напрямую с первоисточника. Modgrid не хранит и не изменяет их.