Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pyttsx3 text-to-speech module instead of os.system('say "..."') for cross-platform compatibility #32

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

Stormwind99
Copy link

This pull request uses pyttsx3 TTS (text-to-speech) module instead of os.system('say "..."') for cross-platform compatibility - allowing scripts to work on Mac, Windows, and Linux without changes.

This should also allow removal of any Windows-specific scripts in the repo, reducing maintenance/upkeep needed.

@pcomputo
Copy link
Owner

pcomputo commented Apr 10, 2020

Thanks a lot for getting this out. I've added a link to your PR in the Readme, meanwhile I try to test this. Thank you!

@@ -48,7 +54,7 @@ def getWFSlot(productUrl):
open_slots = soup.find('div', class_ ='orderSlotExists').text()
if open_slots != "false":
print('SLOTS OPEN!')
os.system('say "Slots for delivery opened!"')
sayIt("Slots for delivery opened!"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sayIt("Slots for delivery opened!")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants