Вы находитесь на странице: 1из 11

Alwin Memorial Public School

Selaiyur, Chennai–600073

Computer Investigatory Project


AISSCE - 2019

Name ………………………………………

Std ….…………………… Sec …………

Topic .……………………………………
Alwin Memorial Public School
Selaiyur, Chennai-600073

Bonafide Certificate
AISSCE-2019

This is to certify that the project title _______________________________


is a record Bonafide carried out by Sayan Pramanik, in partial fulfilment of
the requirements in computer practical’s as prescribed by CBSE.

REGISTRATION NUMBER________________________

Teacher-in-charge Principal

External examiner
CERTIFICATE

This is to certify that Sayan Pramanik of class XII A has


prepared the report on the project entitled “ChatBot”. The report is
the result of the effort and endeavors. The report is worthy of
acceptance as final project report for the Computer Science of Class
XII.

SIGNATURE OF EXAMINER
DECLARATION

I hereby declare that the project work entitled “ChatBot”


submitted to the Department of Computer Science, Alwin
Memorial Public School, Selaiyur, Chennai is prepared by me and
along with my teammates namely Arun kumar.k, Paramesh,
Ashok Kaushik and Deepu Kishore.
All the codings are are result of the group efforts.

Sayan Pramanik
Class XII A
ACKNOWLEDGEMENT

I would like to express a deep sense of thanks & gratitude to


my project guide Mrs. Sangeeta for guiding me immensely
through the course of the project. She always evinced keen
interest in my work. Her constructive advice & constant
motivation have been responsible for the successful completion of
this project.

My sincere thanks goes to Mrs.V.Usha Nandhni, Our


principal Madam, for her co-ordination in extending every
possible support for the completion of this project.

I also thanks to my parents for their motivation & support. I


must thanks to my classmates for their timely help & support for
compilation of this project.

Last but not the least, I would like to thank all those who
had helped directly or indirectly helped towards the
completion of this project.

Sayan Pramanik
Class: XII A
INDEX
1.Abstract
2.Hardware and Software Used
3.Source code
4.Output screens
5. Bibliography
ABSTRACT

This is a program where the user can make written entries in the
application, after the entries in the application the system would
give a written and voice output this application is also a self
learning program e.i., if the program is does’t known how to reply
to the command given by the user, then it would take the entry from
the user regarding the kind of reply needed by the user on that
command.
HARDWARE AND SOFTWARE USED

HARDWARE USED:-
 Windows 10
 RAM 4GB

SOFTWARE USED:-
 C-compiler
 Zlib compresser
 X11 windows system
 Visual studio 2017
SOURCE CODE

Voice header file:-

#ifndef _VOICE_H
#define _VOICE_H

#include <iostream>

using namespace std;

class Voice {
public:
void say(string phrase); // Used to textually and audibly communicate a
phrase
};

#endif

Learner header file:-

#ifndef _LEARNER_H
#define _LEARNER_H

#include <iostream>
#include <fstream>
#include "voice.h"

using namespace std;

class Learner {
public:
void respond(string phrase); // Used to get, or teach a response
void say(string phrase); // Used to textually and audibly
communicate a phrase
Voice voice; // The learner's voice that will audibly
communicate a response
};

#endif

Voice main program:-

#include "voice.h"
#include <iostream>
#include <windows.h>

using namespace std;

/*
The following function textually and audibly communicates a
phrase.
The open source eSpeak speech synthesizer is used to create
the audible message.
If the eSpeak exe is not located in the directory, no audible
message will be heard.
*/
void Voice::say(string phrase){
string command = "espeak \"" + phrase + "\""; // Concat the
phrase to the command
const char* charCommand = command.c_str(); // Convert to a
const char*
cout << phrase << endl; // Textually output phrase
system(charCommand); // Send the command to cmd to
execute espeak with the phrase an argument
}
OUTPUT SCREENS

BIBLIOGRAPHY

1. http://www.google.com/
2. http://en.wikipedia.org
3. Computer science with C++ by Sumit Arora.