Voice Controlled News Web Based Application With Speech Recognition
***
Abstract - To move into the future we have to keep updating ourselves and keep adapting to the latest technologies. If we observe the updating in news industry we would notice that we still read news through paper which is bad for environment but we have many digital tools like Artificial Intelligence, Natural Language Processing, Speech Recognition System The proposed idea of speech recognition system which provides news only with the help of user command through voice with very detailed or concise manner according to user’s choice. The user can access news by category, popular news channel, by terms etc. The web app is completely responsive in mobile phone, tablet, and laptop and desktop. The project is developing using reactJS, JAVASCRIPT, Visual Studio Code, andAlanAI.
Key Words - React.js, Node.js, Mongo-DB, Visual Studio Code, ALAN AI
1. INTRODUCTION
A decadeago,weusedtoconsumenewsvia newspaper, media and by communicating with each other but with recent advancement in artificial intelligence, natural language processing and computing power we can access news only via voice command which will make our news gathering experience too much fun and interactive. With rapid development in computer technology, we have reached much closer to advancement in artificial intelligence and natural language processing. Natural language processing helps to analyse the audio and return the needed response in electronicvoice. Oursoftware sends thesource audioto Alan AI cloud server where voices are analysed so that response can be returned. Our web app based application makes news gathering fun and interactive andvoiceassistantmakesitsoeasytolistentothenews. News presents facts of society and world and to know aboutthecurrentsituation,onemustlookfornewsthat comes in many forms like newspaper, electronic news, media,butnoneofthemprovidecomforttothelistener,
but our ALAN AI provides comfort by retrieving the news which is commanded by the customer through voice.
2. PROJECT OBJECTIVES
Traditionalnewsgatheringmethodswerequitecomplex andweretimetakingandalsoverycostly.That’swhywe have built a project which provides news in more interactive and fun way. User just has to invoke the assistantbyspecifickeywordsafterwardsourwebapp will provide news through voice assistant. So, anyone whocannotgetnewsbyreadingthenewsarticlesorany traditional method, our project is very useful and advancedmethodforgettingnews.
3. RECENT DEVELOPMENT OF AI
Recently, humanity has witnessed technological advancement in the artificial intelligence field. Previouslyweusednewsandmediachannelstointeract with news but now with advancement in computing power in mobile phones we can interact with news all across the globe through mobile phones. But the whole level of experience of interacting with news can be upgraded by utilising the artificial intelligence and subfields of artificial intelligence like natural language processing, robotics, machine learning, expert system, neuralnetwork.
4. BRANCHES OF AI:
4.1. MACHINE LEARNING
In [1] Machine Learning we study computer algorithms. The algorithm improves itself by experience and data. Machine learning algorithms are trained by large amounts of data to do a task without being explicitly trained to do. Complex problems are solved economicallyusingmachinelearningalgorithms.
Simple
4.2. NEURAL NETWORK
Pipeline
[2]Neural network is a way to mimic the function of the human brain. In the human brain there are connections of billions of neurons which are connected with each other by synapses and neurotransmitters which help to storememoryandhelptoretrievetheinformationatthe momentofneed.
In artificial neural networks there are node layers in whicheachneuronisconnectedbyeachotherandthere are many hidden layers and also contain one output layer. Each node has some threshold value and associated weight. If data in node exceeds threshold valuethendataistransferredtoanothernode.
2 Neural Network
4.3. ROBOTICS
Robotics3 learning is the intersection of machine learning and robotics, robots are built to do a specific taskwhichisverycomplexforhumanslikeliftingtowers or manufacturing cars and with the help of machine learning algorithms robots can improve their efficiency and precision to do a task.Robotics is an emerging field and many developments happening in robotics which improve precision, are also very economical to use. Today every industry is using robotics to manufacture theirproducts.
Fig. 3 Robotics
4.4. EXPERT SYSTEM
Expert [4] system is the way to emulate decision making similar to the human expert. Expert system is code to solvecomplexproblemsthroughthebodyofif then else rule through conventional problems. Expert system was first artificial intelligence software which worked successfully. The expert system has two parts. The inference engine and knowledge base. The knowledge base represents facts and rules The inference engine completed its task by gathering the facts to deduce upgraded facts. Inference engine includes debugging abilitiesandexplanation.
Fig. 4 Expert System
4.5. NATURAL LANGUAGE PROCESSING
Natural Language Processing 5 is a branch of artificial intelligence which helps to process the language and respond to the query of the user in voice. NPL summarises the large volume of texts rapidly, even in real time. You have also interacted with NLP through Alexa, Google assistant, speech to text dictation and customerservicechatbots.
5
5. TOOLS USED
5.1. ALAN AI
Alan A.I. 6 is the advanced A.I based voice platform that allows you to add
● Coderefactoring
● Supportfordebugging
● SyntaxHighlighting
● EmbeddedGit
● Snippet
5.2. REACT.JS
React (alsoknownas React.js or ReactJS)[7] isafreeand open source front end library for building user interfacesbasedonUIcomponents.
5.3. NODE.JS
Node.js is an open source JavaScript runtime environmentandlibrarytorunwebapplicationsoutside the client's browser. Node.js uses asynchronous, event driven model and is perfectly used for data interactive app.Node.jsisusedinmakingrealtimewebapplication networkapplication,alsoindistributedsystem.
5.4. JAVA SCRIPT
JavaScript is a high level, compiled language that conforms to the ECMA Script standard which confirms theinteroperabilityinwebpages. Ithasdynamictyping, prototype based object orientation, and first class function. It is multi paradigm, supporting event driven, functional,andimperativeprogrammingstyle.JavaScript possessesapplicationprogramminginterfaces(APIs)for working with text, dates, regular expression, standard datastructure,andtheDocumentObjectModel(DOM).
5.5. VISUAL CODE STUDIO
Visual Studio Code is a source code editor that can be usedwithavarietyofprogramminglanguages,including Java, JavaScript, Go, Node.js, Python and C++. It is based on the Electron framework, which is used to develop Node.JS applications that run on the Blink Layout Engine.
Somefeaturesare:
● Intelligentcodecompletion
Fig. 7 Visual Studio Code
6. IMPLEMENTATION
Project implementation can be divided into three parts:
● Frontenddevelopment
● APIconnectionwithfrontend
● ALANAIbackendprogramming
6.1. FRONT END DEVELOPMENT
Frontend Development is a part which is done by using react.JSandmaterial UI.React.JSisusedbecauseoflarge data set and change in data set does not require reloading the page. The rendering process is done by VirtualDomwhichisveryfast.Thepurposeofrender() functionistodisplaythespecifiedHTMLcodeinsidethe specified HTML element. A render function read props andstateandreturnourJSXcodetotherootcomponent of our app. The virtual DOM is programming concept where an ideal or virtual representation of UI is kept in memory and synced with real DOM by a library such as react DOM The fast rendering required in the project like this where the user is interacting with web app usingactualvoice.MaterialUIonotherhandisapopular react ui frame work. It allows developers for quick developmentbyprovidingvariouscomponents.
6.2. API CONNECTION WITH FRONTEND
The Application Programming Interface, API is a messengerthattakesrequestsandtellsthesystemwhat user wants and then return the response hence it is software that provides a foundation for connection between two applications. This connection is used to sendarequestandreturnaresponsetotheuser AnAPI isthereal backend connectivityengine betweenvarious otherapplications.
Two APIs are used in this project. Each web app has its API which connects with another application. The two APIs were from news API and ALAN AI’s API. One can searchandfindnewsacrosstheglobeusingnewsAPIs.A lot of query search are available, you can retrieve news by country, accident, and pandemic or on games accordingtodeveloperchoice.
6.3. ALAN AI BACKEND PROGRAMMING
Alan Studio provides great support to developers by offering free voice assistants. Alan offers SDKs for different platforms to embed a voice assistant to your app. Voice Scripts are written in JAVASCRIPT which makethemhighlycustomizableandflexible.
Alan AI provides a voice assistant to any type of application only with the help of APIs. ALAN AI does all the backend work of voice assistant developers only have to connect the api with its web app to import the featuresofALANAI.
6.3.1. ALAN STUDIO
Alan AI is a powerful web app based integrated development environment where you can debug, write and test dialog scenarios for your voice Chabot or assistance.
Fig. 9 ALAN Voice Assistant
6.3.2. ALAN CLIENT SDKs
Alan’s SDK providesan efficientwayto embeda feature inanyexistingapplication.
6.3.3. ALAN CLOUD
The ALAN AI backend framework consists of SpeechSynthesis; Natural Language Processing and Automatic Speech Recognition. The Alan cloud contains allsufficientdatatoperformthevoiceassistanttaskina veryflexiblemanner.
7. CONCLUSION
Traditionally reading newspaper used to take a lot of time and it was not interactive and fun to read newspaperwiththehelpofourproject.
Gathering news will become more fun and interactive The project is capable of retrieving news of all genres across the globe, and it will retrieve news according to user command if the user wants to listen to news in conciseformorindepth.
8. FUTURE DEVELOPMENT
Tomoveaheadfurtherwecanaddmorefunctionalityin our application. As soon as ALAN AI will update their software with more languages like Hindi and Japanese, then our web can also take command in many different languages and can be used globally. We also planned to implement recommendation system using machine learningwhichwillrecommendnewsaccordingtouser’s interest and we will also classify the news according to category of news, like if user will give command for positive news, then our web app provide news which willlieinpositivecategoryandvice versa.
International Research Journal of Engineering and Technology (IRJET) e ISSN:2395 0056
09 Issue: 04 | Apr 2022 www.irjet.net p ISSN:2395 0072
9. REFERENCE
[1]Machinelearning|Wikipedia https://en.wikipedia.org/wiki/Machine_learning
[2]NeuralNetwork|Ibm.com| https://www.ibm.com/cloud/learn/neural networks
[3]Robotics|Wikipedia|en.wikipedia.org
[4]ExpertSystem|Ibm.com| https://www.ibm.com/cloud/learn/IBM
[5] Natural Language Processing | IBM | www.ibm.com
[6]ALANAI|https://alan.app
[7]React|JavaScriptlibrary|https://reactjs.org
[8]Node.js|https://nodejs.org
BIOGRAPHIES
Mohd Faiez Heiscurrentlyastudentof B. Tech fourth year, Dept. of Computer Science and Engineering,Rameshwaram Institute of Technology & Management, Lucknow and working on News Reading AppbyusingALANA.I.
Ali Murtaza Heiscurrentlyastudentof B. Tech fourth year, Dept. of Computer Science and Engineering, Rameshwaram Institute of Technology & Management, Lucknow and working on News Reading AppbyusingALANA.I.
Aditya Sharma He is currently a student of B. Tech fourth year, Dept. of Computer Science and Engineering, Rameshwaram Institute of Technology & Management, Lucknow and working on NewsReadingAppbyusingALANA.I.
Sugandha Trivedi She is currently a student of B. Tech fourth year, Dept. of Computer Science and Engineering, Rameshwaram Institute of Technology & Management, Lucknow and working on NewsReadingAppbyusingALANA.I.
©
Subiya Siddiqui She is currently a student of B. Tech fourth year, Dept. of Computer Science and Engineering, Rameshwaram Institute of Technology & Management, Lucknow and working on NewsReadingAppbyusingALANA.I.
Shyam Dwivedi – He is currently working as an Assistant Professor and Head of Department in Rameshwaram Institute of Technology & Management, Lucknow, India. He is M. Tech 2012 BIT Mesra, Ranchi, he has a teaching experience of 10 years and 1 year in TCSIndustrialexperience.