{"id":15575318,"url":"https://github.com/vickumar1981/megatron","last_synced_at":"2026-04-19T20:35:37.581Z","repository":{"id":14550846,"uuid":"17266220","full_name":"vickumar1981/megatron","owner":"vickumar1981","description":"My version of Siri for Ubuntu 12.10+.  Modules available on CPAN.","archived":false,"fork":false,"pushed_at":"2016-06-24T00:17:48.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T14:46:53.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vickumar1981.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-27T21:53:55.000Z","updated_at":"2016-06-24T00:17:49.000Z","dependencies_parsed_at":"2022-09-23T21:31:06.701Z","dependency_job_id":null,"html_url":"https://github.com/vickumar1981/megatron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vickumar1981/megatron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fmegatron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fmegatron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fmegatron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fmegatron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vickumar1981","download_url":"https://codeload.github.com/vickumar1981/megatron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fmegatron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28007600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T18:28:59.489Z","updated_at":"2025-12-24T20:10:09.773Z","avatar_url":"https://github.com/vickumar1981.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"megatron\n========\n\nMy version of Siri for Ubuntu 12.10+.  Modules available on CPAN.\n\nTested and working on : Ubuntu 12.04, 12.10, 13.04, 13.10, 14.04  Fedora 17, 18, 19, 20\n\nThis is not a complete list.  The program should work on any Linux machine provided the requirements are installed.\n\n\nrequirements\n============\n\n-  espeak:  linux text to speech program  \n    install by typing 'sudo apt-get install espeak'\n    \n-  sox:  the Swiss army knife of sound programs \n    install by typing 'sudo apt-get install sox'\n    \n-  perl libraries:  WWW::WolframAlpha, AI::MegaHAL, LWP::Simple, Chatbot::Eliza, Thread::Queue, X11::GUITest\n    e.g., install by typing: 'perl -MCPAN -e 'install WWW::WolframAlpha', to install module from CPAN.\n\n   You will also need to install LWP::Protocol::https in order to communicate with google's speech to text api.\n    \n\nto run\n======\n\n./megatron.pl   (Assuming you've run 'chmod 755 megatron.pl')\n\n\nThe program will start by greeting you.  You can ask it to do things by saying, \"Hey megatron\" followed by\nwhatever you'd like to say.  You can ask it questions or just say stuff to it or ask it to do a few things.\n\nRight now, the commands are pretty limitied and work on using a certain vocabulary (\"open\".  \"start dictation\", etc).\n\nexamples:  \n\n\"Hey megatron, can you open the internet?\"  (Should open your internet browser, the same command \"open\" \ncan be used to open any program.  The list can be customized in the megatron.conf file.)\n\n\"Hey megatron, what is the population of Iceland?\"\n\nTelling megatron to \"stop\" will exit the program.\n\n\ncommon problems\n===============\n\nYou might need to adjust the settings on your input microphone to get megatron to listen to you.\n\nOnce sox is installed, you can test out your recording device by typing 'sox -q -t alsa default test.wav rate 16k silence 1 0.1 5% 1 2.5 8%' and then play the file back using 'play test.wav'.\n\nMake sure the test.wav file sounds audible, and that the sox program only stops recording when you stop speaking.\n\nOpen and run megatron.  The program should now be printing to the console what it thinks you're saying.\n\nAlso, you might want to turn the TV off or radio.  The microphone setting, if turned up too loud, can pick up ambient noise which can distort the recording.\n\n\nai\n==\n\n(NOTE: On many 64 bit systems, there is a bug in saving the brain file. \n By default, this learning setting is disabled in the megatron.conf, set autosave=1 to allow the brain file to grow)\n \nMegatron's brain is pretty limited and starts out empty initially.  It learns sentence structure from the things\nyou say to it. To speed up the learning process, a helper script is attached, which let's megatron's brain learn \nsentences from Wikipedia.  Install the 'WWW::Wikipedia' module from CPAN and run the script like below:\n\n./teach_from_wikipedia 50000\n\nWhich will learn 50,000 English sentences from Wikipedia.\n\n\nlimitations\n===========\n\nThe program doesn't know where you are geographically.  So if you ask it how the weather is going to be or a question\nwhich is specific to your geography, it won't understand.\n\n\nfeedback\n========\nAny feedback or suggestions are greatly appreciated.  Thanks and enjoy.\n\nvickumar@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickumar1981%2Fmegatron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvickumar1981%2Fmegatron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickumar1981%2Fmegatron/lists"}