© Tanay Pant 2016

Tanay Pant, Building a Virtual Assistant for Raspberry Pi, 10.1007/978-1-4842-2167-9_5

5. Developing a Music Player for Melissa

Tanay Pant

(1)Ghaziabad, Uttar Pradesh, India

This chapter covers the details of building a music player for Melissa that lets you select all the MP3 files in a given directory and play them using a command-line music utility. Melissa will be able to play music randomly as well as play a specific music file from a list of files when asked.

To build this functionality for Melissa, you must first select command-line players for OS X and Linux so that after appropriate handling by the logic engine, it can pass the name of a song or a list of songs to the music player via the os.system() function. Let’s discuss ...

Get Building a Virtual Assistant for Raspberry Pi: The practical guide for constructing a voice-controlled virtual assistant 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.