
For beginners: Upload Audio Files onto the IOTA Tangle
Purpose of this program: to upload and store audio files onto the IOTA Tangle.
This article assumes you have Python installed on your machine (I used a Raspberry Pi). To install python and/or use a terminal refer to any of my previous articles.
Contact me if you are stuck. Also please let me know if you see anything that needs improvement.
1. Activate IOTA
To communicate with the IOTA tangle you need to install the PyOTA library (https://github.com/iotaledger/iota.lib.py):
cd ~/
sudo apt-get install libffi-dev (to avoid the error: “failed building wheel for cryptography”)
sudo pip install pyota[ccurl]
git clone https://github.com/iotaledger/iota.lib.py.git
To test if the installation was successful (this will take around 10 minutes):
cd iota.lib.py
python setup.py test
2. Preparing the audio file to be uploaded
To upload an audio file you need to convert is to a Base64 String first. There are several web pages where you can do this. I used Base64.Guru (https://base64.guru/converter/encode/audio).
The result will look as follows: