๐ Soundsยถ
If you plug in a USB audio device into your Tingbot, you can play sounds.
Example: Simple sounds appยถ
import tingbot
from tingbot import *
sound = Sound('car_chirp.wav')
@left_button.press
def on_press():
sound.play()
@every(seconds=1.0/30)
def draw():
screen.fill(color='black')
screen.text('Press the left button to play a sound.')
tingbot.run()