Audio

Adding audio requires uploading the specific sound that you want into App Inventor. Recall that, in Chapter 2, “Building with MIT App Inventor,” we built the Speak, Android! app. This app used a speech recognition component built into App Inventor.

However, you can add any kind of audio from your computer into an app. Doing so involves one of two audio components: Sound or Player. You can upload sound files directly into the Media section of the Designer, as we have in previous chapters. In addition, you can upload directly in the Sound component’s Source property menu, as in Figure 9.3. The Upload File button in the Source menu also uploads the file to the Media section.

Figure 9.3 You can add a sound file to the app through the Source ...

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.