.. note:: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts. **Why Join?** - **Expert Support**: Solve post-sale issues and technical challenges with help from our community and team. - **Learn & Share**: Exchange tips and tutorials to enhance your skills. - **Exclusive Previews**: Get early access to new product announcements and sneak peeks. - **Special Discounts**: Enjoy exclusive discounts on our newest products. - **Festive Promotions and Giveaways**: Take part in giveaways and holiday promotions. 👉 Ready to explore and create with us? Click [|link_sf_facebook|] and join today! .. _ezb_sound: Sound Effect ======================= In this example, we use PiCrawler's (to be precise, Robot HAT's) sound effects. It consists of three parts, namely **Muisc**, **Sound**, **Text to Speech**. .. image:: ../python/img/tts.png **Program** .. note:: * You can write the program according to the following picture, please refer to the tutorial: :ref:`ezblock:create_project_latest`. * Or find the code with the same name on the **Examples** page of the EzBlock Studio and click **Run** or **Edit** directly. .. image:: img/soundeff.png Switch to the Remote Control interface, and you will see the following widgets. .. image:: img/soundeff_B.png After the program is running, you can press different buttons to make PiCrawler sound. **How it works?** Functions related to background music include these: .. image:: img/sp210928_101816.png Functions related to sound effects include these: .. image:: img/sp210928_101727.png Functions related to Text to Speech include these: .. image:: img/sp210928_101609.png