SlapBot / stephanie-va

Stephanie is an open-source platform built specifically for voice-controlled applications as well as to automate daily tasks imitating much of an virtual assistant's work.
https://slapbot.github.io/
MIT License
799 stars 127 forks source link

Fixed running problem on macOS #21

Closed MeamonB closed 7 years ago

MeamonB commented 7 years ago

The problem I had when running is that I would constantly get this:

xdg-open: command not found

After digging into speaker.py, I realised that the if statement , in the Speaker.speak_from_os function, needed something to check whether the

sys.platform == "darwin"

I added that and put the correct command in it.

SlapBot commented 7 years ago

Consider using mixer in config.ini under TTS, tts_player settings because it's cross platform, and is the convention, which uses pygame, earlier it was having some issues, but now it works fine.

as far open is concerned, consider this request https://github.com/SlapBot/stephanie-va/pull/19 , so if you could put up a try block and on exception use open, I can accept that merge request. But still consider using mixer it's much better and efficient. Consider doing a git pull as well, since you have an outdated version.