1

I'm Developing a voice recording system with the help of USB audio cards. Therefore I need to get the list of audio input devices to a listbox where I can select the audio input device. When I attempt to record, always the default audio device will be used. Im using VB.Net. Appreciate your kind help

Thank You

2
  • Can you provide a code sample of how you are recording? Which API you using? Commented Oct 17, 2015 at 19:09
  • @YacoubMassad I was able to figure the issue. But Im unable to record the audio from the audio device which i have selected. Commented Oct 20, 2015 at 10:23

1 Answer 1

1

I've used below mentioned code and it worked for me

Dim objSearcher As New System.Management.ManagementObjectSearcher("SELECT * FROM Win32_SoundDevice")
Dim objCollection As System.Management.ManagementObjectCollection = objSearcher.Get()

For Each obj As System.Management.ManagementObject In objCollection
    ComboBox1.Items.Add(obj.GetPropertyValue("Caption").ToString())
Next
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.