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

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

设置开发工具包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.

    连接开发工具包

  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 for either the circular or linear configuration.

    开发工具包配置Development kit configuration 方向Orientation
    环形Circular 竖直,麦克风面向天花板Upright, with microphones facing the ceiling
    线性Linear 在其一端,麦克风面向你(如下图所示)On its side, with microphones facing you (shown in the following image)

    线性开发工具包方向

  5. 安装证书并设置声音设备的权限。Install the certificates and set the permissions of the sound device. 在命令提示符窗口中键入以下命令:Type the following commands in a Command Prompt window:

    adb push C:\SDSDK\Android-Sample-Release\scripts\roobo_setup.sh /data/
    adb shell
    cd /data/
    chmod 777 roobo_setup.sh
    ./roobo_setup.sh
    exit
    

    备注

    这些命令使用 Android Debug Bridge adb.exe,它是 Android Studio 安装的一部分。These commands use the Android Debug Bridge, adb.exe, which is part of the Android Studio installation. 此工具位于 C:\Users[用户名]\AppData\Local\Android\Sdk\platform-tools 中。This tool is located in C:\Users[user name]\AppData\Local\Android\Sdk\platform-tools. 可将该目录添加到你的路径,以便更轻松地调用 adbYou can add this directory to your path to make it more convenient to invoke adb. 否则,必须在调用 adb 必须在每个调用 adb 的命令中指定到 adb.exe 的完整安装路径。Otherwise, you must specify the full path to your installation of adb.exe in every command that invokes adb.

    如果看到 no devices/emulators found 错误,请检查 USB 电缆是否已连接以及是否为高品质电缆。If you see an error no devices/emulators found then check your USB cable is connected and is a high quality cable. 可使用 adb devices 检查并确保计算机可与开发工具包通信,因为它将返回设备列表。You can use adb devices to check that your computer can talk to the development kit as it will return a list of devices.

    提示

    将电脑的麦克风和扬声器调为静音,以确保使用开发工具包的麦克风。Mute your PC's microphone and speaker to be sure you are working with the development kit's microphones. 这可以避免电脑中的音频意外触发设备。This way, you won't accidentally trigger the device with audio from the PC.

  6. 如果希望将扬声器连接到开发工具包,可将其连接到音频线路输出。应选择带有 3.5 mm 模拟插头的高品质扬声器。If you want to attach a speaker to the dev kit, you can connect it to the audio line out. You should choose a good-quality speaker with a 3.5mm analog plug.

    Vysor 音频

开发信息Development information

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

音频Audio

Roobo 提供一个工具用于将所有音频捕获到闪存。Roobo provides a tool that captures all audio to flash memory. 它可能有助于排查音频问题。It might help you troubleshoot audio issues. 已针对每个开发工具包配置提供该工具的一个版本。A version of the tool is provided for each development kit configuration. Roobo 站点上选择设备,然后选择页面底部的“Roobo 工具”链接。 On the Roobo site, select your device, and then select the Roobo Tools link at the bottom of the page.

后续步骤Next steps