You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This demo illustrates the fundamental workflow of a BMF Audio Module, including the following key steps:
5
+
6
+
-**Data Validation**: Ensures that input audio frames meet the required specifications for sample rate, audio layout, and data type.
7
+
-**Data Caching**: Buffers audio frames to meet the algorithm’s requirements for efficient processing.
8
+
-**Data Format Conversion**: Converts `AudioFrame` tensor lists to `ndarray` for processing.
9
+
-**Algorithm Processing**: Leverages the `librosa` library to implement robot audio effects.
10
+
-**Frame Splitting and Output**: Processes the audio buffer and splits it into frames for output.
11
+
12
+
---
13
+
14
+
## Steps Needed to Run the Demo
15
+
16
+
1.**Install the BMF Package**
17
+
BMF can be installed in many ways; here we use `pip`:
18
+
19
+
```bash
20
+
pip3 install BabitMF
21
+
```
22
+
23
+
2.**Install the `librosa` Package**
24
+
Install the `librosa` package for audio processing:
25
+
26
+
```bash
27
+
pip3 install librosa
28
+
```
29
+
30
+
3.**Run the Demo Script in Sync Mode**
31
+
We provide a sync mode that allows you to debug inside the module easily. Run the `test_robot_effect_sync_mode.py` script to test the robot effect module in sync mode:
32
+
33
+
```bash
34
+
python3 test_robot_effect_sync_mode.py
35
+
```
36
+
37
+
You might need to customize the input and output file paths to successfully run the demo.
0 commit comments