Step 1: Materials
Cable you Wish to Fix
Soldering Iron and Solder
Heat Shrink Tubing
Lighter or Torch Gun
The first material you need is the cable that you wish to fix, for me it is my fm transmitter. The cable for it is very cheap and looses sound if it moves. You also need another cable as the substitute, in my case a simple audio stereo cable.
Step 2: Preparing the Wires
First you must cut and strip the device you wish to fix. Then you must cut and strip the leads inside your substitute audio cable. The typical audio stereo cable has three leads, red for the right speaker, white for the left speaker, and a ground wire. Once the leads are stripped, connect the red to red, white to white, and ground to ground.
I found that my fm transmitter cable actually had four leads, a yellow, green, purple, and ground lead. If this happens to you, the easiest solution to this problem is by using a breadboard and trial and error to find the correct connections. If your cables both have only three leads, this is not necessary.
Step 3: Tinning the Wires
Once you know the correct connections between leads, you can twist them together and 'tin' them. This means to simply use your soldering iron to run a thin layer of solder over the leads to seal them.
Step 4: Sealing the Wires
Now that you have the leads permanently connected with solder, you must insulate them so they do not touch one another. I did this by simply using small heat shrink tubing and a torch lighter. You can do this with electrical tape instead, but the wire may end up being thicker. Once each of the three leads had their own insulation, I put one last heat shrink tube and applied some heat with the torch lighter to create a final seal.