How Windows IoT serials 9– use Iotcoreaudiocontroltool to change the device's audio device

Source: Internet
Author: User

As you know, on Windows IoT Core, if you use hardware such as a USB sound card and a camera with a microphone outdoors, you'll have multiple audio devices available. However, the system does not currently provide a direct UI to set the audio input or output device. After review, we can use the command line to change the default audio device, as follows.

In the case of Raspberry Pi, I use a USB sound card, plus the original Raspberry Pi 3.5mm audio interface, there are two audio output and an audio input. The system defaults to using the Raspberry Pi 3.5mm speaker as the audio output, using the microphone of the USB sound card as input. If you want to change it, you can use PowerShell or the Putty tool to connect to the Raspberry Pi and modify it using the command line:

First, using the PowerShell or Putty tool to connect the Raspberry Pi, the author used the putty, after successfully connecting the device, the default path is: C:\Data\Users\administrator, as shown in.

You can then use "Iotcoreaudiocontroltool h" to view the Help, which lists several uses of the command, as shown in.

As you can see, we can use this command to list audio devices, modify their volume, and set the default device. Modifying the volume can actually be done in Windows Device Portal, and here's a look at modifying the default device. The following speaker for example, if you want the USB sound card speaker device as the default speaker, then we can first list the audio device. Enter the following command:

Iotcoreaudiocontroltool L

The results are as shown.

Next, we can enter the following command:

Iotcoreaudiocontroltool d {0.0.0.00000000}. {6789402a-8ba7-4a00-85cd-f25065176632}//Where, {0.0.0.00000000}. {6789402a-8ba7-4a00-85cd-f25065176632} is the device ID number of the USB sound card.

After Setup is complete, you can view the Windows device Portal and discover that the speaker device in its audio device has changed, as shown in:

If you want to change back, you can enter the following command:

Iotcoreaudiocontroltool d {0.0.0.00000000}. {4846A864-A89C-435F-9F05-8098BCD7B5D5}

After Setup is complete, you can view the Windows device Portal and discover that the speaker device in its audio device has changed, as shown in:

How Windows IoT serials 9– use Iotcoreaudiocontroltool to change the device's audio device

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.