191057jaspreet Kaur
191057jaspreet Kaur
PROJECT REPORT
On
“ARDIUNO BASED TEXT TO SPEECH (TTS)CONVERTER”
CERTIFICATE
Date:
ACKNOWLEDGMENT
Primarily I would thank God for making me able to complete this project
with not only success but with great enthusiasm. I would like to convey my
deepest gratitude to the faculty and staff of Electronics Department for their
unrelenting support and encouragement throughout the Project Work.
I am greatly thankful to my project incharge Dr. Dushyant Gupta for his valu-
able guidance and useful suggestions, which helped me in completing the
work efficiently on time.
JASPREET KAUR
Page |4
CONTENT
CERTIFICATE………………………………………………….2
ACKNOWLEDGMENT………………………………3
CONTENT…………………………………………………4
Chapter1 : introducton………………………5-10
Chapter2:circuit descripton…………….11-16
Chapter3:components details…………..17-38
Chapter4:project development…………39-45
Chapter5:testng and measurement…46-47
Chapter6: conclusion………………48
Chapter7:refrences……………………49
Page |5
CHAPTER 1
INTRODUCTION
Text to speech or TTS system normally converts normal text into
speech . This tech allows the system to speak out in a human
voice.There are many examples of text to speech converter that we
come across in our eday to eday life . Snnouncment in public transport,
customer care calls, voice assistant in our smartphone , etc .
e-books into auedio books easily by just copy aned pastng the contents
of ebook into the input moedule of the circuit. Text-to-speech con-
verts normal text into speech. This tech enables the system to speak
out the text in a human voice. This system changes normal text writ-
ten into speech aned it allows the system to speak out the text in a
human voice.
SMPLIFIEE
POWEE SUPPLY SEDIUNO
CIECUIT
Page |7
APPLICATIONS :-
Eeaeding Internet- baseed edata streams (such as e-mails or twit-
ter feeeds)
Conveying status or sensor results from robots, scientfc equip-
ment , or inedustrial
Language learning or speech aieds for eeducatonal environments
Text to speech convert is also useed to make announcement at
pubic transport
For customer care calls
Voice assistants in your smartphones
The navigaton menu of any machine
Speech synthesis walking edevice for blined
Sutomatc reaeding of computer screen
Eobotcs
Eailway aned airline announcment
ADVANTAGES:-
Enhanceed customer experience
Efectve braneding across touchpoints
Global market penetraton
Optmizeed edevelopment aned maintenance
More autonomy for the edigital content owner
Increaseed web presence
Save tme aned money
Easier implementaton with internet of things
Wored-of-mouth marketng
Enhanceed employee performance with corporate learning pro-
grams
Extened the reach of your content
Sccessibility is relevant
Page |8
DISADVANTAGES:-
The system is very tme consuming as it requires huge edata-
bases aned hared-coeding of combinaton to form these woreds. Ss
a result speech synthesis consumes more processing power.
The resultng speech is less than natural aned emotonless. This
is because it is impossible to get auedio recoredings of all possible
woreds spoken in all the possible combinaton of emotons,
stress etc .
pronunciaton analysis from writen text is a major concern
it is edifcult to builed a perfect system
fltering backgrouned noise is a task which can even be edifcult
for humans to accomplish.
Page |9
P a g e | 10
CHAPTER-2
CIRCUIT DESCRIPTION
Here in this text to speech converter , we have useed an amplifer cir-
cuit to reeduce the noise aned get a clear souned . The amplifer circuit
is maede by using the IC LM386. Circuit ediagram for it is given below:-
5v C1
10uf
E2
10K C5(0.1uf)
Srediuno uno 6 C2
+ 3 + 1 8 220uf
EV1 5
100K 2 - 7
- LM386 C3
4 0.05uf
C4
10uf E1
10K SPESKEE
CIRCUIT DIAGRAM
P a g e | 11
WORKING:-
We connect the power supply to the amplifer circuit
aned also atach the edigital pin 3 of the Sreduino to the 10K resistor
aned then connect the grouned of Sreduino to the grouned of given cir-
cuit. Sned afer that we also connect the speaker by connectng its
negatve terminal to the grouned aned positve terminal to the 220uf
capacitor aned at last we connect the power supply to run the system.
This library is very hanedy aned it has over 1000 woreds aned commaneds.
There are many other TTS libraries like jscrane TTS library, google TTS
library etc.
#include "Talkie.h"
#include "Vocab_US_Large.h"
#include "Vocab_Special.h"
Talkie voice;
void setup() {
void loop() {
voice.say(spPAUSE2);
voice.say(sp2_DANGER);
P a g e | 14
voice.say(sp2_DANGER);
voice.say(sp3_STORM);
voice.say(sp3_IN);
voice.say(sp3_THE);
voice.say(sp3_NORTH);
Finally uploaed the coede in the Sreduino aned connect the power sup-
ply to it. Ss soon as you power up the circuit you will start hearing
the alerts! If you edon’t get a clear souned then try aedjustng the knob
of pot or check if the Sreduino is getng proper power supply aned
make sure that the GND of Sreduino is connecteed to grouned of the cir-
cuit.
Code:-
#include "Talkie.h"
#include "Vocab_US_Large.h"
#include "Vocab_Special.h"
Talkie voice;
void setup() {
}
void loop() {
voice.say(spPAUSE2);
voice.say(sp2_DANGER);
voice.say(sp2_DANGER);
voice.say(sp3_STORM);
voice.say(sp3_IN);
voice.say(sp3_THE);
P a g e | 15
voice.say(sp3_NORTH);
}
ARDIUNO CODE
CIECUIT
OUTPUT secton;-
afer all the processing edoneby the arediuno text
get converteed into speech aned those signal are transferreed to the
speaker afer amplifcaton through circuit . aned we get the text into
speech form .`
P a g e | 16
CHAPTER – 3
COMPONENT DESCRIPTION
Componnents Number of compo- Price( in Es. )
nents useed
Speaker 8 ohm 1 70
LM386 1 20
Eesistors-10K 2 4
Capacitor- 220Uf 1 3
Capacitor-10Uf 2 6
Capacitor- 0.1 uF 1 3
Capacitor-0.05uF 1 3
Potentometer 1 20
Batery5-12V 1 20
Srediuno uno 1 750
Serial Pins 0 (Rx) and 1 (Tx): Rx and Tx pins are used to re-
ceive and transmit TTL serial data. They are connected with
the corresponding ATmega328P USB to TTL serial chip.
External Interrupt Pins 2 and 3: These pins can be confg-
ured to trigger an interrupt on a low value, a rising or falling
edge, or a change in value.
PWM Pins 3, 5, 6, 9 and 11: These pins provide an 8-bit PWM
output by using analogWrite() function.
P a g e | 21
Along with 14 Digital pins, there are 6 analog input pins, each
of which provide 10 bits of resolution, i.e. 1024 diferent values.
They measure from 0 to 5 volts but this limit can be increased
by using AREF pin with analog Reference() function.
Analog pin 4 (SDA) and pin 5 (SCA) also used for TWI com-
munication using Wire library.
Communicrtion
Arduino can be used to communicate with a computer, another
Arduino board or other microcontrollers. The ATmega328P mi-
crocontroller provides UART TTL (5V) serial communication
which can be done using digital pin 0 (Rx) and digital pin 1 (Tx).
An ATmega16U2 on the board channels this serial communica-
tion over USB and appears as a virtual com port to software on
the computer. The ATmega16U2 frmware uses the standard
USB COM drivers, and no external driver is needed. However,
on Windows, a .inf fle is required. The Arduino software in-
cludes a serial monitor which allows simple textual data to be
sent to and from the Arduino board. There are two RX and TX
LEDs on the arduino board which will fash when data is being
transmitted via the USB-to-serial chip and USB connection to
P a g e | 22
Proirrmmini Arduino:-
Arduino IDE (Integrated Development Environment) is required
to program the Arduino Uno board. Once arduino IDE is in-
stalled on the computer, connect the board with computer us-
ing USB cable. Now open the arduino IDE and choose the cor-
rect board by selecting Tools>Boards>Arduino/Genuino Uno,
and choose the correct Port by selecting Tools>Port. Arduino
Uno is programmed using Arduino programming language
based on Wiring.
Applicrtions
Prototyping of Electronics Products and Systems
Multiple DIY Projects.
Easy to use for beginner level DIYers and makers.
Projects requiring Multiple I/O interfaces and communica-
tions.
P a g e | 23
Microcontroller ATmega328P
ATmega328P is a high performance yet low power consump-
tion 8-bit AVR microcontroller that’s able to achieve the most
single clock cycle execution of 131 powerful instructions thanks
to its advanced RISC architecture. It can commonly be found as
a processor in Arduino boards such as Arduino Fio and Arduino
Uno. The ATmega328P is supported with a full suite of program
and system development tools which includes: C compilers,
macro assemblers, program debugger/simulators, in-circuit em-
ulators, and evaluation kits.
The fast PWM mode that provides a high-frequency PWM wave-
form generation allows for it to be suited for power regulation.
Prrrmetrics
Program Memory Type Flash
Capture/Compare/PWM Periph-
1 Input Capture, 1 CCP, 6PWM
eral
Number of Comparators 1
P a g e | 24
Pin Count 32
Advrntries:
Processors are simpler to use, with the usage of 8bit and
16bit instead of 32/64bit which are more complex
Readily usable without additional computing components
with 32k bytes of onboard self-programmable fash program
memory as well as 23 programmable I/O lines
Code Efcient, all 31 registers are directly connected to
the arithmetic logic unit (ALU), making it 10 times faster than
conventional CISC microcontrollers
Optimized for AVR enhanced RISC instruction set
Disrdvrntries:
Lacks performance compared to higher bit microcon-
trollers
IC LM386:-
The LM386 is an all – in – one Class AB Audio Amplifer IC that
can be used in a variety of applications. LM386 IC has been in
use for decades and is still being used as Amplifer in Com-
puter speakers and Portable Stereos.
The Audio Amplifer using LM386 is a low power circuit that can
deliver a maximum power of 1 Watt (1W) and can be used in a
wide range of applications like portable speakers, laptop speak-
ers, etc.The following image shows the pinout diagram of the IC
LM386
Applications
LM386 is already one of the important IC in audio depart-
ment and is featured commonly portable speakers and
laptop speakers.
The LM386 Audio Amplifer Circuit can be used for record-
ing voice from microphone, building small speakers that
are battery operated, in FM Radio Devices, etc.
They can also be used in TV Sound Systems, Line Drivers,
Servo Drivers, Ultrasonic Drivers, etc.
Resistors :-
Resistors are used in virtually all electronic circuits and many
electrical ones. Resistors, as their name indicates resist the
fow of electricity, and this function is key to the operation most
circuits.
P a g e | 28
Capacitors:-
The capacitor is an electric component that has the ability to
store energy in the form of electrical charges that creates a po-
P a g e | 30
Types of Capacitors
1. Film Capacitors: Film capacitors are the ones that use plas-
tic flm as the dielectric medium. They are available in
nearly any value and voltages up to 1500 volts. They
range from 10% to 0.01% in any tolerance. Additionally,
flm condensers arrive in a combination of shapes and
case styles. There are two types of flm condensers, radial
type lead, and axial type lead.
2. Ceramic Capacitors: Ceramic capacitors are the ones that
use ceramic as the dielectric material. It is used in high-
frequency circuits such as audio to RF. In ceramic capaci-
tors, one can develop both high capacitance and low ca-
pacitance by altering the thickness of the ceramic disc.
3. Electrolytic Capacitors: Electrolytic capacitors are the ones
that use the oxide layer as the dielectric material. It has a
wide tolerance capacity. There are mainly two types of
electrolytic capacitors, tantalum, and aluminum. They are
available with working voltages of up to approximately
500V, but the maximum capacitance values are not avail-
able at high voltage, and higher temperature units are
available but are rare.
4. Variable capacitor: Variable capacitors mostly use air as the
dielectric medium. A Variable Capacitor is one whose ca-
pacitance can be mechanically adjusted several times. For
example, this form of the capacitor is used to set the reso-
P a g e | 31
Uses of A Crprcitor
The capacitors have both electrical and electronic applications.
They are used for several things such as flters, energy storage
systems, engine starters, signal processing devices, etc.
Capacitors are used for storing energy, which can be used
by the device for temporary power outages whenever they
need additional power.
Capacitors are used for blocking DC current after getting
fully charged and yet allow the AC current to pass through the
certain of a circuit.
Capacitors are used as the sensor for several things like
measuring humidity, fuel levels, mechanical strain, etc.
Capacitors can be used in a time-dependent circuit. This
could be connected to any LED or loudspeaker system,
and it’s likely that any fashing light/regular beeping uses
a timing capacitor.
220uF:-
10uF:-
P a g e | 32
0.1uF:-
0.05uF-
P a g e | 33
Potentiometer:-
A potentiometer (also known as a pot or potmeter) is de-
fned as a 3 terminal variable resistor in which the resis-
tance is manually varied to control the fow of electric cur-
rent. A potentiometer acts as an adjustable voltage di-
vider.
Potentiometer Types
There are two main types of potentiometers:
Rotary potentiometer
Linear potentiometer
Although the basic constructional features of these poten-
tiometers vary, the working principle of both of these
types of potentiometers is the same.
Rotrry potentiometer-
The rotary type potentiometers are used mainly for ob-
taining adjustable supply voltage to a part of electronic
circuits and electrical circuits. The volume controller of a
radio transistor is a popular example of a rotary poten-
tiometer where the rotary knob of the potentiometer con-
trols the supply to the amplifer.
This type of potentiometer has two terminal contacts be-
tween which a uniform resistance is placed in a semi-cir-
cular pattern. The device also has a middle terminal which
is connected to the resistance through a sliding contact at-
tached with a rotary knob. By rotating the knob one can
move the sliding contact on the semi-circular resistance.
The voltage is taken between a resistance end contact
and the sliding contact. The potentiometer is also named
P a g e | 34
Linear Potentiometers
The linear potentiometer is basically the same but the only dif-
ference is that here instead of rotary movement the sliding con-
tact gets moved on the resistor linearly. Here two ends of a
straight resistor are connected across the source voltage. A
sliding contact can be slide on the resistor through a track at-
tached along with the resistor. The terminal connected to the
sliding is connected to one end of the output circuit and one of
the terminals of the resistor is connected to the other end of
the output circuit.
Diiitrl Potentiometers
Digital potentiometers are three-terminal devices, two fxed
end terminals and one wiper terminal which is used to vary the
output voltage. Digital potentiometers have various applica-
tions, including calibrating a system, adjusting ofset voltage,
tuning flters, controlling screen brightness, and controlling
sound volume.
Applicrtions of Potentiometer
There are many diferent uses of a potentiometer. The three
main applications of a potentiometer are:
SPEAKER 8 ohm:-
The purpose of speaker is to produce audio output
that can be heard by the listeners. Speakers are the transduc-
ers that used to convert the electromagnetic waves into sound
waves. It receives audio input from computer or audio re-
ceivers. The input fed to speaker is in analog or digital form.
Analog speakers simply amplify electromagnetic waves into
sound waves while digital frst convert the signal into analog
and then amplify it.
BATTERY:-
A battery is an energy source consisting of one or more
electrochemical cells and terminals on both ends called an an-
ode (-) and a cathode (+). Electrochemical cells transform
chemical energy into electrical energy. Inside the battery is an
electrolyte, often consisting of soluble salts or acids, it serves
as a conductive medium, allowing the electric charge to travel
through the battery.
When a battery is disconnected, the charge at the positive and
negative ends is equal, meaning there is no electric current.
When connected to an outside resistance or device, the battery
experiences an imbalance in charge that pushes electrons
through the device's conductive material to the positive end of
the battery. But while the electrons—or the negative charge—
are what moves through the circuit, the electric current is mea-
sured following the positive charge's direction, which fows
from the positive to the negative end inside the battery, and
vice versa outside it.
Depending on its voltage and load, a single battery can power
anything from a car's motor or a computer to a cellphone or a
light bulb. When it comes to most electronic devices, working
with the wrong voltage could result in your device not turning
on or risk frying its electrical components, sometimes beyond
repair.
The right voltage battery would be able to power a device with-
out hindering its performance or harming its hardware. Also,
depending on the device's consumption of energy and the bat-
tery's load, a single battery charge could last you anywhere
from a few hours to multiple days.
P a g e | 37
Connectng Wires:-
Connecting wires allows an electrical current to
travel from one point on a circuit to another because electricity
needs a medium through which it can move. Most of the con-
necting wires are made up of copper or aluminum.
P a g e | 38
Chrpter-4
Project development
Zero pcb:-
Zero PCB is basically a general-purpose printed circuit
board (PCB), also known as perfboard or DOT PCB. It is a thin
rigid copper sheet with holes pre-drilled at standard intervals
across a grid with 2.54mm (0.1-inch) spacing between holes.
Each hole is encircled by a round or square copper pad so that
component lead can be inserted into the hole and soldered
around the pad without short-circuiting the nearby pads and
other leads. For connecting the lead of component with another
lead, solder these together or join these using a suitable con-
ducting wire.
Both zero PCB and veroboard are popular among hobbyists, be-
ginners, and students for rapid prototyping asnd project works.
LAYOUT OF CIRCUIT
SOLDERING
Metal used
Filler metals used in soldering were once lead based (lead sol-
der), however, owing to regulations, lead-based solders are in-
creasingly replaced with lead free solders, which may consist of
antimony, bismuth, brass, copper, indium, tin or silver.
Solderini iron
A soldering iron is a hand tool used in soldering. It supplies heat
to melt the solder so that it can fow into the joint between two
workpieces. A soldering iron is composed of a heated metal tip
and an insulated handle. Heating is often achieved electrically,
by passing an electric current through a resistive heating ele-
ment. Cordless irons can be heated by combustion of gas
stored in a small tank, often using a catalytic heater rather than
a fame. Simple irons less commonly used than in the past were
simply a large copper bit on a handle, heated in a fame. Sol-
dering irons are most often used for installation, repairs, and
limited production work in electronics assembly. High-volume
production lines use other soldering methods. Large irons may
be used for soldering joints in sheet metal objects. Less com-
mon uses include pyrography and plastic welding
Solderini wire
Filler metals used in soldering were once lead based (lead sol-
der), however, owing to regulations, lead-based solders are in-
creasingly replaced with lead free solders, which may consist of
antimony, bismuth, brass, copper, indium, tin or silver. The
greater the tin concentration, the greater the solder’s tensile
and shear strengths. Alloys commonly used for electrical sol-
dering are 60/40 Tin/lead which melts at 188 °C (370 °F)and
63/37 Tin/lead used principally in electrical/electronic work. The
63/37 is a 22 eutectic alloy, which has the lowest melting point
(183 °C or 361 °F) of all the tin/lead alloys; and the melting
point is truly a point — not a range
Flux :-
Flux is a chemical cleaning agent used before and during the
soldering process of electronic components onto circuit boards.
Flux is used in both manual hand soldering as well as the difer-
ent automated processes used by PCB contract manufacturers.
P a g e | 43
Desolderini :-
Desoldering is the process of melting the solder and removing
the joints made between two materials.
Methods of Desoldering
Copper wires are used to make the soldering wick because they
are good conductors of heat. As solder is attracted to heat, the
copper coils suck up the solder from the metal surface.
Chrpter-5
Testini of components:-
·Resistor –
For checking the resistor, set the multi-meter to the Ohms
mode. Connect the two probes of multi-meter to the two
ends of resistor. If the resistance appears on the screen of
the multi-meter and matches with the manually calculated
reistance of the resistor then the resistor is in good condi-
tion.
· Connectng wires –
· For checking the connecting wire, set the multimeter to
the continuity mode. Connect the two probes of multi-me-
ter to the ends of wire ,if the beep sound occurs, then we
can use those wires in our circuit.
· Capacitor:-
· Use the multimeter and read the voltage on the capacitor
leads. The voltage should read near 9 volts. The voltage
will discharge rapidly to 0V because the capacitor is dis-
charging through the multimeter. If the capacitor will not
retain that voltage, it is defective and should be replaced.
·
· After checking all the components and if they are in good con-
dition, then we will put them on the PCB. After that we will
give supply to the circuit. Then audio output show the well
working of the circuit.
· Plrcement of components:-
P a g e | 47
P a g e | 48
Chrpter-6
Conclusion
Chrpter-7
References
USEFUL LINKS
https://www.electronicshub.org/how-to-desolder/
https://components101.com/microcontrollers/arduino-uno
https://www.seeedstudio.com/blog/2019/10/22/at-
mega328p-the-one-microcontroller-you-should-start-with/
https://www.electronicshub.org/lm386-audio-amplifer-cir -
cuit/
https://www.electronics-
notes.com/articles/electronic_components/resistors/resis-
tor-types.php