# Audio demo generates and plays test tones using the MiniaudioBackend. ```{raw} html ▶ Run in browser ``` **Tags:** `ui` Demonstrates: - AudioStreamPlayer with programmatically generated sine wave tones - Play, pause, resume, and stop controls via keyboard - Volume and pitch adjustment - On-screen status display Controls: 1-4: Play tones (C4=262Hz, E4=330Hz, G4=392Hz, C5=523Hz) SPACE: Pause / resume current tone S: Stop all audio UP/DOWN: Adjust volume LEFT/RIGHT: Adjust pitch ESC: Quit ## Source ```{literalinclude} ../../examples/features/ui/audio.py :language: python :linenos: ```