Skip to content

πŸ’¬ 🐳 Bot by MERN(React Hooks) Stack using Azure Cognitive Service (Speech to Text, Translate)

Notifications You must be signed in to change notification settings

kimtth/voice-translator-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

voice-translator-bot

Voice recognition and translation bot, which is developed by MERN stack, the most famous composition while developing backend and frontend.

The aim of this project is for learning MERN stack and integrating it with Azure cognitive service.

The Features

  • Channel Searching
  • Channel Selection
  • Send an inquiry and Response from Bot
  • UI & Toggle Button (Mic Button)
  • Blue colored scroll bar & Auto Scrolling
  • API (Express & MongoDB)
  • Integrate with Azure Cognitive Service (Speech to Text)
  • Integrate with Azure Cognitive Service (Translate (ja->en))
npm install
yarn install

nodemon app
yarn start

npm install 'module_name'
yarn add 'module_name'
  • Please install moesif origin & cors changer of chrome extension.
  • Please config proper values in 'front-react/src/components/Constants.js'
  • Pleas install MongoDB, then creating the sample data using creatFakeData.js.

preview

MongoDB Tips

Add field to all documents

db.channels.update({},{$set : { "owner" : true}} , false, true);

Rename the exists document

db.user.update({}, {$rename:{"Id":"userId"}}, false, true);
db.user.update({}, {$rename:{"name":"username"}}, false, true);
db.channels.update({},{$set : { "password" : "1234"}} , false, true);

Transaction

session = db.getMongo().startSession()
session.startTransaction({ readConcern: { level: "snapshot" }, writeConcern: { w: "majority" } } );
session.startTransaction()
session.commitTransaction()
session.abortTransaction()