Python Assistant

2021.12.03 04:23 Captin88_blue Python Assistant

So I have a couple of questions in regard to this program I'm making. To give some context I'm making an assistant to control/manage 3d printers. Right now I have gotten it to work pretty well when it's just a text based assistant but since I've tried to add speaking and listening to the bot things aren't working super well.
1) Why is the assistant not speaking the responses I'm sure this is something super easy but I can't figure it out
2) When I run the code with all of the listening and speaking functions the but runs much slower to the point to where it makes the bot not practical to use
Here is the main.py file

import os import time from known_requests import simple from printer import print_commands from queueCommands import * from speaking import * # from queueCommands import Queue_Commands # from IG import ig while True: if __name__ == '__main__': try: time.sleep(1) print("What can I do for you?: ") text = get_audio() print_commands(text) simple(text) add(text) view_queue(text) remove(text) # ig(text) except KeyboardInterrupt: print('program killed') exit() except ConnectionError: print('Connection error occured') except TimeoutError: print('took to long') 
Speaking.py for the get audio and speak function
import os import time import playsound import speech_recognition as sr from gtts import gTTS import pyttsx3 def speak(text): engine = pyttsx3.init() engine.say(text) engine.runAndWait() def get_audio(): r = sr.Recognizer() with sr.Microphone() as source: audio = r.listen(source) said = "" try: said = r.recognize_google(audio) print(said) except Exception as e: print("Exception: " + str(e)) return said 
Lastly the code for just some basic requests
from datetime import datetime from datetime import date from main import speak def simple(text): if text == "what time is it": now = datetime.now() current_time = now.strftime("%H:%M:%S") speak("Current Time =", current_time) if text == "what is today's date": today = date.today() d2 = today.strftime("%B %d, %Y") speak(d2) if text == "hello": speak("Hey") if text == "goodbye": speak("goodbye") exit() 
Any help I can get I appreciate in advance. Also I'm sure a lot of these issues are just me being dumb and overthinking things.
submitted by Captin88_blue to pythonhelp [link] [comments]


2021.12.03 04:23 The_holy_dinosaur_ Tried converting my height to the imperial system so I can compare it to my friends but now I’m confused

Tried converting my height to the imperial system so I can compare it to my friends but now I’m confused submitted by The_holy_dinosaur_ to mildlyinfuriating [link] [comments]


2021.12.03 04:23 Fox_Sure why bother drinking if not to get drunk?

i don’t understand the point, sometimes people have a drink or two but if i don’t intend to get drunk it feels like a waste. like i’ll just have juice if that’s what we’re doing. it just doesn’t taste good anyway, so what’s the point if you aren’t gonna drink it for the effects?
submitted by Fox_Sure to NoStupidQuestions [link] [comments]


2021.12.03 04:23 brandon_the_bald [LindseyAdler] This story also notes that MLB did not make a core economics proposal this week during negotiations. The MLBPA made a proposal on Tuesday, but “MLB declined to counter […] unless the MLBPA agreed in advance to drop a number of key demands.”

[LindseyAdler] This story also notes that MLB did not make a core economics proposal this week during negotiations. The MLBPA made a proposal on Tuesday, but “MLB declined to counter […] unless the MLBPA agreed in advance to drop a number of key demands.” submitted by brandon_the_bald to baseball [link] [comments]


2021.12.03 04:23 Necessary_Author_308 🥇Baby Satoshi Token🥇 Stealth launch 10 Minutes | 🚨 Fair launch | Join Us !! | Liquidity locked | Great Community 🦾 💎

