from cubroid import dc_motor, master, led, sleep from cubroid.ai import audio # Загрузить модель Teachable Machine Audio # 💡 Введи URL в правой панели и нажми Загрузить audio.load("PASTE_TM_AUDIO_URL_HERE") sleep(2) print("Издавай звуки!") while True: result = audio.predict() name = result["label"] score = result["score"] print(f"Звук: {name} ({score}%)") if name == "Class 1": dc_motor.go() master.green() led.face("happy") elif name == "Class 2": dc_motor.back() master.red() led.face("surprise") else: dc_motor.stop() master.off() led.face("sleepy") sleep(0.5)