Coder Social home page Coder Social logo

dragoncomputer / dragonfire Goto Github PK

View Code? Open in Web Editor NEW
1.4K 85.0 209.0 24.65 MB

the open-source virtual assistant for Ubuntu based Linux distributions

Home Page: http://dragon.computer

License: MIT License

Python 96.05% Shell 0.02% C 3.48% Dockerfile 0.24% Makefile 0.21%
linux ubuntu spacy chatbot kaldi speech-recognition speech-to-text text-to-speech nlp machine-learning

dragonfire's Introduction

dragoncomputer

dragonfire's People

Contributors

alexpantyukhin avatar booteille avatar cclauss avatar dependabot[bot] avatar ismlkrkmz avatar jklmnn avatar kameranis avatar lebedov avatar mcyba avatar mertyildiran avatar nergdron avatar prophetdaniel avatar rajpratik71 avatar rudraswat avatar turtle-bazon avatar valentinchcloud 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  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

dragonfire's Issues

Compilation error related to module initialization in realhud

When I run dpkg-buildpackage -us -uc to create the Debian package, I get this error:

dragonfire/realhud/realhud.c:263:15: error: variable ‘moduledef’ has initializer but incomplete type
 static struct PyModuleDef moduledef = {
               ^
dragonfire/realhud/realhud.c:264:5: error: ‘PyModuleDef_HEAD_INIT’ undeclared here (not in a function)
     PyModuleDef_HEAD_INIT,

Related code block is in here and this page was my reference to write that code block.

festival - missing dependency in Mint

When I tried to open dragonfire it crashed with:

Traceback (most recent call last):
  File "/usr/local/bin/dragonfire", line 11, in <module>
    sys.exit(initiate())
  File "/usr/local/lib/python2.7/dist-packages/dragonfire/__init__.py", line 494, in initiate
    dragon_greet()
  File "/usr/local/lib/python2.7/dist-packages/dragonfire/__init__.py", line 453, in dragon_greet
    userin.say("Good evening " + user_prefix)
  File "/usr/local/lib/python2.7/dist-packages/dragonfire/utilities.py", line 36, in say
    proc = subprocess.Popen(["festival","--tts"], stdin=subprocess.PIPE, stdout=FNULL, stderr=FNULL)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

solution is:

sudo apt-get install festival

another zesty install issue

This is on ubuntu 17.04/amd64. The package doesn't depend on subversion or libatlas-base-dev, but it fails to compile if either of those are missing. Should be an easy fix to the package dependencies list.

Memory corruption when running Dragonfire

Hi,

Please note I am using tensorflow CPU version and deepspeech CPU version.
When I run dragonfire, it greets me with GOOD AFTERNOON.
The output of htop indicates I have enough memory. At the time of error, RAM memory used is 10GB out of 23 GB.
Then I get following error:


Dragonfire: GOOD AFTERNOON SIR


*** Error in `/usr/bin/python3': malloc(): memory corruption (fast): 0x000000000e89ba70 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fd0127c17e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x82651)[0x7fd0127cc651]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7fd0127ce184]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_Znwm+0x18)[0x7fd002cb1e78]
/home/lalchand/.local/lib/python3.5/site-packages/deepspeech/lib/libtensorflow_framework.so(_ZN10tensorflow24TfCheckOpHelperOutOfLineERKNS_6StatusEPKc+0x8d)[0x7fcf9d68c4ed]
/home/lalchand/.local/lib/python3.5/site-packages/deepspeech/lib/libtensorflow_framework.so(+0x3750a9)[0x7fcf9d5180a9]
/lib64/ld-linux-x86-64.so.2(+0x106ba)[0x7fd012d416ba]
/lib64/ld-linux-x86-64.so.2(+0x107cb)[0x7fd012d417cb]
/lib64/ld-linux-x86-64.so.2(+0x158e2)[0x7fd012d468e2]
/lib64/ld-linux-x86-64.so.2(+0x10564)[0x7fd012d41564]
/lib64/ld-linux-x86-64.so.2(+0x14da9)[0x7fd012d45da9]
/lib/x86_64-linux-gnu/libdl.so.2(+0xf09)[0x7fd012546f09]
/lib64/ld-linux-x86-64.so.2(+0x10564)[0x7fd012d41564]
/lib/x86_64-linux-gnu/libdl.so.2(+0x1571)[0x7fd012547571]
/lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31)[0x7fd012546fa1]
/usr/bin/python3(_PyImport_FindSharedFuncptr+0x8a)[0x60b35a]
/usr/bin/python3(_PyImport_LoadDynamicModuleWithSpec+0x12b)[0x61000b]
/usr/bin/python3[0x610538]
/usr/bin/python3(PyCFunction_Call+0x106)[0x4e9c36]

Install instructions are lacking details

System: Ubuntu 16.04.2 ia64

I tried:

sudo dpkg -i dragonfire_0.9.6_amd64.deb && sudo apt-get -f install

but that just lists all missing dependencies and removes dragonfire. Nothing is installed. More detailed instructions are required. What are the dependencies? Why are they not installed first?

Zesty install Error.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"

Error when trying to install downloaded .deb

Selecting previously unselected package libladr4.
(Reading database ... 528671 files and directories currently installed.)
Preparing to unpack .../0-libladr4_0.0.200911a-2.1_amd64.deb ...
Unpacking libladr4 (0.0.200911a-2.1) ...
Selecting previously unselected package libgstreamer1.0-dev.
Preparing to unpack .../1-libgstreamer1.0-dev_1.10.4-1_amd64.deb ...
Adding 'diversion of /usr/bin/dh_gstscancodecs to /usr/bin/dh_gstscancodecs-gst0.10 by libgstreamer1.0-dev'
Adding 'diversion of /usr/share/man/man1/dh_gstscancodecs.1.gz to /usr/share/man/man1/dh_gstscancodecs.1.gz-gst0.10 by libgstreamer1.0-dev'
Unpacking libgstreamer1.0-dev (1.10.4-1) ...
Selecting previously unselected package prover9.
Preparing to unpack .../2-prover9_0.0.200911a-2.1_amd64.deb ...
Unpacking prover9 (0.0.200911a-2.1) ...
Selecting previously unselected package python-nltk.
Preparing to unpack .../3-python-nltk_3.2.1-2_all.deb ...
Unpacking python-nltk (3.2.1-2) ...
Selecting previously unselected package python-pyaudio.
Preparing to unpack .../4-python-pyaudio_0.2.10-1ubuntu1_amd64.deb ...
Unpacking python-pyaudio (0.2.10-1ubuntu1) ...
Selecting previously unselected package flite.
Preparing to unpack .../5-flite_2.0.0-release-3_amd64.deb ...
Unpacking flite (2.0.0-release-3) ...
Selecting previously unselected package python-egenix-mx-base-dev.
Preparing to unpack .../6-python-egenix-mx-base-dev_3.2.9-1_all.deb ...
Unpacking python-egenix-mx-base-dev (3.2.9-1) ...
Selecting previously unselected package python-xlib.
Preparing to unpack .../7-python-xlib_0.14+20091101-5_all.deb ...
Unpacking python-xlib (0.14+20091101-5) ...
Setting up python-egenix-mx-base-dev (3.2.9-1) ...
Processing triggers for install-info (6.3.0.dfsg.1-1) ...
Setting up python-nltk (3.2.1-2) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Setting up flite (2.0.0-release-3) ...
Setting up python-xlib (0.14+20091101-5) ...
Setting up python-pyaudio (0.2.10-1ubuntu1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libladr4 (0.0.200911a-2.1) ...
Setting up libgstreamer1.0-dev (1.10.4-1) ...
Setting up prover9 (0.0.200911a-2.1) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Selecting previously unselected package dragonfire.
(Reading database ... 529410 files and directories currently installed.)
Preparing to unpack .../dragonfire_0.9.6_amd64.deb ...
Unpacking dragonfire (0.9.6) ...
Setting up dragonfire (0.9.6) ...
Successfully updated /usr/share/python/dragonfire/bin/python
Cloning into '.'...
remote: Counting objects: 87231, done.
remote: Compressing objects: 100% (10/10), done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
dpkg: error processing package dragonfire (--install):
subprocess installed post-installation script returned error exit status 128
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... 530291 files and directories currently installed.)
Preparing to unpack .../dragonfire_0.9.6_amd64.deb ...
Unpacking dragonfire (0.9.6) over (0.9.6) ...
Setting up dragonfire (0.9.6) ...
Successfully updated /usr/share/python/dragonfire/bin/python
/var/lib/dpkg/info/dragonfire.postinst: 108: cd: can't cd to tools/
dpkg: error processing package dragonfire (--install):
subprocess installed post-installation script returned error exit status 2
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... 530289 files and directories currently installed.)
Removing dragonfire (0.9.6) ...
dpkg: warning: while removing dragonfire, directory '/usr/share/python/dragonfire/bin' not empty so not removed
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Selecting previously unselected package dragonfire.
(Reading database ... 529410 files and directories currently installed.)
Preparing to unpack .../dragonfire_0.9.6_amd64.deb ...
Unpacking dragonfire (0.9.6) ...
Setting up dragonfire (0.9.6) ...
Successfully updated /usr/share/python/dragonfire/bin/python
/var/lib/dpkg/info/dragonfire.postinst: 108: cd: can't cd to tools/
dpkg: error processing package dragonfire (--install):
subprocess installed post-installation script returned error exit status 2

DisambiguationError of wikipedia module shuts down Dragonfire

You: WHERE IS CABO
Dragonfire: JUST A SECOND
_______________________________________________________________

/home/mertyildiran/.local/lib/python2.7/site-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 11 of the file /home/mertyildiran/.local/bin/dragonfire. To get rid of this warning, change code that looks like this:

 BeautifulSoup(YOUR_MARKUP})

to this:

 BeautifulSoup(YOUR_MARKUP, "lxml")

  markup_type=markup_type))
Traceback (most recent call last):
  File "/home/mertyildiran/.local/bin/dragonfire", line 11, in <module>
    load_entry_point('dragonfire', 'console_scripts', 'dragonfire')()
  File "/home/mertyildiran/Documents/Dragonfire/dragonfire/__init__.py", line 496, in initiate
    command(speech)
  File "/home/mertyildiran/Documents/Dragonfire/dragonfire/__init__.py", line 405, in command
    userin.say(omniscient_.respond(original_com))
  File "/home/mertyildiran/Documents/Dragonfire/dragonfire/omniscient.py", line 42, in respond
    page = wikipedia.page(wikipedia.search(query)[0])
  File "/home/mertyildiran/.local/lib/python2.7/site-packages/wikipedia/wikipedia.py", line 276, in page
    return WikipediaPage(title, redirect=redirect, preload=preload)
  File "/home/mertyildiran/.local/lib/python2.7/site-packages/wikipedia/wikipedia.py", line 299, in __init__
    self.__load(redirect=redirect, preload=preload)
  File "/home/mertyildiran/.local/lib/python2.7/site-packages/wikipedia/wikipedia.py", line 393, in __load
    raise DisambiguationError(getattr(self, 'title', page['title']), may_refer_to)
wikipedia.exceptions.DisambiguationError: "Cabo" may refer to: 
Cabó
Cabo Blanco, Costa Rica
Cabo Delgado
Cabo Frio
Cabo Orange National Park
Cabo Polonio
Cabo San Lucas
Cabo Verde
San José del Cabo
Cabo Catoche
Cabo Corrientes
Cabo de São Vicente
Cape Delgado
Cabo Girão
Cabo Meredith
Cabo (card game)
Cabo Wabo
Cabo Yachts
California Association of Bicycling Organizations
Council of American Building Officials
Cabo Blanco (disambiguation)
Cabo Rojo (disambiguation)
Gabo (disambiguation)
Cabos

SSL Certification Error

İ am using Pardus maybe because of this but error at blow;
File "/usr/local/lib/python3.5/dist-packages/spacy/compat.py", line 82, in url_read
file_ = url_open(url)
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)>
dpkg: dragonfire paketi işlenirken sorun yaşandı (--configure):
alt süreç post-installation betiği kuruldu 1 çıkış kodu ile sona erdi
İşleme sırasında hatalarla karşılaşıldı:
dragonfire
E: Sub-process /usr/bin/dpkg returned an error code (1)
thank you very much

install issue on linux mint

i have ran all install steps and troubleshoot for the dependancies but still get this issue

user@stewiemo ~/Dragonfire $ dragonfire
Traceback (most recent call last):
File "/usr/share/python/dragonfire/bin/dragonfire", line 6, in
from pkg_resources import load_entry_point
File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/init.py", line 3142, in
@_call_aside
File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/init.py", line 3126, in _call_aside
f(*args, **kwargs)
File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/init.py", line 3155, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/init.py", line 664, in _build_master
ws.require(requires)
File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/init.py", line 981, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/init.py", line 867, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyowm' distribution was not found and is required by dragonfire
user@stewiemo ~/Dragonfire $

any fix?

Some built-in commands not working on Ubuntu

When I say the commands that I mentioned below, there is no error or failure but at the same time there is no action at all.
PS: I'm trying all these on Ubuntu 14.04 LTS.

Here are the commands that not worked as its expected:

FILE MANAGER / OPEN FILES
OPEN BLENDER
PHOTOSHOP / PHOTO EDITOR
INKSCAPE
VIDEO EDITOR
OPEN CAMERA
OPEN CALENDAR
OPEN CALCULATOR
OPEN STEAM

For packages that are not coming with official Ubuntu distribution like Steam, Blender, Inkscape, Gimp, Kdenlive etc.
Expected behaviour: "[PACKAGE_NAME] Not Installed, Sir!"

For File Manager / Open Files, Calculator and Calendar commands related triggers are truly missing.

Not working on kubuntu

i couldnt use it on pardus thats why i install kubuntu and i could install with no error but when i try to run it gives the error below;
Traceback (most recent call last):
File "/usr/local/bin/dragonfire", line 11, in
load_entry_point('dragonfire==0.9.9', 'console_scripts', 'dragonfire')()
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 2700, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 2318, in load
return self.resolve()
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 2324, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.6/dist-packages/dragonfire/init.py", line 45, in
from dragonfire.conversational import DeepConversation
File "/usr/local/lib/python3.6/dist-packages/dragonfire/conversational/init.py", line 14, in
from dragonfire.conversational.textdata import TextData
File "/usr/local/lib/python3.6/dist-packages/dragonfire/conversational/textdata.py", line 15, in
from dragonfire.conversational.corpus.cornelldata import CornellData
ModuleNotFoundError: No module named 'dragonfire.conversational.corpus'
i try to search for it but i couldnt do :(

Add Python3 support

Add Python3 support project-wide

  • Double-check everything works before sending the pull request
  • Make sure you did not brake the Python2.7 support
  • Check if Universal Wheels working correctly: python setup.py bdist_wheel --universal

realhud C extension causing problem for Python 3 compatibility

When I try to install Dragonfire for Python 3 with pip3 install -e . command; these lines causing an error:

Obtaining file:///home/mertyildiran/Documents/Dragonfire
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/mertyildiran/Documents/Dragonfire/setup.py", line 154, in <module>
        **pkgconfig('gtk+-2.0 x11 xext'))
      File "/home/mertyildiran/Documents/Dragonfire/setup.py", line 37, in pkgconfig
        config.setdefault(flags[flag], []).append(value)
    KeyError: b'-p'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/mertyildiran/Documents/Dragonfire/

Dragonfire is not able to start

After clean download and install I get following error:

Traceback (most recent call last):
  File "/usr/share/python/dragonfire/bin/dragonfire", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3142, in <module>
    @_call_aside
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3126, in _call_aside
    f(*args, **kwargs)
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3155, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 679, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 872, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyasn1 0.1.9 (/usr/lib/python2.7/dist-packages), Requirement.parse('pyasn1<0.4.0,>=0.3.4'), set(['pyasn1-modules']))

Dragonfire is not able to recognise my voice inputs

This is what I see in the terminal

$ dragonfire 
_______________________________________________________________

Dragonfire: GOOD AFTERNOON SIR
_______________________________________________________________

Traceback (most recent call last):
  File "/usr/share/python/dragonfire/bin/dragonfire", line 11, in <module>
    load_entry_point('dragonfire==0.9.6', 'console_scripts', 'dragonfire')()
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/dragonfire/__init__.py", line 486, in initiate
    start(args)
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/dragonfire/__init__.py", line 56, in start
    recognizer = KaldiRecognizer()
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/dragonfire/sr/kaldi.py", line 37, in __init__
    self.decoder_pipeline = DecoderPipeline({"decoder" : decoder_conf})
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/dragonfire/sr/decoder.py", line 20, in __init__
    self.create_pipeline(conf)
  File "/usr/share/python/dragonfire/local/lib/python2.7/site-packages/dragonfire/sr/decoder.py", line 50, in create_pipeline
    self.asr.set_property(key, val)
AttributeError: 'NoneType' object has no attribute 'set_property'

Integrations

Bash integration which lets you us voice , visual , Bash and other shell terminal commands , Cloud integration with closed or open source search engines which lets you directly search something on internet via terminal or GUI and also communication channels such as Skype , Telegram , Hike , IRC etc

This is my first question about this project

Edit : When i say Cloud integration i mean using Datacenter services

Error in decoder.py on start

After installing Dragonfire, Kaldi, festival, and Julius, I get the following error when starting the application from a shell:

  File "/usr/bin/dragonfire", line 11, in <module>
    load_entry_point('dragonfire', 'console_scripts', 'dragonfire')()
  File "/home/tardog/Dokumente/Spielweise/Dragonfire/dragonfire/__init__.py", line 544, in initiate
    start(args)
  File "/home/tardog/Dokumente/Spielweise/Dragonfire/dragonfire/__init__.py", line 60, in start
    recognizer = KaldiRecognizer()
  File "/home/tardog/Dokumente/Spielweise/Dragonfire/dragonfire/sr/kaldi.py", line 34, in __init__
    self.decoder_pipeline = DecoderPipeline({"decoder" : decoder_conf})
  File "/home/tardog/Dokumente/Spielweise/Dragonfire/dragonfire/sr/decoder.py", line 17, in __init__
    self.create_pipeline(conf)
  File "/home/tardog/Dokumente/Spielweise/Dragonfire/dragonfire/sr/decoder.py", line 47, in create_pipeline
    self.asr.set_property(key, val)
AttributeError: 'NoneType' object has no attribute 'set_property'

Despite that error, it appears to run (icon in the status bar), but Julius is not started. Even if I do start Julius manually, Dragonfire doesn’t react to any of my voice commands.

Dragonfire takes more than 30 min to install

Hi..I tried to install Latest hotfix of Dragonfire on Ubuntu 17.10...the installation keeps going and
does not seem to finish even after 2 hours...May I know whether I am doing anything wrong?I am following the instructions given

Speech recognition sometimes not working

Speech recognition sometimes not working because of unknown reasons. It's either working from the beginning to end of Dragonfire or not working at all.

I think there are two possibilities:

  • Some how this process hanging even though Dragonfire is closed properly. I predicate this to that; every time after a I reboot my machine, at the first run of Dragonfire, speech recognition works seamlessly.
  • It could be an issue related to this package: https://github.com/Uberi/speech_recognition

Does Dragonfire work on both Python 2 and Python 3?

I would be interested to know which versions of Python people are using when running Dragonfire. Coding and testing for both versions is work which could be simplified by dropping Python 2 support but that may not yet be an an option. There are probably performance, asyncio, and f’strings’ reasons for adopting a Python 3 only approach.

Support others distributions

I think a good start would be to add a requirements.txt with all the python dependencies and a list of native dependencies. I'm on archlinux so I can be a test subject XD

Not working on Debian 9

I've downloaded deb package and install it. First, it doesn't install. After installing python3-wheel installation seems successful, but it not starts:

/usr/bin/dragonfire: 3: /usr/bin/dragonfire: /usr/share/python/dragonfire/bin/dragonfire: not found

Actually, there are no file /usr/share/python/dragonfire/bin/dragonfire

Undefined names

Undefined names can raise NameError at runtime

flake8 testing of https://github.com/DragonComputer/Dragonfire on Python 2.7.14

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./dragonfire/timex.py:253:28: F823 local variable 'month' (defined in enclosing scope on line 25) referenced before assignment
		elif re.match(r'last ' + month, timex, re.IGNORECASE):
                           ^

./dragonfire/sr/experimental.py:47:20: F821 undefined name 'p'
			wf.setsampwidth(p.get_sample_size(FORMAT)) # Set sampling format
                   ^

./dragonfire/sr/experimental.py:59:19: F821 undefined name 'p'
		wf.setsampwidth(p.get_sample_size(FORMAT)) # Set sampling format
                  ^

./dragonfire/sr/experimental.py:61:42: F821 undefined name 'frames'
		wf.writeframes(previous_wav + b''.join(frames)) # Write the all frames including previous ones
                                         ^

3     F821 undefined name 'p'
1     F823 local variable 'month' (defined in enclosing scope on line 25) referenced before assignment

Cannot activate using voice in Ubuntu 16.04

I've just installed Dragonfire using sudo dpkg -i dragonfire_1.0.0_amd64.deb on my Ubuntu 16.04. My system has a microphone and it works in Chrome, for example.

I run Dragonfire in a terminal using dragonfire command. Here is what I see:

$ dragonfire 
TensorFlow detected: v1.0.0

Warning: Restoring parameters:
globStep: 32000
watsonMode: False
autoEncode: False
corpus: cornell
datasetTag: old
maxLength: 10
filterVocab: 0
skipLines: False
vocabularySize: 0
hiddenSize: 512
numLayers: 2
softmaxSamples: 0
initEmbeddings: False
embeddingSize: 64
embeddingSource: None

Loading dataset from /usr/share/dragonfire/conversational/model-pretrainedv2/dataset-cornell-old-length10-filter0-vocabSize0.pkl
Loaded cornell: 34991 words, 139979 QA
Model creation...
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Initialize variables...
WARNING: Restoring previous model from /usr/share/dragonfire/conversational/model-pretrainedv2/model.ckpt
_______________________________________________________________

Dragonfire: GOOD AFTERNOON MY LADY
_______________________________________________________________

TensorFlow: v1.6.0-16-gc346f2c
DeepSpeech: v0.2.0-alpha.5-0-g7cc8382
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2018-06-24 15:18:04.384803: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock

Then I said for a few times 'Dragonfire' and 'Wake up'. Nothing happened. A bit later, a few new lines appeared in the terminal window:

You: NO 
You: YET 
You: IT 
You: TOM
You: TOM 
You: SO 
You: PAUL 
You: WOW
You: OH 
You: NO 

It looks like it 'recognizes' something, but this is just some garbage.

The speech recognition is clearly not working. How can I debug it to find the culprit?

Dragonfire gets puzzled with its own female voice.

Dragonfire listens to the audio itself is reproducing and assumes that's the user's voice. And it can enter an endless loop in that situation.

A simple way to solve that problem is to use a noise cancelling technique of the generated sounds by the computer so that the detected sound is only going to be the difference of the ambient sound less the generated sound.

As the volume and the microphone position vary a lot, a scaling factor might suffice for the noise cancellation scheme. Say input_sound = microphone_input - scaler.generated_computer_sound.volume. The scaler can be estimated whenever Dragonfire says Good Evening Sir for example.

Later on Dragonfire can utilize only input_sound as source for processing instead of the raw microphone input.

AttributeError: TTA instance has no attribute 'define_and_execute'

HI, this software is a great job but I'm getting an error every time I run it:
`ianni@goliath:~$ dragonfire


Traceback (most recent call last):
File "/usr/local/bin/dragonfire", line 9, in
load_entry_point('dragonfire==0.9.7', 'console_scripts', 'dragonfire')()
File "/usr/local/lib/python2.7/dist-packages/dragonfire/init.py", line 517, in initiate
dragon_greet()
File "/usr/local/lib/python2.7/dist-packages/dragonfire/init.py", line 477, in dragon_greet
userin.define_and_execute(["echo"], "To activate say 'Dragonfire!' or 'Wake Up!'")
AttributeError: TTA instance has no attribute 'define_and_execute'`

I installed the github version of dragonfire, downloaded a few minutes ago.
Did not get such error with the .deb package, however, it did not receive voice commands and, therefore, I uninstalled it and installed from scratch using the install.sh script in the git cloned folder.
Any help, please?

ubuntu 17.10 kurulum sorunu

Kurulum yapmak için install.sh dosyasını çalıştırdığım zaman bilgisayarım kitleniyor. .deb dosyasını kurduğum zamanda program çalışmıyor.

Could we run autopep8 over the entire codebase?

There are lots of issues with mixed indentation (tab and space indentation on the same line) and other formatting issues. Is there a need to keep using tab indentation? Other language communities (esp. golang) are demonstrating that programer performance increases when code formatting is done automatically and with no options/special cases turned on. Different standards for code formatting on different projects reduces both readability and portability.

Would it be of interest to have a PR that autopep8s all Python code in the repo? yapf would be an alternative approach.

I can't run dragonfire

Terminal:

Successfully installed dragonfire-0.9.2
root@Nb-Vale:/home/vale# dragonfire
Traceback (most recent call last):
File "/usr/local/bin/dragonfire", line 7, in
from dragonfire import initiate
File "/usr/local/lib/python2.7/dist-packages/dragonfire/init.py", line 5, in
from lxml import etree
ImportError: No module named lxml

Warning: no model found for 'en'

When I was trying to run dragonfire I got following warning:

Warning: no model found for 'en'

And dragonfire ended on exception.

Looks like the solution is:

sudo python -m spacy.en.download all

Error when invoking dragonfire

Hello,
Please help for this error.
Thanks

(Ubuntu 14.4)

Traceback (most recent call last):
File "/usr/local/bin/dragonfire", line 5, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2671, in
working_set.require(requires)
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 654, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 552, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: youtube-dl

Assign environment variable GST_PLUGIN_PATH in development mode

GST_PLUGIN_PATH environment variable must be assigned to /usr/share/kaldi/src/gst-plugin in order to Kaldi GStreamer works.

In standard installation we assign it just before initiating the actual script with this line. (so it's fine)

But in development mode (pip install -e .) none of the files under debian/ are functional. In development mode when you run dragonfire it immediately enters to dragonfire/__init__.py and runs initiate().

We need to find a way to assign that environment variable from inside the Python. I tried to put os.environ["GST_PLUGIN_PATH"] = "/usr/share/kaldi/src/gst-plugin" to several locations but it seems not working. Not sure why though... (I think it needs to be assigned in parent shell)

Finally it not working under Debian 9.

After resolving issue #76 it seems start. But it seems not working according https://www.youtube.com/watch?v=krHUzY2DylI. No reaction on voice and no hello from program. My dragonfire output:

turtle@working-turtle /tmp $ dragonfire
TensorFlow detected: v1.0.0

Warning: Restoring parameters:
globStep: 32000
watsonMode: False
autoEncode: False
corpus: cornell
datasetTag: old
maxLength: 10
filterVocab: 0
skipLines: False
vocabularySize: 0
hiddenSize: 512
numLayers: 2
softmaxSamples: 0
initEmbeddings: False
embeddingSize: 64
embeddingSource: None

Loading dataset from /usr/share/dragonfire/conversational/model-pretrainedv2/dataset-cornell-old-length10-filter0-vocabSize0.pkl
Loaded cornell: 34991 words, 139979 QA
Model creation...
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Initialize variables...
WARNING: Restoring previous model from /usr/share/dragonfire/conversational/model-pretrainedv2/model.ckpt
_______________________________________________________________


** (dragonfire:16494): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(dragonfire:16494): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(dragonfire:16494): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(dragonfire:16494): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
Traceback (most recent call last):
  File "/usr/bin/dragonfire", line 11, in <module>
    load_entry_point('dragonfire==1.0.0', 'console_scripts', 'dragonfire')()
  File "/usr/lib/python3/dist-packages/dragonfire/__init__.py", line 635, in initiate
    dragon_greet()
  File "/usr/lib/python3/dist-packages/dragonfire/__init__.py", line 574, in dragon_greet
    gender = Classifier.gender(user_full_name.split(' ', 1)[0])
  File "/usr/lib/python3/dist-packages/dragonfire/nlplib.py", line 26, in gender
    return classifier.classify(Classifier.gender_features(word))
  File "/usr/lib/python3/dist-packages/dragonfire/nlplib.py", line 14, in gender_features
    return {'last_letter': word[-1]}
IndexError: string index out of range

is it possible to modify dragonfire name?

hi guys first of all congrats for this awesome project, finally something smarter. i'm here just to ask you if it's possible to modify dragonfire wake up words and name,if so in which file? thank you!

3D Avatar for Dragonfire

Find a way to display a 3D object with animations.

  • A high-poly 3D female head with transparent background will appear on the screen everytime when TTS triggered (with mouth animations):

'dragonfire not found' after a successful .deb installation

No errors occur during installation via the latest 0.9.9.deb however running Dragonfire outputs:
/usr/bin/dragonfire: 3: /usr/bin/dragonfire: /usr/share/python/dragonfire/bin/dragonfire: not found .

The installer creates no folder named /usr/share/python/dragonfire/ and the closest I can find is /usr/lib/python2.7/dist-packages/dragonfire/ I am running Ubuntu 16.04 with python 2.7.14 & 3.6.5 and my best guess is there is some confusion in regards as to which python version the installer wants to use. The required dependencies are installed in python 3.6 and not 2.7 however all Dragonfire related files are installed in /usr/lib/python2.7/dist-packages/ however the installation process mentions python3.6 here:
/usr/local/lib/python3.6/site-packages/en_core_web_sm -->
/usr/local/lib/python3.6/site-packages/spacy/data/en
and here:
Requirement already up-to-date: PyAudio in /usr/local/lib/python3.6/site-packages (0.2.11) Requirement already up-to-date: wikipedia in /usr/local/lib/python3.6/site-packages (1.4.0) Requirement already up-to-date: PyUserInput in /usr/local/lib/python3.6/site-packages (0.1.11) Requirement already up-to-date: tinydb in /usr/local/lib/python3.6/site-packages (3.9.0.post1) Requirement already up-to-date: youtube_dl in /usr/local/lib/python3.6/site-packages (2018.5.18) Requirement already up-to-date: spacy in /usr/local/lib/python3.6/site-packages (2.0.11) Requirement already up-to-date: pyowm in /usr/local/lib/python3.6/site-packages (2.8.0) Requirement already up-to-date: tensorflow==1.0.0 in /usr/local/lib/python3.6/site-packages (1.0.0) Requirement already up-to-date: deepspeech==0.2.0a5 in /usr/local/lib/python3.6/site-packages (0.2.0a5) Requirement already up-to-date: tweepy in /usr/local/lib/python3.6/site-packages (3.6.0) Requirement already up-to-date: metadata_parser in /usr/local/lib/python3.6/site-packages (0.9.19) Requirement not upgraded as not directly required: beautifulsoup4 in /usr/local/lib/python3.6/site-packages (from wikipedia) (4.6.0) Requirement not upgraded as not directly required: requests<3.0.0,>=2.0.0 in /usr/local/lib/python3.6/site-packages (from wikipedia) (2.18.4) Requirement not upgraded as not directly required: python-xlib in /usr/local/lib/python3.6/site-packages (from PyUserInput) (0.23) Requirement not upgraded as not directly required: numpy>=1.7 in /usr/local/lib/python3.6/site-packages (from spacy) (1.14.3) Requirement not upgraded as not directly required: murmurhash<0.29,>=0.28 in /usr/local/lib/python3.6/site-packages (from spacy) (0.28.0) Requirement not upgraded as not directly required: cymem<1.32,>=1.30 in /usr/local/lib/python3.6/site-packages (from spacy) (1.31.2) Requirement not upgraded as not directly required: preshed<2.0.0,>=1.0.0 in /usr/local/lib/python3.6/site-packages (from spacy) (1.0.0) Requirement not upgraded as not directly required: thinc<6.11.0,>=6.10.1 in /usr/local/lib/python3.6/site-packages (from spacy) (6.10.2) Requirement not upgraded as not directly required: plac<1.0.0,>=0.9.6 in /usr/local/lib/python3.6/site-packages (from spacy) (0.9.6) Requirement not upgraded as not directly required: pathlib in /usr/local/lib/python3.6/site-packages (from spacy) (1.0.1) Requirement not upgraded as not directly required: ujson>=1.35 in /usr/local/lib/python3.6/site-packages (from spacy) (1.35) Requirement not upgraded as not directly required: dill<0.3,>=0.2 in /usr/local/lib/python3.6/site-packages (from spacy) (0.2.7.1) Requirement not upgraded as not directly required: regex==2017.4.5 in /usr/local/lib/python3.6/site-packages (from spacy) (2017.4.5) Requirement not upgraded as not directly required: six>=1.10.0 in /usr/local/lib/python3.6/site-packages (from tensorflow==1.0.0) (1.11.0) Requirement not upgraded as not directly required: protobuf>=3.1.0 in /usr/local/lib/python3.6/site-packages (from tensorflow==1.0.0) (3.5.2.post1) Requirement not upgraded as not directly required: wheel>=0.26 in /usr/local/lib/python3.6/site-packages (from tensorflow==1.0.0) (0.31.1) Requirement not upgraded as not directly required: scipy in /usr/local/lib/python3.6/site-packages (from deepspeech==0.2.0a5) (1.1.0) Requirement not upgraded as not directly required: PySocks>=1.5.7 in /usr/local/lib/python3.6/site-packages (from tweepy) (1.6.8) Requirement not upgraded as not directly required: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.6/site-packages (from tweepy) (0.8.0) Requirement not upgraded as not directly required: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests<3.0.0,>=2.0.0->wikipedia) (1.22) Requirement not upgraded as not directly required: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests<3.0.0,>=2.0.0->wikipedia) (2018.4.16) Requirement not upgraded as not directly required: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests<3.0.0,>=2.0.0->wikipedia) (2.6) Requirement not upgraded as not directly required: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests<3.0.0,>=2.0.0->wikipedia) (3.0.4) Requirement not upgraded as not directly required: wrapt in /usr/local/lib/python3.6/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (1.10.11) Requirement not upgraded as not directly required: tqdm<5.0.0,>=4.10.0 in /usr/local/lib/python3.6/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (4.23.3) Requirement not upgraded as not directly required: cytoolz<0.9,>=0.8 in /usr/local/lib/python3.6/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (0.8.2) Requirement not upgraded as not directly required: termcolor in /usr/local/lib/python3.6/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (1.1.0) Requirement not upgraded as not directly required: msgpack-python in /usr/local/lib/python3.6/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (0.5.6) Requirement not upgraded as not directly required: msgpack-numpy==0.4.1 in /usr/local/lib/python3.6/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (0.4.1) Requirement not upgraded as not directly required: setuptools in /usr/local/lib/python3.6/site-packages (from protobuf>=3.1.0->tensorflow==1.0.0) (39.0.1) Requirement not upgraded as not directly required: oauthlib>=0.6.2 in /usr/local/lib/python3.6/site-packages (from requests-oauthlib>=0.7.0->tweepy) (2.0.7) Requirement not upgraded as not directly required: toolz>=0.8.0 in /usr/local/lib/python3.6/site-packages (from cytoolz<0.9,>=0.8->thinc<6.11.0,>=6.10.1->spacy) (0.9.0)
Have tried deleting all related Dragonfire files and reinstalling countless times to no avail.

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.