💎 Welcome🥇Baby Satoshi Token🥇
🚨🚨 FAIR LAUNCH🚨🚨
TOKEN 🥇Baby Satoshi Token🥇 is funded solely through its own cryptocurrency, a BEP20 token leveraging a smart contract on the Binance Block Chain network.
Here are some specs:
✅ Verified Contract
✅ Locked liquidity - Liquidity is locked on DeepLock
Tokenomics:
🥇 3% Marketing
🥇 3% distributed to holders
💎 FAIR LAUNCH
100% of the Baby Satoshi Token supply was seeded as liquidity. That means no presale and no allocation to team members.
💎 REWARDS FOR HOLDERS
3% of all transactions are distributed to holders in Baby Satoshi Token BEP20. No need to claim, all distributions happen automatically every hour.
✅ Initial investment in locked liquidity
Here's our roadmap:
🌟Phase 1:
Token idea
Create TG group
Create social accounts
Awarness through Reddit/Influencers.
🌟Phase 2:
Minor crypto related websites listings with paid upvotes: Coinsniper, Coinhunt, Gemfinder, Coinvote
Marketing push
Videos by TikTokers
Video by Youtuber
Instagram paid stories
Shill Bots
Pinned messages in major Telegram groups
🌟 Phase 3:
Apply for major listings such as:
Coingecko
Coinmarketcap
💳 How To Buy? 💳
🏷️ Contract Address: 0xb8862b2a04f5002C40D3f5fbf114Dbd555c43d96
🍰 Pancakeswap:https://pancakeswap.finance/swap?outputCurrency=0xb8862b2a04f5002C40D3f5fbf114Dbd555c43d96
🔹 Renounced https://bscscan.com/token/0xb8862b2a04f5002C40D3f5fbf114Dbd555c43d96#readContract
🔐 Liquidity Lock 1 YEAR🔒 https://deeplock.io/lock/0xe61ecfd2d8650f3876e69045c96fb9cc49e63ea1
submitted by Necessary_Author_308 to CryptoMoon [link] [comments]


2021.12.03 04:23 frikler /KOKODI/ Ethereum NFT project.

/KOKODI/ Ethereum NFT project. submitted by frikler to nonfundabletoken [link] [comments]


2021.12.03 04:23 Kozlow Had a root canal on a molar and while waiting to get it filled it chipped.

How screwed am I? Is it still possible to fill it and cap it if it’s not too bad. I’m trying to get a pic but it’s all the way in the back and hard to get.
submitted by Kozlow to askdentists [link] [comments]


2021.12.03 04:23 Shinobi27824 😐😐😐

😐😐😐 submitted by Shinobi27824 to NANIKPosting [link] [comments]


2021.12.03 04:23 Mrneedily How do I stop being an overbearing partner?

Hello. I am a 21 year old boy who is dating a lovely 20 year old girl. This girl is amazing. She’s so much fun to be around that I am constantly asking her to hang out or play games with me etc etc.
Thing is, I noticed lately that I’ve been hanging out with her A LOT. So I brought up the question if we hang out too much and she said “maybe, but it’s not like I’m doing anything else”
So I kinda probed her a bit to ask if she needed more time for herself, and she of course hinted that she loves her alone time but also likes seeing me.
I am a very emotional man. I wear my emotions on my sleeve and I express my gratitude. This girl means a lot to me so I show it.
I show it by;
Replying FAST, if my phone is nearby I’m gonna text her if she texted me.
Being available whenever I can
Always asking her to hang out
Sending her constant memes, TikToks, updating her on my life.
Basically I’m always around. And it’s not like I don’t have my own life, I have hobbies and other friends I attend to, and I treat those the same too, I respond fast, i act as therapist a lot, etc.
But this makes me feel like I’m overwhelming my girlfriend. She wouldn’t admit to it but I can read a room and can tell that I’m being a bit much. How do I slow down without losing some of my identity?
I want her to know how much she means to me and I usually show that by putting her as a big priority in my life, but I can’t help but feel I am suffocating her.
Should we hang out less? We hang out maybe 3-4 days a week and sometimes even more because I never got the impression that I was bothering her, but since this conversation with her hinting she needs more her time, how do I slow it down without her feeling im distant?
submitted by Mrneedily to relationship_advice [link] [comments]


2021.12.03 04:23 Traditional-Panda-65 trading neon snow leopard no potion

submitted by Traditional-Panda-65 to AdoptMeTradingRoblox [link] [comments]


2021.12.03 04:23 Don_Scott_92 Where to upgrade? I have 151k coins

Where to upgrade? I have 151k coins submitted by Don_Scott_92 to fut [link] [comments]


2021.12.03 04:23 Stellarey Withdrawal

What are the symptoms of withdrawal?
submitted by Stellarey to Nicotine [link] [comments]


2021.12.03 04:23 koristarloh just curious

just wondering what shop in town people find best for belly piercings? kinda nervous not sure what to expect for the price and I'm new in town so was curious to get all of your thoughts. thank you!
submitted by koristarloh to barrie [link] [comments]


2021.12.03 04:23 DoubtIntelligent8229 I finally made it 😂

I finally made it 😂 submitted by DoubtIntelligent8229 to dogelon [link] [comments]


2021.12.03 04:23 moviedragon009 Black Cat Steals Christmas

Black Cat Steals Christmas submitted by moviedragon009 to Marvel [link] [comments]


