设备:Roobo 智能音频开发工具包 v2Device: Roobo Smart Audio Dev Kit v2

本文提供了 Roobo 智能音频开发工具包 2 的设备特定信息。This article provides device-specific information for the Roobo Smart Audio Dev Kit2.

设置开发工具包Set up the development kit

  1. 开发工具包拥有两个 micro USB 连接器。The development kit has two micro USB connectors. 左侧的连接器用于为开发工具包接通电源,在下图中突出显示为 Power。The left connector is to power the development kit and is highlighted as Power in the image below. 右侧的连接器用于控制开发工具包,在图中标记为 Debug。The right one is to control it, and is marked Debug in the image. 连接开发工具包Connecting the dev kit
  2. 使用 micro USB 数据线为开发工具包接通电源,将电源端口连接到 PC 或电源适配器。Power the development kit by using a micro USB cable to connect the power port to a PC or power adapter. 顶部板下的绿色电源指示灯将亮起。A green power indicator will light up under the top board.
  3. 若要控制开发工具包,请使用另一条 micro USB 电缆将调试端口连接到计算机。To control the development kit, connect the debug port to a computer by using a second micro USB cable. 务必使用高品质的电缆,以确保可靠的通信。It is essential to use a high-quality cable to ensure reliable communications.
  4. 按圆形配置方式确定开发工具包的朝向 - 垂直放置,麦克风面朝天花板,如上所示Orient your development kit Circularly - Upright, with microphones facing the ceiling as shown above

开发信息Development information

有关更多开发信息,请参阅 Roobo 开发指南For more development information, see the Roobo development guide.

音频录制/播放Audio Record/Play

可以通过以下方式执行 DDK2 音频操作:DDK2 audio operations can be performed in the following ways:

  • 使用 ALSA 开放源代码库及其应用程序。Use ALSA Open-source libraries and their applications.
  • 使用 appmainprog 接口执行应用程序开发。Use appmainprog interface to do application development. 与 DDK2 音频相关的软件框架使用标准 ALSA 框架,你可以使用 libasound。DDK2 audio - related software framework uses standard ALSA framework, you can use libasound. 这样,就可以直接开发软件了。So to develop software directly. 因此,可以使用 ALSA 的 arecord 和 aplay 直接记录和播放音频。So you can use ALSA's arecord and aplay directly to record and play audio.