AudioDeviceInput

Show Deprecated

AudioDeviceInput produces audio streams from physical devices, such as microphones. It provides a single Output pin which can be connected to other pins via Wires. AudioDeviceInput has properties for selecting which Player is producing the stream, and controlling whether or not they are muted.

Summary

Properties

Methods

Events

Properties

Read Parallel

Active

Roblox Script Security
Read Parallel

IsReady

Read Only
Not Replicated
Roblox Script Security
Read Parallel

Muted

Read Parallel

Code Samples

Push-to-talk

local players = game:GetService("Players")
local userInput = game:GetService("UserInputService")
local audioIn: AudioDeviceInput = players.LocalPlayer:WaitForChild("AudioDeviceInput")
audioIn.Muted = true
local pushToTalkKey = Enum.KeyCode.V
userInput.InputBegan:Connect(function(input: InputObject)
if input.KeyCode == pushToTalkKey then
audioIn.Muted = false
end
end)
userInput.InputEnded:Connect(function(input: InputObject)
if input.KeyCode == pushToTalkKey then
audioIn.Muted = true
end
end)

MutedByLocalUser

Not Replicated
Roblox Script Security
Read Parallel

Player

Read Parallel

Volume

Read Parallel

Methods

GetConnectedWires

Instances

Parameters

pin: string

Returns

Instances

GetInputPins


Returns

GetOutputPins


Returns

GetUserIdAccessList


Returns

SetUserIdAccessList

()

Parameters

userIds: Array

Returns

()

Events

WiringChanged

Parameters

connected: boolean
pin: string
wire: Wire
instance: Instance