2021.12.03 04:23 Spirited_Work_4997 CHEEMSBONK 🚀 ATH after ATH!! Stealth Launched!! Do Not Miss The FOMO!! 💥Marketing is about to get BIG, this is not a joke, BIG Names!! NFTS coming!!! Amazing Reflections and BUSD Rewards!! 🚀 BSC Next Amazing Moonshot! 100% SAFU 🤝! BUSD 🤑 rewards! 🌐 Don’t Miss Out on the next BIG Cheems!!!

CHEEMSBONK - CHEBONK - 1000x Moonshot!! 🚀 - Super SAFU!! - Just Stealth Launched!! 💥- 💰Amazing BUSD Rewards!!
THIS IS ABOUT TO GET SERIOUS!!! THIS IS NOT A FALSE ALARM, JUST LOOK AT THE CHART!!! PEOPLE ALREADY KNOW WHATS COMING AND ITS GOING TO BE HUGE!! WE ARE SPENDING OUR OWN MONEY ON MARKETING AND ITS GOING TO BE NO JOKE!!!
SOME OF THE BIGGEST NAMES ARE GETTING LINED UP AND BEHIND THIS PROJECT!! MARK MY WORDS IF YOU MISS THIS TODAY YOU ARE GOING TO REGRET IT!!!
WEBSITE AND DASHBOARD LAUNCHED!! NFTS ARE LITERALLY BEING DEVELOPED AS WE SPEAK FOR AND GOING TO BE RELEASED SOON!! AND WE ARE MAKING MOVES ON EVEN MORE!!!
Welcome to CHEEMSBONK – CHEBONK!!!!
CHEEMSBONK is ready to MOON!! AMAZING TEAM, AMAZING COMMUNITY, AND AMAZING BUSD REWARDS AND REFLECTIONS what else could you ask for at launch?!?!?
CHEEMSBONK is the ULTIMATE CHEMS token with AWESOME BUSD Rewards and AMAZING REFLECTIONS🚀🚀🚀🚀
Amazing BUSD rewards to fill your bags while you hold and KILLER RELFECTIONS to rack up those rewards even faster!!!
Did somebody say CHEEMSBONK NFTs and games in the works?!?!? 👀👀👀👀
Professional Shill Leaders to hype and lead the time spread the word!!!
Awesome dev team and community!! Super SAFU with killer previous projects!! Come join the awesome TG and learn what CHEEMSBONK is all about!!!
1000x moonshot potential!! Not just another moonshot, but CHEEMSBONK!!!
Anti-Whale and Anti-Dump to keep your bag safe and those BUSD rewards flowing in!!!
🚀STEALTH LAUNCHED AND READY TO HIT THE MOON!!🚀
The DEV and team are 100% SAFU and ready to kill it!!!
💎 BUSD rewards 💰
💎 Safu Dev ✊
💎 Anti Whale 🐋
💎 Anti Dump 🚫
💎 Anti Snipe 🔫
💎 Marketing Wallet 📸
💎 Verified Contract ✅
💎 Active Community 🏃🏿‍♂️‍
🏷️ Contract Address: 0x41e9Bc1a15aE089fE4780EE95848729F521a3dCa
Pancakeswap: https://pancakeswap.finance/swap?outputCurrency=0x41e9Bc1a15aE089fE4780EE95848729F521a3dCa
🔹 Renounced Ownership: https://bscscan.com/token/0x41e9Bc1a15aE089fE4780EE95848729F521a3dCa#readContract
🔐Liquidity Lock 1 YEAR🔒 https://deeplock.io/lock/0x93e5a9149ceed5ec5faf516ab8e1636c572da64b
submitted by Spirited_Work_4997 to CryptocurrencyICO [link] [comments]


2021.12.03 04:23 DigitalOSH Now you're just a backyard that I used to know

submitted by DigitalOSH to CozyPlaces [link] [comments]


2021.12.03 04:23 alexstevenro Laptop for arhitecture student

Hi. Not a gaming laptop i'm looking for but i hope there is someone here that can help me. Someone asked me to find a laptop as a christmas gift for an arhitecture student. Now here's the thing, i found 2 laptops. One for ~700 eur with a ryzen 7 4th gen and a 1650 ti which is a zephyrus g14, and the other is a vivobook pro with a 3050 and a 5th gen ryzen 7 for 1000 euros. My question is which one should i recommend, considering that the person is looking for to not overspend, but also have a decent experience for things like cad software (autocad, blender, 3dsmax etc.), Besides school it is mostly light browsing.
submitted by alexstevenro to GamingLaptops [link] [comments]


