Merge pull request #35 from cclauss/patch-2

sudo apt-get install libespeak-dev portaudio19-dev
This commit is contained in:
Technerd Brainiac 2021-10-11 04:43:17 +05:30 committed by GitHub
commit e4e9f51283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,8 @@ jobs:
- run: codespell --ignore-words-list=ans
- run: flake8 . --count --max-complexity=19 --max-line-length=88 --show-source --statistics
- run: isort --check-only --profile black .
- run: pip install -r requirements.txt || pip install --editable . || true
- run: sudo apt-get install libespeak-dev portaudio19-dev
- run: pip install -r requirements.txt
- run: mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive .
- run: pytest . || true

View File

@ -15,9 +15,9 @@ import wikipedia
import gui
print("Initializing Jarvis....")
master = getpass.getuser()
master = getpass.getuser() or "Harsha"
engine = pyttsx3.init("nsss")
engine = pyttsx3.init()
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[0].id)