TotalPhase-Blog-Erlebniswelten

Extracting Audio Data from a Data Center Software USB Trace

Using the Beagle USB 480 Protocol Analyzer, Data Center software, and a third-party digital audio editor, developers can capture and decode the USB audio protocol to measure audio signal quality. This can be accomplished by exporting USB audio data files from Data Center Trace between USB devices such as a USB headphone/earphone and an audio player such as a cell phone. By converting the .tdc file to a .wav file using third-party software, users can essentially extract audio files from this recording. Below are the steps to achieve this:

Guide

Step 1: Capture the USB audio via the Data Center software. In the example image, audio was played from a PC via the headset, so the OUT transactions are raw audio data.

AudioTDC1

Step 2: Disable SOFs/Keep Alives in the LiveFilter window to keep only OUT transactions and filter out all other transactions.

AudioTDC2

Step 3: Cut out the before and after indices of OUT transactions by right-clicking the top/bottom OUT transaction→ Quick Filter→ Exclude Before Indices/Exclude After Indices.

AudioTDC3

Step 4: Right-click on the top row, deselect all columns except the "DATA" column.

AudioTDC4

After all the steps have been applied, the curve should look like the following example:

AudioTDC5

Step 5: To export the data, choose File → Export and select .bin as the file type.

AudioTDC6

Step 6: The .bin file can be imported into Audacity as a RAW file to convert it to a .wav file. In Audacity, import the .bin file (File→ Import→ Raw Audio). Be sure to use the correct encoding scheme, bit rate, endianity, and mono/stereo as the original audio to regenerate the audio correctly.

Step 7. Play the RAW audio to check it. If the desired audio is not heard, adjust the parameters in the Import Raw Audio window and try again. When the desired audio is obtained, choose File→Export→ Export as WAV and save.

USB Protocol Analyzer

Beagle USB 12
Beagle USB 12 - Protocol Analyzer
TP320221
The Beagle USB 12 is a full/low-speed, distortion-free USB protocol analyzer.

€495.00*
Beagle USB 480
Beagle USB 480 Protocol Analyzer
TP320510
The Beagle USB 480 Protocol Analyzer is a non-intrusive high-speed USB 2.0 bus monitor.

€1,295.00*
Beagle 5000V2 USB 3.0 Ultimate -Protocol AnalyzerBeagle 500 V2 USB - Front and Back
Beagle 5000 V2 USB 3.0 Ultimate Protocol Analyzer
TP322610
USB bus monitor for real-time recording analysis of USB 3.0 & USB 2.0 data.

€5,999.00*