2021.12.03 04:23 Feeling_TemporaryX Does anyone want to chat? :) I'm 23 female..

Hi ^-^ looking to chat with someone. I'm not good at conversations tbh.. but I enjoy virtual company anyway. <3
submitted by Feeling_TemporaryX to chat [link] [comments]


2021.12.03 04:23 drynionph Floki World | Fast Track Incoming | Launching Now on BSC | Liquidity Lock | Low Marketcap!!



Floki World

100-250X potential realistic
Amazing and active community
Heavy marketing ongoing and incoming!

About
Welcome to Floki World. As we all know Elon’s new adorable Shiba Inu puppy named Floki has arrived. He is the inspiration for Floki World and we will be creating content based around Floki with our NFT’s and Game.
Now Elon Musk has Floki we can be certain that we will see more tweets and posts around Floki and we all know what kind of impact that had on Baby Doge!
Daily giveaways for shilling and game contests. Active voice chats and the most active community on bsc!

Supply
100,000,000 supply
LP for 1 year

Tokenomics
4% Marketing
5% Liquidity
3% BUSD rewards (will not be activated until 1m Mc)
Marketing
So far…
- CMS Top 1-2 trending
- Manual burn of 8.4%
- Paid shill raid leaders
- Paid for 2500 Coinsniper Upvotes front page
- Submit Poocoin Ad 4k speant
- Buyback/ further burn
- Top trending CMS agai
- Submit Gem spree Ad & promoted coin
- Submit BSC / DEXTOOLS socials and logo info ( very soon)
-CQ Application
- CG fast track application (Waiting on application checks)
-More buybacks and burns
-10BNB re-up on Poocoin ads
-Hired shiller and shillraid leaders (Thanos & Rukawa)
-Setup international communities channels
-extended the liquidity lock to 1 year
-Social media airdrop to boost exposure (coming)
Upcoming…
+New Website
+Full social media exposure
+Dextools trending/ ads
+Billboard setup in London on the way and in talks
+Billboard setup in Newyork setup underworks
+Cg application pending with 300k mc to wait for fast track guys we are bullish

Contract Address: 0x588B87EC588d52503f19CC8CbE7B87FE776210A6
Pancakeswap: https://pancakeswap.finance/swap?outputCurrency=0x588B87EC588d52503f19CC8CbE7B87FE776210A6

Website: https://flokiworl.com/
Telegram: https://t.me/FlokiWorldOfficial
Twitter: https://twitter.com/FlokiWorldBSC
submitted by drynionph to CryptoMoonCoins [link] [comments]


2021.12.03 04:23 cafra101 What is the attitude towards drink driving in your country?

By this I mean: what are the laws, how strictly are they enforced, what are the repercussions if you're caught, and what are
submitted by cafra101 to asklatinamerica [link] [comments]


2021.12.03 04:23 cafra101 What is the attitude towards drink driving in your country?

By this I mean: what are the laws, how strictly are they enforced, what are the repercussions if you're caught, and what are
submitted by cafra101 to asklatinamerica [link] [comments]


2021.12.03 04:23 Dog_Lover_6969 I feel a little bi but I'm not allowed to be

Before anyone says anything, I'm a decout Christian and I'm not changing my ways. I feel kind of weird though because I have fantasies about both genders with an imaginary boyfriend/girlfriend and they can get intense and it's not technically allowed in real life. Good thing is I lean more towards women anyway.
submitted by Dog_Lover_6969 to bisexual [link] [comments]


2021.12.03 04:23 serugolino YOU THINK THE SHOW WOULD WORK WITH A DIFFERENT FORMAT?

What I mean is.
Imagine if the episodes were 1 hour long and instead of 16 we got 10 or 6 a season.
I mean there are only 193 issues which are all around 25 pages right? If 20 minute animated shows can adapt up to 3 issues sometimes, why can't the walking dead adapt up to 4 or 5 per episode?
Sure there would be slow episodes to build character, but that is still nowhere near 177 episodes. I think with only 66 to 90 episodes the show would be excellent.
What do you guys think?
submitted by serugolino to thewalkingdead [link] [comments]


2021.12.03 04:23 EugeneWong318 Stupid POS.

Stupid POS. submitted by EugeneWong318 to LibHumor [link] [comments]


http://sv-event.ru