GithubHelp home page GithubHelp logo

alexis_speech_assistant's People

Contributors

bradtraversy avatar inert-one avatar jcrommar avatar prithvishkr avatar rayavarapuvikram1 avatar rezan21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexis_speech_assistant's Issues

the code dose not work

when i start the program sends me a eror on main.py in line 37 of an invelid sintax File "main.py", line 37 print(f">> {voice_data.lower()}") # print what user said ^ SyntaxError: invalid syntax

Captura de Pantalla 2020-12-15 a la(s) 1 39 14 p  m
can you pls help me

thanks

No Results

I am not getting any value if I use function respond(). [I am on a Windows machine]

import speech_recognition as sr
from time import ctime
r = sr.Recognizer()
def recording():
with sr.Microphone() as source:
audio = r.listen(source)
voice_data=''
try:
voice_data = r.recognize_google(audio)
except sr.UnknownValueError:
print('sorry, I did not understand')
except sr.RequestError:
print('Sorry! My Speech Service is down')
return voice_data

def respond(voice_data):
if 'Good' in voice_data:
print('I am doing good')

print('say something')
voice_data=recording()
respond(voice_data)

pip install PyObjC error

Error while installing. How can i fix it?

C:\Users\USER\AppData\Local\Programs\Python\Python38-32\Scripts>pip install PyObjC
Collecting PyObjC
Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB)
Collecting pyobjc-framework-NetFS==6.1; platform_release >= "10.0"
Downloading pyobjc_framework_NetFS-6.1-py2.py3-none-any.whl (3.8 kB)
Collecting pyobjc-framework-AddressBook==6.1
Downloading pyobjc-framework-AddressBook-6.1.tar.gz (76 kB)
|████████████████████████████████| 76 kB 732 kB/s
ERROR: Command errored out with exit status 1:
command: 'c:\users\USER\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook\setup.py'"'"'; file='"'"'C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook\pip-egg-info'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook\setup.py", line 22, in
Extension(
File "C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook\pyobjc_setup.py", line 408, in Extension
os_level = get_os_level()
File "C:\Users\USER\AppData\Local\Temp\pip-install-p5hd7qla\pyobjc-framework-AddressBook\pyobjc_setup.py", line 218, in get_os_level
pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
File "c:\users\USER\appdata\local\programs\python\python38-32\lib\plistlib.py", line 99, in readPlist
with _maybe_open(pathOrFile, 'rb') as fp:
File "c:\users\USER\appdata\local\programs\python\python38-32\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "c:\users\USER\appdata\local\programs\python\python38-32\lib\plistlib.py", line 82, in _maybe_open
with open(pathOrFile, mode) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Not able to establish connection between microphone

ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
Listening ...
Can anyone please help?
I am stuck at this
Not getting any idea about this

pyaudio and port audio not installing on windows 10 - Build Error

When I try to install pyaudio using pip, I was getting errors so I have downloaded pyaudio from an external website and installed it, it successfully got installed but when I build asis.py or main.py files, I get error saying:-

Please build and install the PortAudio Python bindings first.

And if I try to install port audio using pip it's not getting installed and if I try to install pot and audio modules separately,
still they aren't getting installed(meaning I am getting errors.)

Please help......

Errors that I am getting when I try to port.

`Collecting port
Using cached https://files.pythonhosted.org/packages/2e/79/482cb09b4c81f10830184ca3af76cd058ea3afbd30341dcc27eb2980d12a/port-1.1.4.tar.gz
Collecting click==6.2 (from port)
Using cached https://files.pythonhosted.org/packages/a0/90/0f5ea412a4d5b8e31cb514208e02824b45a8f4de52654733f0a862353fd9/click-6.2-py2.py3-none-any.whl
Collecting watchdog==0.8.3 (from port)
Using cached https://files.pythonhosted.org/packages/54/7d/c7c0ad1e32b9f132075967fc353a244eb2b375a3d2f5b0ce612fd96e107e/watchdog-0.8.3.tar.gz
Collecting pyrss2gen (from port)
Using cached https://files.pythonhosted.org/packages/6d/01/fd610d5fc86f7dbdbefc4baa8f7fe15a2e5484244c41dcf363ca7e89f60c/PyRSS2Gen-1.1.tar.gz
Requirement already satisfied: python-dateutil in c:\users\g bhanuteja\appdata\local\programs\python\python37-32\lib\site-packages (from port) (2.8.1)
Collecting pyyaml (from port)
Downloading https://files.pythonhosted.org/packages/e2/61/052d3c26d38aeb663e4f080e04c6a7fa67a55c3ed9b4bda051b70ef06867/PyYAML-5.3.1-cp37-cp37m-win32.whl (196kB)
Collecting nom (from port)
Using cached https://files.pythonhosted.org/packages/1e/84/c8d78f4df56d776e9270ad597800e7950b5c4e608d07dcc1c34b664fbf61/nom-1.4.0.tar.gz
Collecting argh>=0.24.1 (from watchdog==0.8.3->port)
Using cached https://files.pythonhosted.org/packages/06/1c/e667a7126f0b84aaa1c56844337bf0ac12445d1beb9c8a6199a7314944bf/argh-0.26.2-py2.py3-none-any.whl
Collecting pathtools>=0.1.1 (from watchdog==0.8.3->port)
Using cached https://files.pythonhosted.org/packages/e7/7f/470d6fcdf23f9f3518f6b0b76be9df16dcc8630ad409947f8be2eb0ed13a/pathtools-0.1.2.tar.gz
Requirement already satisfied: six>=1.5 in c:\users\g bhanuteja\appdata\local\programs\python\python37-32\lib\site-packages (from python-dateutil->port) (1.13.0)
Collecting Jinja2==2.8 (from nom->port)
Using cached https://files.pythonhosted.org/packages/96/a1/c56bc4d99dc2663514a8481511e80eba8994133ae75eebdadfc91a5597d9/Jinja2-2.8-py2.py3-none-any.whl
Collecting Markdown==2.6.5 (from nom->port)
Using cached https://files.pythonhosted.org/packages/e0/e6/e373d058113efc3fcede632de0c76ded309892c405f960c45acd0250060f/Markdown-2.6.5.tar.gz
Collecting gfm==0.0.3 (from nom->port)
Using cached https://files.pythonhosted.org/packages/35/a3/19ba4a886b1586b508b9e035f6a7e6110b5bdba1fbc6326489dfc42e65d6/gfm-0.0.3.tar.gz
Collecting html2text==2015.11.4 (from nom->port)
Using cached https://files.pythonhosted.org/packages/d5/9c/8cd93789c9a7b2c92bba827afc26afbc2aa9cb139a67e9aa2aea92ca277a/html2text-2015.11.4.tar.gz
Collecting lxml==3.5.0 (from nom->port)
Using cached https://files.pythonhosted.org/packages/8b/be/ed850baac891aca25c832fb8d7b9c0e7a5077a30e336d95ffc7d649aaa06/lxml-3.5.0.tar.gz
Collecting py-gfm==0.1.1 (from nom->port)
Using cached https://files.pythonhosted.org/packages/59/eb/6b708294f965b0e1e2759992c33ffe04f3cc615a72ade213c911b818b5a5/py-gfm-0.1.1.tar.gz
Collecting Pygments==2.1.3 (from nom->port)
Using cached https://files.pythonhosted.org/packages/9e/d0/d692085518c6a2dc875fe421c866fb6a08e0d9796ca507803c1e545fa116/Pygments-2.1.3-py2.py3-none-any.whl
Collecting websocket-server==0.4 (from nom->port)
Using cached https://files.pythonhosted.org/packages/74/64/e86581ee7775a2e08aca530b41e1a1e3ee6b320233b1eff301dcb86d1636/websocket_server-0.4.tar.gz
Collecting MarkupSafe (from Jinja2==2.8->nom->port)
Downloading https://files.pythonhosted.org/packages/5b/d4/1deb3c5dc3714fb160c7e2116fc6dff36a063d9156a9328cce54ef35cc52/MarkupSafe-1.1.1-cp37-cp37m-win32.whl
Requirement already satisfied: setuptools in c:\users\g bhanuteja\appdata\local\programs\python\python37-32\lib\site-packages (from py-gfm==0.1.1->nom->port) (39.0.1)
Collecting unittest2 (from py-gfm==0.1.1->nom->port)
Using cached https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl
Collecting argparse (from unittest2->py-gfm==0.1.1->nom->port)
Using cached https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting traceback2 (from unittest2->py-gfm==0.1.1->nom->port)
Using cached https://files.pythonhosted.org/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
Collecting linecache2 (from traceback2->unittest2->py-gfm==0.1.1->nom->port)
Using cached https://files.pythonhosted.org/packages/c7/a3/c5da2a44c85bfbb6eebcfc1dde24933f8704441b98fdde6528f4831757a6/linecache2-1.0.0-py2.py3-none-any.whl
Building wheels for collected packages: port, watchdog, pyrss2gen, nom, pathtools, Markdown, gfm, html2text, lxml, py-gfm, websocket-server
Building wheel for port (setup.py): started
Building wheel for port (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\60\5b\95\4e37a7ae64a2901f968c886f3ffaaf4799f10fabcc0603d837
Building wheel for watchdog (setup.py): started
Building wheel for watchdog (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\3b\a0\6f\8c52fea32c994f833b55e7b73078f81c155ec108011c04e708
Building wheel for pyrss2gen (setup.py): started
Building wheel for pyrss2gen (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\08\2e\3d\50052096754e548b10de94a42182f27a1b18966dfa36c6b968
Building wheel for nom (setup.py): started
Building wheel for nom (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\51\68\d5\5f02acfa069ae2ac237dd6c4c042705f592addff4f7627d19d
Building wheel for pathtools (setup.py): started
Building wheel for pathtools (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\0b\04\79\c3b0c3a0266a3cb4376da31e5bfe8bba0c489246968a68e843
Building wheel for Markdown (setup.py): started
Building wheel for Markdown (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\f3\91\5b\d27b4755112af7be7d9edfb07b62dbc3e380b372b69974cff6
Building wheel for gfm (setup.py): started
Building wheel for gfm (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\b2\3d\9d\e956bf1cc8bf5a4ba99e93af0b7b6c64f5248df44c6eed49d7
Building wheel for html2text (setup.py): started
Building wheel for html2text (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\79\9c\32\9bbc591df52c331d0758b5b6b5446060a90a80a4346c3a235f
Building wheel for lxml (setup.py): started
Building wheel for lxml (setup.py): finished with status 'error'
Running setup.py clean for lxml
Building wheel for py-gfm (setup.py): started
Building wheel for py-gfm (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\40\5e\c5\e02639642dc84c2973fb2c2d43b0631f6e0139b73ec403f0e4
Building wheel for websocket-server (setup.py): started
Building wheel for websocket-server (setup.py): finished with status 'done'
Stored in directory: C:\Users\G Bhanuteja\AppData\Local\pip\Cache\wheels\1b\d5\18\b3abfe98396e5adf77c4e9419b87d383cdd0c0de42e70b9c06
Successfully built port watchdog pyrss2gen nom pathtools Markdown gfm html2text py-gfm websocket-server
Failed to build lxml
Installing collected packages: click, pyyaml, argh, pathtools, watchdog, pyrss2gen, MarkupSafe, Jinja2, Markdown, gfm, html2text, lxml, argparse, linecache2, traceback2, unittest2, py-gfm, Pygments, websocket-server, nom, port
Found existing installation: click 7.1.2
Uninstalling click-7.1.2:
Successfully uninstalled click-7.1.2
Running setup.py install for lxml: started
Running setup.py install for lxml: finished with status 'error'

ERROR: Complete output from command 'C:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\G Bhanuteja\AppData\Local\Temp\pycharm-packaging\lxml\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\G Bhanuteja\AppData\Local\Temp\pip-wheel-9rmhv6tk' --python-tag cp37:
ERROR: Building lxml version 3.5.0.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\lxml
copying src\lxml\builder.py -> build\lib.win32-3.7\lxml
copying src\lxml\cssselect.py -> build\lib.win32-3.7\lxml
copying src\lxml\doctestcompare.py -> build\lib.win32-3.7\lxml
copying src\lxml\ElementInclude.py -> build\lib.win32-3.7\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win32-3.7\lxml
copying src\lxml\sax.py -> build\lib.win32-3.7\lxml
copying src\lxml\usedoctest.py -> build\lib.win32-3.7\lxml
copying src\lxml_elementpath.py -> build\lib.win32-3.7\lxml
copying src\lxml_init_.py -> build\lib.win32-3.7\lxml
creating build\lib.win32-3.7\lxml\includes
copying src\lxml\includes_init_.py -> build\lib.win32-3.7\lxml\includes
creating build\lib.win32-3.7\lxml\html
copying src\lxml\html\builder.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\clean.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\defs.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\diff.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html_diffcommand.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html_html5builder.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html_setmixin.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html_init_.py -> build\lib.win32-3.7\lxml\html
creating build\lib.win32-3.7\lxml\isoschematron
copying src\lxml\isoschematron_init_.py -> build\lib.win32-3.7\lxml\isoschematron
copying src\lxml\lxml.etree.h -> build\lib.win32-3.7\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.7\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.7\lxml\includes
creating build\lib.win32-3.7\lxml\isoschematron\resources
creating build\lib.win32-3.7\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.7\lxml\isoschematron\resources\rng
creating build\lib.win32-3.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl
creating build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'lxml.etree' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
creating build\temp.win32-3.7\Release\src\lxml
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc\lxml\includes "-IC:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\include" "-IC:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win32-3.7\Release\src\lxml\lxml.etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
lxml.etree.c
src\lxml\includes\etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
Compile failed: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe' failed with exit status 2
creating Users
creating Users\G Bhanuteja
creating Users\G Bhanuteja\AppData
creating Users\G Bhanuteja\AppData\Local
creating Users\G Bhanuteja\AppData\Local\Temp
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" "/TcC:\Users\G Bhanuteja\AppData\Local\Temp\xmlXPathInitlk5eef7g.c" "/FoUsers\G Bhanuteja\AppData\Local\Temp\xmlXPathInitlk5eef7g.obj"
xmlXPathInitlk5eef7g.c
C:\Users\G Bhanuteja\AppData\Local\Temp\xmlXPathInitlk5eef7g.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe' failed with exit status 2


Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?



ERROR: Failed building wheel for lxml
ERROR: Complete output from command 'C:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\G Bhanuteja\AppData\Local\Temp\pycharm-packaging\lxml\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\G Bhanuteja\AppData\Local\Temp\pip-record-l2u6kci1\install-record.txt' --single-version-externally-managed --compile:
ERROR: Building lxml version 3.5.0.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\lxml
copying src\lxml\builder.py -> build\lib.win32-3.7\lxml
copying src\lxml\cssselect.py -> build\lib.win32-3.7\lxml
copying src\lxml\doctestcompare.py -> build\lib.win32-3.7\lxml
copying src\lxml\ElementInclude.py -> build\lib.win32-3.7\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win32-3.7\lxml
copying src\lxml\sax.py -> build\lib.win32-3.7\lxml
copying src\lxml\usedoctest.py -> build\lib.win32-3.7\lxml
copying src\lxml\_elementpath.py -> build\lib.win32-3.7\lxml
copying src\lxml\__init__.py -> build\lib.win32-3.7\lxml
creating build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.win32-3.7\lxml\includes
creating build\lib.win32-3.7\lxml\html
copying src\lxml\html\builder.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\clean.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\defs.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\diff.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win32-3.7\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win32-3.7\lxml\html
creating build\lib.win32-3.7\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.win32-3.7\lxml\isoschematron
copying src\lxml\lxml.etree.h -> build\lib.win32-3.7\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.7\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.7\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.7\lxml\includes
creating build\lib.win32-3.7\lxml\isoschematron\resources
creating build\lib.win32-3.7\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.7\lxml\isoschematron\resources\rng
creating build\lib.win32-3.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl
creating build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'lxml.etree' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
creating build\temp.win32-3.7\Release\src\lxml
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc\lxml\includes "-IC:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\include" "-IC:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win32-3.7\Release\src\lxml\lxml.etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
lxml.etree.c
src\lxml\includes\etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" "/TcC:\Users\G Bhanuteja\AppData\Local\Temp\xmlXPathInithpcf23ho.c" "/FoUsers\G Bhanuteja\AppData\Local\Temp\xmlXPathInithpcf23ho.obj"
xmlXPathInithpcf23ho.c
C:\Users\G Bhanuteja\AppData\Local\Temp\xmlXPathInithpcf23ho.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------

ERROR: Command "'C:\Users\G Bhanuteja\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\G Bhanuteja\AppData\Local\Temp\pycharm-packaging\lxml\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\G Bhanuteja\AppData\Local\Temp\pip-record-l2u6kci1\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\G Bhanuteja\AppData\Local\Temp\pycharm-packaging\lxml
WARNING: You are using pip version 19.1.1, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
`

Trace back error :(

Traceback (most recent call last):
File "/Users/(I dont want my name here)/PycharmProjects/pythonProject1/main.py", line 126, in
respond(voice_data) # respond
File "/Users/I dont want my name here)/PycharmProjects/pythonProject1/main.py", line 80, in respond
minutes = time[1]
IndexError: list index out of range

Recording

It says recording again n again how to remove that function

Question

Is this for YouTube or Udemy?

Not installing PyAudio in windows 10

I'm trying to install pyaudio by pip install pyaudio and mannually.
tried all things like pipwin, pip install "path"\file.whl , python -m pip install pyaudio and all. but not able to install
by doing mannually path it gives ERROR: PyAudio-0.2.11-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
can you resolve this issue

Question about playsound

Can I make it so that a .wav file plays after I input some speech in the mic with import playsound?

ModuleNotFoundError: No module named 'speech_recognition'

ModuleNotFoundError: No module named 'speech_recognition'

Getting this error when running my application. All kinds of information out there but no real fixes.

I've upgraded pip, speechrecognition, uninstall and reinstalled and no luck so far.

Heruko Upload error

I upload the file heroku but it didn't run? I am a non-programmer person but have minimum technical knowledge. Can somebody assist me how can i make it deploy on Heroku?

import playsound and gTTS issues

Hi I've been having some issues trying to import playsound and gTTS and I don't know what to do
I have already install playsound and gTTS

from playsound import playsound
from gtts import gTTS

pip install playsound
Requirement already satisfied: playsound in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (1.2.2)

pip install gTTS
Requirement already satisfied: gTTS in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (2.2.1)
Requirement already satisfied: click in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from gTTS) (7.1.2)
Requirement already satisfied: six in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from gTTS) (1.15.0)
Requirement already satisfied: requests in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from gTTS) (2.25.0)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (1.26.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\angel\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests->gTTS) (2020.12.5)

and also set up the venv environment and I why I still having issues trying to import them

it says

AttributeError: 'function' object has no attribute 'playsound'

and probably will say the same for gTTS

please help. I'm on windows 10

Cant install PyObjC on Windows Python3.9 venv

As soon as I type pip install pyobjc this happens
pip install pyobjc Collecting pyobjc Using cached pyobjc-7.1-py3-none-any.whl (3.0 kB) Collecting pyobjc-framework-ScriptingBridge==7.1; platform_release >= "9.0" Downloading pyobjc-framework-ScriptingBridge-7.1.tar.gz (19 kB)

FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

PyAudio for Mac

Apple Mac OS X
Use Homebrew to install the prerequisite portaudio library, then install PyAudio using pip:

brew install portaudio
pip install pyaudio
Notes:

If not already installed, download Homebrew.
pip will download the PyAudio source and build it for your version of Python.
Homebrew and building PyAudio also require installing the Command Line Tools for Xcode (more information).

https://people.csail.mit.edu/hubert/pyaudio/

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.