This file has been truncated. show original
In this tutorial, we will be building a program where the text is inputted into a text file and we will convert the text inside the file to audible morse code.
- Raspberry Pi
- Internet Connection
- Python 2
- Headphones or Speakers
### Don’t reinvent the wheel
In this tutorial, we will be using other people’s code they have kindly open sourced or published online. The concept of not reinventing the wheel is commonly used when discussing programming and it’s important to understand. This concept indicates that there is no point writing every piece of your code yourself when someone else has already done the heavy lifting and wrote it. Although, not every piece of code you find online is written by some experienced programmer, so you must use your best judgment to tell if the code you found is efficient and makes sense to use in your program.
### What is a Raspberry Pi?
Raspberry Pi’s is a small, cheap computer that is very powerful. It runs it’s own OS called Raspbian and has tons of use cases. If you are interested in viewing some of the many uses cases for this amazing computer, follow this [link](http://www.itpro.co.uk/mobile/21862/raspberry-pi-top-21-projects-to-try-yourself).
### Setup the PI
We aren’t going to cover how to setup the Pi in this article, but if your Pi isn’t already setup you can follow this [article by Life Hacker](http://lifehacker.com/5976912/a-beginners-guide-to-diying-with-the-raspberry-pi).
### Downloading the necessary packages
For this project, we are going to need to download a package called `pyaudio`. This package allows us to play sounds on the Raspberry Pi. In order to download the package you need to open the command line; the command line allows you to control every aspect of your computer without a user interface. The command line looks like: