How can I recognize YouTube music on Arduino IDE or C?

Asked 1 years ago, Updated 1 years ago, 68 views

How can I make YouTube music recognized in the Arduino program, IDE? For example, what should I do to make the light blink according to YouTube music??

Can't the compiler recognize the YouTube playback in the laptop rather than detecting external sounds with a sensor?

robot

2022-09-21 15:32

2 Answers

First of all, the compiler is a friend who changes the source code to something else (usually machine language, byte code, etc.), but it does not work at runtime, such as recognizing YouTube videos.
I think you should study what a compiler is.

There are many ways to make it, but if I were to use the operating system API, I would receive the sound data currently played on the computer and send it to Arduino through serial communication through preprocessing.
(If you are simply going to use the PCM value as the brightness of the LED, you don't need a preprocessing process, do you?)
In Arduino, you can control the port connected to the LED with the received value.


2022-09-21 15:32

Thank you!


2022-09-21 15:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.