Notes
- When setting this property, use one of the recording devices listed in the audio.devices property
audio.recdevice read/write property
Get or set the current audio recording device, as a string
Example
local audio = require "audio"
local console = require "console"
local function write_property(name, value)
-- Fancy formatting
console.writecolor("yellow", name..":\t")
console.writecolor("cyan", value.."\n")
end
-- Display the audio properties
write_property("Audio recording device", audio.recdevice)