ZHCUBN0 November   2023

 

  1.   1
  2.   说明
  3.   开始使用
  4.   特性
  5.   应用
  6.   6
  7. 1评估模块概述
    1. 1.1 引言
    2. 1.2 套件内容
    3. 1.3 规格
    4. 1.4 器件信息
  8. 2硬件
    1. 2.1 系统概述
    2. 2.2 硬件概述
      1. 2.2.1 AC-MB 设置
        1. 2.2.1.1 音频串行接口设置
          1. 2.2.1.1.1 USB
          2. 2.2.1.1.2 18
          3. 2.2.1.1.3 光学或辅助模拟音频输入
          4. 2.2.1.1.4 外部
        2. 2.2.1.2 AC-MB 电源
      2. 2.2.2 PCMx140Q1EVM-PDK 硬件设置
        1. 2.2.2.1 线路输入
        2. 2.2.2.2 板载麦克风输入
  9. 3软件
    1. 3.1 软件概述
      1. 3.1.1 PurePath Console 3 安装
      2. 3.1.2 PCMx140Q1EVM GUI 安装
        1. 3.1.2.1 软件设置
    2. 3.2 快速入门
      1. 3.2.1 为 I2S 输出配置音频串行总线
      2. 3.2.2 32
      3. 3.2.3 保存配置
    3. 3.3 Matlab 音频捕获示例
  10. 4硬件设计文件
    1. 4.1 PCMx140Q1EVM-PDK 原理图和物料清单
      1. 4.1.1 PCMx140Q1EVM-PDK 原理图
      2. 4.1.2 PCB 布局
      3. 4.1.3 PCMx140Q1EVM-PDK 物料清单
    2. 4.2 AC-MB 原理图和物料清单
      1. 4.2.1 AC-MB 原理图
      2. 4.2.2 PCB 布局
      3. 4.2.3 AC-MB 物料清单
  11. 5其他信息
    1. 5.1 商标
  12. 6相关文档

Matlab 音频捕获示例

可以使用 Matlab 控制 AC-MB 的驱动器,同时允许进行一些自动测试。下面的代码演示了如何使用 Matlab 从 AC-MB 捕获音频。此示例需要使用 Audio Toolbox™

         if ismac % macOS driver 
 deviceReader = audioDeviceReader( 'Device', 'TI USB Audio 2.0',… 
 'SampleRate', 48000, … 
 'NumChannels', 8 ,…
'BitDepth', '32-bit float',… 
'OutputDataType','double'); 
 elseif ispc % windows driver
 devoiceReader = audioDeviceReader( 'Driver','ASIO', 'Device', 'Texas Instruments USB Audio ...',…
 'SampleRate', 48000, … 
 'NumChannels', 8 ,… 
 'BitDepth', '32-bit float',… 
 'OutputDataType','double’);
end
setup(deviceReader);% Setup the device reader
% Play out a file through PC and capture in the EVM
info = audioinfo( infile_name );% Read audiophile infile_name
fileReader = dsp.AudioFileReader( infile_name );% Create fileReader object
fileInfo   = audioinfo(infile_name);% Copy info from infile_name
fileWriter = dsp.AudioFileWriter( outfile_name, 'SampleRate', deviceReader.SampleRate, 'DataType', 'int32’);% Create fileWriter object
audioOut = audioDeviceWriter('SampleRate', fileInfo.SampleRate);% Setup audio playback
setup( audioOut, zeros(deviceReader.SamplesPerFrame, fileInfo.NumChannels) );
while ~isDone(fileReader)% For each block played out, record the block from EVM
audioToPlay = fileReader();% Read a chunk of audio from infile_name
audioOut(audioToPlay);% Play a chance of audio
[audioRead, numOverrun] = deviceReader();% Grab a chunk of audio from EVM
fileWriter(audioRead);% Write the chunk of audio from EVM to a file
end
release(audioOut);% Close all objects
release(fileReader);
release(fileWriter);
release(deviceReader);