mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
commit message
This commit is contained in:
parent
a0878b5d01
commit
15836a94bf
13
scripts/Getting_Wikipedia_Info/GetWikiInfo.py
Normal file
13
scripts/Getting_Wikipedia_Info/GetWikiInfo.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import wikipedia
|
||||
import pyttsx3
|
||||
engine = pyttsx3.init('sapi5')
|
||||
voices = engine.getProperty('voices')
|
||||
engine.setProperty('voice', voices[0].id)
|
||||
def speak(audio):
|
||||
engine.say(audio)
|
||||
engine.runAndWait()
|
||||
query = input("What You Want To Ask ??")
|
||||
results = wikipedia.summary(query, sentences=2)
|
||||
speak("According to Wikipedia\n")
|
||||
print(results)
|
||||
speak(results)
|
10
scripts/Getting_Wikipedia_Info/readme.md
Normal file
10
scripts/Getting_Wikipedia_Info/readme.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
# Getting Wikipedia Information
|
||||
super easy and simple python script to get wikipedia information
|
||||
|
||||
## Installation
|
||||
Install the dependencies
|
||||
|
||||
```sh
|
||||
pip install -r requirements.txt
|
||||
```
|
1
scripts/Getting_Wikipedia_Info/requirements.txt
Normal file
1
scripts/Getting_Wikipedia_Info/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
pyttsx3==2.90
|
Loading…
Reference in New Issue
Block a user