# Combining ObjectDetection and AudioClassification doesnt work

**URL:** <https://forum.amebaiot.com/t/combining-objectdetection-and-audioclassification-doesnt-work/3093>\
**Category:** Multimedia\
**Tags:** evb-amb82, rtl8735b\
**Created:** [July 9, 2024, 5:07pm UTC](https://forum.amebaiot.com/t/combining-objectdetection-and-audioclassification-doesnt-work/3093 "2024-07-09T17:07:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsmith1024](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Post date:** [July 9, 2024, 5:07pm UTC](https://forum.amebaiot.com/t/combining-objectdetection-and-audioclassification-doesnt-work/3093/1 "2024-07-09T17:07:12Z")

</div>

Hello,

I using AMB82-MINI with Arduino IDE.

Im using your I example ObjectDetectionLoop.

I need a way to signal when i want the code to do something, so i merged in your AudioClassification example in with the ObjectDetectionLoop example, so that i can make some sound to trigger events in the code.

Both ObjectDetection and AudioClassification works correctly when run separately.

However when i merge the AudioClassification code into the ObjectDetectionLoop, i get the following error in the AudioClassification set up code (that gets run after the ObjectDetectionLoop setup):

12:13:57.582 → VIPLite Drv version 1.12.0

12:13:57.582 → Deploy YAMNET

12:13:57.582 → error: vipnn not applied

12:13:57.722 → error: vipnn not applied

12:13:57.806 → error: vipnn not applied

12:13:57.938 → error: vipnn not applied

12:13:58.033 → error: vipnn not applied

12:13:58.112 → input 0 dim 15600 1 0 0, data format=1, quant\_format=0, none-quant

12:13:58.112 → ouput 0 dim 521 1 0 0error: vipnn not applied

12:13:58.112 → , data format=1, none-quant

12:13:58.112 → ouput 1 dim 64 96 0 0, data format=1, none-quan

When this error happens, the ObjectDetection stops working (doesnt detect any objects anymore in the video stream) but the AudioClassification still works.

I just want to use the models from the examples, i dont want to train any new models.

Anybody have idea on how to fix so both work together?

Thanks

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [July 10, 2024, 1:41am UTC](https://forum.amebaiot.com/t/combining-objectdetection-and-audioclassification-doesnt-work/3093/2 "2024-07-10T01:41:28Z")

</div>

Hi @nsmith1024,

You may refer to this Github link for reference on writing the code. ([AudioNN + ObjDet · Issue #171 · ambiot/ambpro2\_arduino · GitHub](https://github.com/ambiot/ambpro2_arduino/issues/171))

Thank you.

---

<div class="post-metadata">

**Author:** ![nsmith1024](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Post date:** [July 11, 2024, 2:27am UTC](https://forum.amebaiot.com/t/combining-objectdetection-and-audioclassification-doesnt-work/3093/3 "2024-07-11T02:27:59Z")

</div>

Your documentation says to copy a file to the SD card. To do that should i use Linux or windows to copy the file? Which file format is it?

Thanks

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [July 12, 2024, 2:23am UTC](https://forum.amebaiot.com/t/combining-objectdetection-and-audioclassification-doesnt-work/3093/4 "2024-07-12T02:23:35Z")

</div>

Hi @nsmith1024,

It does not matter whether it is Linux or Windows.

**Object Detection:**  
yolov3\_tiny.nb  
yolov4\_tiny.nb  
yolov7\_tiny.nb  
**Face Detection:**  
scrfd.nb  
**Face Recognition:**  
mobilefacenet.nb  
**Audio Classification:**  
yamnet.nb  
**Image Classification:**  
imgclassification.nb

Thank you.
