How to use the new roblox Audio Api to get mic input?

I’ve tried reading the docs but its been pretty hard too get the users microphone input, could anyone link me to say a video explaining how to get players mic input and broadcast it to a part?

Or if anyone knows how too do that pls explain.

1 Like

I know I’m probably many months late to this, but you can use an AudioDeviceInput to get the player’s sound input.

Documentation on that here.

EDIT: I should also mention if VoiceChatService.UseAudioApi is set to Enabled, you can fetch the Player’s automatically inserted AudioDeviceInput by using this line of code:

local player = game.Players.LocalPlayer
local micIn = player:FindFirstChildOfClass("AudioDeviceInput")

if micIn then
    print("Mic found!")
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.