Title: Jarvis · Issue #183 · ActiveState/code · GitHub
Open Graph Title: Jarvis · Issue #183 · ActiveState/code
X Title: Jarvis · Issue #183 · ActiveState/code
Description: #!/usr/bin/env python3 Requires PyAudio and PySpeech. import speech_recognition as sr from time import ctime import time import os from gtts import gTTS def speak(audioString): print(audioString) tts = gTTS(text=audioString, lang='en') t...
Open Graph Description: #!/usr/bin/env python3 Requires PyAudio and PySpeech. import speech_recognition as sr from time import ctime import time import os from gtts import gTTS def speak(audioString): print(audioString) t...
X Description: #!/usr/bin/env python3 Requires PyAudio and PySpeech. import speech_recognition as sr from time import ctime import time import os from gtts import gTTS def speak(audioString): print(audioString) t...
Opengraph URL: https://github.com/ActiveState/code/issues/183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Jarvis","articleBody":"#!/usr/bin/env python3\n# Requires PyAudio and PySpeech.\n\nimport speech_recognition as sr\nfrom time import ctime\nimport time\nimport os\nfrom gtts import gTTS\n\ndef speak(audioString):\n print(audioString)\n tts = gTTS(text=audioString, lang='en')\n tts.save(\"audio.mp3\")\n os.system(\"mpg321 audio.mp3\")\n\ndef recordAudio():\n # Record Audio\n r = sr.Recognizer()\n with sr.Microphone() as source:\n print(\"Say something!\")\n audio = r.listen(source)\n\n # Speech recognition using Google Speech Recognition\n data = \"\"\n try:\n # Uses the default API key\n # To use another API key: `r.recognize_google(audio, key=\"GOOGLE_SPEECH_RECOGNITION_API_KEY\")`\n data = r.recognize_google(audio)\n print(\"You said: \" + data)\n except sr.UnknownValueError:\n print(\"Google Speech Recognition could not understand audio\")\n except sr.RequestError as e:\n print(\"Could not request results from Google Speech Recognition service; {0}\".format(e))\n\n return data\n\ndef jarvis(data):\n if \"how are you\" in data:\n speak(\"I am fine\")\n\n if \"what time is it\" in data:\n speak(ctime())\n\n if \"where is\" in data:\n data = data.split(\" \")\n location = data[2]\n speak(\"Hold on Frank, I will show you where \" + location + \" is.\")\n os.system(\"chromium-browser https://www.google.nl/maps/place/\" + location + \"/\u0026amp;\")\n\n# initialization\ntime.sleep(2)\nspeak(\"Hi Frank, what can I do for you?\")\nwhile 1:\n data = recordAudio()\n jarvis(data)\n\n","author":{"url":"https://github.com/siddharthrgade21-a11y","@type":"Person","name":"siddharthrgade21-a11y"},"datePublished":"2026-01-07T11:55:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/183/code/issues/183"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a68ccc54-18e8-7744-29da-90b285c6a2f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 915A:1F9980:DE8923:12A7F4F:6969899E |
| html-safe-nonce | 69a4050e18ef616eeebf72ae8a2ecd638e8556bbebe70c9577ab60decc3d0e16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTVBOjFGOTk4MDpERTg5MjM6MTJBN0Y0Rjo2OTY5ODk5RSIsInZpc2l0b3JfaWQiOiI5MDIxMDkxNjIwMjg2MjA0MzE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 78d63783d43c5229c21f351be0d6c9842c270241d97fc317d8975e80f76042ac |
| hovercard-subject-tag | issue:3788461648 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ActiveState/code/183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed0dcce389cf3821971868b7da137a5aa226cb93d0e5ed38d99c8daaa5207986/ActiveState/code/issues/183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed0dcce389cf3821971868b7da137a5aa226cb93d0e5ed38d99c8daaa5207986/ActiveState/code/issues/183 |
| og:image:alt | #!/usr/bin/env python3 Requires PyAudio and PySpeech. import speech_recognition as sr from time import ctime import time import os from gtts import gTTS def speak(audioString): print(audioString) t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | siddharthrgade21-a11y |
| hostname | github.com |
| expected-hostname | github.com |
| None | 533e7cac596c452090972c1150d587fd0b36531b8dc4e8bbfe4ab694aca02408 |
| turbo-cache-control | no-preview |
| go-import | github.com/ActiveState/code git https://github.com/ActiveState/code.git |
| octolytics-dimension-user_id | 319781 |
| octolytics-dimension-user_login | ActiveState |
| octolytics-dimension-repository_id | 98225960 |
| octolytics-dimension-repository_nwo | ActiveState/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 98225960 |
| octolytics-dimension-repository_network_root_nwo | ActiveState/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63d27af10eea2ccab520b162530cf6c7b739e767 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width