Help with AudioInputDevice

What I want to achieve: Making a public address system which can replicate my voice to a network of AudioEmitters.
The issue: My voice does not come out of any AudioEmitter, although the microphone dot (iPadOS) or the microphone symbol (on Windows) shows up perfectly fine.
Solutions I have tried:
Making sure IsReady is true
Putting my user ID (on the AudioDeviceInput’s list via SetUserIdAccessList()
Making sure Muted is false
Setting AccessType to “Allow”, not “Deny”
Properties
AccessType: Allow
Muted: False
Player: Rileyg1974
Volume: 1 or 3
IsReady: True
UserIDs on the AudioDeviceInput list: 3078832085

Microphone script: `-- Definitions
local clickD = script.Parent.ClickDetector
local isLive = false
– Code
local function whenClicked(plrwhoClicked)
print(plrwhoClicked)
if isLive == false then
isLive = true
local MicInputADIinst = plrwhoClicked:FindFirstChild(“MicInputADI”)
MicInputADIinst.AccessType = Enum.AccessModifierType.Allow
script.Parent.BrickColor = BrickColor.new(“Lime green”)
script.Parent.Parent.MicWire.SourceInstance = MicInputADIinst
else
isLive = false
local MicInputADIinst = plrwhoClicked:FindFirstChild(“MicInputADI”)
MicInputADIinst.AccessType = Enum.AccessModifierType.Deny
script.Parent.BrickColor = BrickColor.new(“Really red”)
script.Parent.Parent.MicWire.SourceInstance = nil
end
end

clickD.MouseClick:Connect(whenClicked) `

2 Likes

Hey, check this resource out, it’s a voice chat PA system game and I’m pretty sure it will help you out. It’s uncopylocked. voice chat Intercom & walkie talkie test - Roblox

The game you provided only plays specific sounds, I want it to play whatever comes in.

Here’s the image to show the mic:


Here’s the video showing what is happening

Desc: As you may already hear after playing the video, there is no audio playing over the AudioEmitter, Look at the image above to see proof. I also used an AudioAnalyzer and the waves did not change. My Windows volume is 19%

Hey, the game I linked above does allow you to play both specific sounds and whatever you want through your mic over the intercom. just look at the place file and see how it is. hold v when speaking into the intercom mic for your voice to be heard.

here’s a clip of it. the mic feedback is coming from that intercom speaker on the wall.


Also just look at how it’s setup so that you can implement it into your game.

Oh ok, i also figured it out by having VoiceChatService instead use the Audio API and turn off default voice chat, but thanks anyway!