This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to install rootless Docker for the current user | |
check_command() { | |
if ! command -v "$1" &> /dev/null; then | |
echo "Error: $1 is required but not found. Please install it and try again." >&2 | |
exit 1 | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import speech_recognition as sr | |
import pyttsx3 | |
import datetime | |
listener = sr.Recognizer() | |
engine = pyttsx3.init() | |
voices = engine.getProperty('voices') | |
engine.setProperty('voice', voices[1].id) | |
rate = engine.getProperty('rate') | |
engine.setProperty('rate', 150) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyttsx3 | |
import requests | |
import json | |
import time | |
url = ('https://newsapi.org/v2/top-headlines?' | |
'country = in&' | |
'apiKey =') | |
url += 'YOUR_API_KEY_HERE' |