Audio devices issues

Hello everyone, I have used an array to insert system devices into the list, but I couldn't find the function to set audio devices,
What is the function for set up sound devices

set_sound_input_device and set_sound_output_device.