Skip to content
← Back to Community
Omni - A Virtual Assistant
Profile icon
cloud9c

Omni - Voice Assistant

Omni is an online virtual assistant that uses speech recognition and speech synthesis. It can answer questions, using over 100 sources (Wikipedia, IMBd, The Free Dictionary, etc). Features include:

  • Getting the weather
  • Image Searching
  • Playing Music

For people who would rather type, the user's chatbox is editable (pressing enter would cause Omni to start processing).


Below is a full list of commands:

CommandExample
*Answering Questions"What is DuckDuckGo", "Who is Larry Page" "What are the Simpsons Characters
SoundCloud"Play Rock on SoundCloud", "Play Alone by Marshmello on SoundCloud"
YouTube"Play Despacito", "Play Ice Bucket Challenge Videos"
Current Weather"Is it snowing", "What is the Temperature"
Location-Based Weather"What is the weather in London", "Weather of China"
Image Searching (Flickr)"Show me an image of a cat", "Picture of a Mountain Range"
Small Talk"How are you", "What's your name"
Timer"Set a timer for one hour and twenty minutes", "Make a timer for one minute and two seconds"
Time"What's the time"
Date"What day is it today", "What's the date"
*CORS (Cross-Origin Resource Sharing) blocks javascript from getting a few answers. The solution is to use server-side languages like PHP, but it requires owning a server. Found a workaround!

Settings

SettingDescription
Hey OmniVoice-Activation (like Hey Siri). Work in Progress
User Language and DialectChanges the Speech Recognition language/dialect. Only English is supported so far
Omni VoiceChanges Omni's voice. It only speaks in English so far, so changing the language would make it have an accent (which is fun).
Omni VolumeChanges the Omni's volume (max is the default)
Omni RateChanges the Omni's rate of speech
Omni PitchChanges the Omni's pitch (middle is the default)

How does Omni find its answers?

Results that don't fit into any function are split into 4 categories:

  • A (article),
  • C (categories)
  • D (disambiguation)
  • E (exclusive)

Article answers give an abstract/summary of the answer, using sources such as Wikipedia and IMBd. Disambiguation answers mean that the result is not specific enough (more than one possible answer). For example, the word "Apple" could mean the company or the fruit. For this reason, the reply is a bullet list of more specific answers. Category answers are from results such as "Simpsons Characters", where the answer is a list of characters in The Simpsons. Exclusive answers mean it is something with a definite answer, rather than defining something. For example, 2*2 or the size of Earth.

Example (GIF)

This file cannot be displayed: https://storage.googleapis.com/replit/images/1549852568022_d112e8e778313752514c1208d10e3f31.gi

Important: You have to open the repl in a new tab

This is because the functions (keyboard & microphone) won't work.

Voters
Profile icon
403Devs
Profile icon
gamesaver
Profile icon
UntitledWebsite
Profile icon
TheScaryOnion
Profile icon
AR199
Profile icon
HYDRAGAMer
Profile icon
anand88
Profile icon
AbhishekBora
Profile icon
Soccer135246
Profile icon
SleepyBehemoth
Comments
hotnewtop
Profile icon
davwheat

Asks Omni: 'What is the capital of the UK?'
Omni replies: 'Capital UK is a radio station broadcasting through the digital platform across the United Kingdom and is owned by Global Radio.'

Profile icon
cloud9c

@davwheat This happens because it removes stop words such as "what" "is" "the" "of". The end result is just "Capital UK".

Profile icon
davwheat

@cloud9c Ah.... makes sense.

Profile icon
HarperframeInc

Me: What is 1 + 1?

![image]
(https://storage.googleapis.com/replit/images/1550185275876_0ebdda5ab682e5e1ae1ba8c0eca56265.pn)

Omni: [Object object]
Me: Okay Puts answer on homework

This file cannot be displayed: https://storage.googleapis.com/replit/images/1550186048051_f8b34ade2cba4e0371571bc667a8a240.pn

Solve this bug, please.

Profile icon
HarperframeInc

@cloud9c Still not fixed

Profile icon
joshwood

This is really impressive. How did you do the voice recognition?

Profile icon
cloud9c

@joshwood There's a really good documentation by Mozilla on Web Speech API

Profile icon
amasad

Very cool! This is one of my favorite from the challenge

Profile icon
cloud9c

@amasad Thanks

Profile icon
1Ethan

This is really exceptional. Although some inputs aren't accepted, overall this is great and performs well. I also got the voice input working. Nicely done, @cloud9c !

This file cannot be displayed: https://storage.googleapis.com/replit/images/1550264655750_20b270b5c287af15bfee296cc3144e2d.gi

Profile icon
madmonster

superbly amazing.

Profile icon
KiKUP

Amazing, but once I turn on voice recognition I can't turn it off.

Profile icon
SharanKiller

Why is she just alive

Profile icon
AmalPapali

where is it, i cant find the code to it

Profile icon
oddanim8s

an error is HEREEEEEEEE

Profile icon
loonytunes6

it just says thinking...

Profile icon
cloud9c

@NicolasLeduc It's been 2 years so don't expect anything to work

Profile icon
loonytunes6

i doesn't work

Profile icon
ByBolawa

hey dude the soundclound and youtube features aren't working on this

Profile icon
NigelIsCoding

How does it get the weather because I am also trying to build a virtual assistant but it does not have weather yet

Profile icon
Rileygamer21

its not working for me

Profile icon
cloud9c

@Rileygamer21 fork n run it

Profile icon
Rileygamer21

@cloud9c Its still not working even if I type something in

Profile icon
cloud9c

@Rileygamer21 it works for me. rip

Profile icon
Rileygamer21

@cloud9c I could try to download it and see if it works like that.

Profile icon
AydenB

doesnt work anymore

Profile icon
madmonster

Astonishing powerful. Well done! :)

Profile icon
cloud9c
Profile icon
SolveForX2

Holy CRAP! This is awesome! You should try to connect it to spotify somehow.