comment [32]
- From Sirichai Jannim on 18-03-2012 at 19:02:50
Hi Trax
That's wonderful project!!! Can you let me the your source code in delphi please. Thanks for
advanced.
Jannim.S
IP: 14.207.180.55
How many times have you wished that you recorder your recent telephone conversation? I have, many many times. So I finally decided to make this happen by using PC and a piece of hardware (powered from USB) to record audio from phone line to MP3 format. I wanted this thing to work automatically, to start recording when any of phones in house is picked-up (line occupied) and stop recording when all phones are hung-up (line free).
UPDATE: The .RAR file is now updated. So if you have seen the "Output mp3 directory is not valid..." information upon application start, just edit the "opcije.ini" file and adjust the mp3 output directory.
[I'm on Hack-A-Day and also on HackedGadgets :-)]
Update: Source code is available for download [here].
You can download the project files (schematics, source code, windows app) by clicking on the red download button at the end of this article.
How does it work?
The hardware-part consists of:
- audio pickup circuit
- phone line status monitor
- microcontroller to send the phone-line state to PC using USB (serial<->usb)
The software:
- receiving the phone-line state via USB and managing the recording to WAV
- after conversation is finished, converts WAV to MP3 using Lame library
Phone line status monitor circuit
This circuit is basically measuring voltage on the phone-line, which is is above 15 Volts (around 50) when on-hook. When any of the phones is picked-up the voltage drops below 15 Volts. This property is used to detect whether the phone line is in-use or not. The circuit is actually taken from this address and altered a bit.
Audio pickup from telephone line
In this simple part a transformer from an old PC modem i used. There are also 2x1N4148 diodes to limit the output voltage of the transformer to ~0.6V, a resistor and a capacitor. The important part is this capacitor which ensures that phone-line is never occupied by the circuit.
Microcontroller to send data to PC
Microcontroller is checking the phone line status every 0.2 seconds with a help of monitor circuit above. If the optocoupler is "closed" for more than 0.15 seconds it means that the phone line is occupied and it starts to send letter "R" (Rec) to PC application. In other case it sends "S" (Stop). This data is received by the PC where the application starts audio recording (R) or stops (S). Since the microcontroller uses serial communication to send the data, PL-2303 circuit is used to translate those signals to USB. (An entire PCB converter is used in this application, as it can be seen in the picture.) Much better way of doing this is would be with V-USB library (see these simple projects). That way we could use only one Atmel chip instead of these two (PIC + PL-2303).
Author (sent by): Trax
Download counter: 8,160
Rating: (2.88, votes 4814)
Date: 02-03-2010
Lokalna verzija ove stranice: Snimač telefonskih razgovora
Tags: call, phone, pic, pic16f84, record, recorder, rs232, snimanje, telefon, telephone, usb. +add your tag
Halo, čestitamo Vam na dobrom radu siguran sam da će ovo pomoći u učenju elektronike za
mnoge ljude. Sam vrlo sretan ako stavi na raspolaganje mi kod u Delphi tako da ne mogu shvatiti
kako i napravio čitanje podataka. zahvalan
IP: 187.121.93.64
Hi Trax
That's wonderful project!!! Can you let me the your source code in delphi please. Thanks for
advanced.
Jannim.S
IP: 14.207.180.55
PL-2303 skines iz USB-Serial kabla kojeg kupis u radnji sa IT opremom.
IP: n/a
Gde kupiti ili odakle nabaviti (sa kog uredjaja) PL-2303 USB-Serial konverter ???
Pozdrav.
IP: n/a
Ne povezujes telefon nikako sa uvim uredjajem. Ovaj uredjaj se ukljuci u telefonsku liniju bas
kao i neki drugi dodatni telefon. Znaci ovo tretiras kao zaseban telefon, samo sto on snima :)
Mozes koristiti koji god konektor zelis...
IP: n/a
Jedno pitanje trax,
Na koji način povezujem telefon sa ovim uređajem?
Neka slika ili šema.
Da li se može koristiti Rj-11 priključak, umesto RJ-45?
Hvala unapred.
IP: n/a
hey trax, can you tell me, from where you get that transformer? where can i buy it? what brand
and which model that modem?
thanks
IP: 112.78.132.68
Zdravo pocituvan Trax,
dali moze da mi recis vo koja programa e napisana programata za na PC?Dali e vo Visual Basic,C
ili pak nekoja druga?
Pozdrav
IP: n/a
thanks for response.Can you tell me what exactly is the name of cable used by you for
connecting output to pc.Also give me idea how you have connected telephone mains to transformer
output.pls reply soon.
IP: 49.138.175.210
You can log-in on forum link: Login page. After logging-in, return to this page and click refresh in your browser.