Back

Sanskar

Keen Learner and Exp... • 5d

Day 22 of learning python as a beginner. Topic: speech_recognition, webbrowser, pyttsx3 speech_recognition: this is a popular library used to convert audio to text. it helps in capturing audio from microphone or audio files. I am using google's web speech api in this. webbrowser: helps in communicating with the browser to open urls in the browser. This is built in in python. pyttsx3: this is an online text to speech converter. using these three I created and modified a program that can open any website just when you say the name of it. I also have plans for expanding much more features into this. Initially I used if else statements all over the code however I soon realised that I may be compromising with scalibilty of code by using so much of if else. Therefore I used match cases to analyse the user command and identify what he is trying to open. A few amazing people suggested me that I should use multi-line comments to make my program more readable, thus I got introduced with readme.md file where I can use these type of comments to tell what is happening (I know it may not be what those amazing people meant however I just found this interesting so thus I implemented it). I have also started using GitHub because I realised that I can much more widely experiment with the code with when I don't have the fear of messing it up. Some of you commented that I should not use videos in the post because they were unable to see the code. Therefore I am sharing the refined and modified version of that code. I would appreciate any suggestion that will help me improve my code. Here's my code and its result (for those who want to see the video of it's functioning can see my day 21 post on my linkedIn you can find my linkedin in my profile).

Reply

More like this

Recommendations from Medial

shashank phapale

Hey I am on Medial • 1y

www.facebook.com/AndNowHigh5 👆Facebook is banning me from pasting content. Perticularly Android app code . The app name is SoundScout and facebook not letting me post the actual code that I have. This audio based navigation app might replace Googl

See More
Reply
1
Image Description
Image Description

Bizibeast

Building thehooked.c... • 1y

I don't know how to code and that made me a criminal So I decided to make a change It's been one of the biggest pain points of my life that I don't know how to build apps and code. As a CEO, I need to be aware of every aspect of my startup but th

See More
11 Replies
2
15
Image Description
Image Description

Faizan Ansari

Hey I am on Medial • 1y

I am working as a Full stack developer in a small company, today my CEO asked me to write javascript code to automate email response, I accomplished it using Google Apps Script, and use ChatGPT to write the code. I want to know did i had any other

See More
5 Replies
1
8

Sanskar

Keen Learner and Exp... • 1d

Day 26 of learning python as a beginner. Topic: CRUD operations in python postgreSQL. I had tried to explore SQL database handling in python and someone suggested me that I should also try performing CRUD (Create, Read, Update and Delete) operation

See More
Reply

Prince Yadav

Co -founder at Trade... • 1y

Today I Learnt stack using Linked list and Array in C++. Here is a Code of Stack Using Linked List.

Reply
5
Image Description
Image Description

Durgesh Chaudhari

Developer • 5m

Working as a Web Developer, I believe in working smart rather than just hard. I leverage ChatGPT to speed up my development process, using it to refine logic and generate code snippets that enhance efficiency. While GPT doesn’t provide the entire sol

See More
2 Replies
2
14
Image Description
Image Description

Kritarth Mittal • Soshals

Founder, Soshals | C... • 12m

I was feeling depressed so I sat down to write code and get my mind off of things. It's 7 in the morning, I have changed about 800+ lines of code and life's good again. I keep forgetting tech is the true god.

3 Replies
5

Madhur Ahlawat

Audiophile with 8 ye... • 5m

Hi! friends, Hope you all are doing well! I am an Audiophile with 8 years of music listening experience. I only listen to Bollywood and English music but I am a hard-core Bass lover. I belong to an era of early 2000 when sound was the primary mode o

See More
Reply
2

Download the medial app to read full posts, comements and news.