Giter VIP home page Giter VIP logo

dict-o-nator's Introduction

Dict'O'nator : A Dictation Plugin for Gedit 3.20

Features

  • Dictate text into Gedit
  • Delete sentences/words, perform undo/redo, copy/paste from clipboard, save/clear documents, go to line.
  • Repeat commands, insert special characters.
  • Choose one from many recognisation services
  • A comprehensive bottom bar
  • All commands work from the cursor, including put, deletes.
  • Multiple commands cannot be used together in one sentence
  • Only repeatable actions can be repeated
  • To input specific characters/digits use "put" command
Format of instructions:
  • some non command text : input directly
  • repeatable command (number) times : execute command number times
  • non repeatable command : execute command
  • put (special character) : input special character
  • put (special character) (number) times : input special character number times
  • put (number) digit : input number
  • put (number1) digit (number2) times : input number1 number2 times
Examples:
  • Hello what's up : non commands will be input directly
  • put underscore : input _
  • delete sentence : delete last sentence from pointer
  • put question mark 4 times : input question mark 4 times
  • delete 5 lines : delete 5 lines
  • go to line 5 : moves the cursor to line 5
  • save document : saves document

Requirements

Installation(For Ubuntu)

  • Install with script
    • Open terminal and execute sudo ./plugin_install.sh
  • Manual Install
    • Copy all contents of folder that matches your gedit version to path ~/.local/share/gedit/plugins/
    • Copy dictonator.svg to path /usr/share/icons/hicolor/scalable/apps/
    • Install python3 and pip3 by sudo apt-get install python3-all-dev python3-pip
    • Install portaudio and swig by sudo apt-get install swig portaudio19-dev
    • Install SpeechRecognition and pocketsphinx by pip3 install SpeechRecognition pocketsphinx

License

Dict'O'nator is released under GNU GPL v3

See LICENSE to read the terms of the GNU General Public License
You can also visit http://www.gnu.org/licenses/ to read the terms.

Code Attributes

Basic plugin codes
License: GPl v2
Gedit Wiki

Speech License: BSD
Uberi Speech Recognition

text2num library
License: MIT
text2num by Greg Hewgill

dict-o-nator's People

Contributors

raiharshit avatar suraj1074 avatar theawless avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dict-o-nator's Issues

Error during install

Hello,

The install fails under xubuntu 16.04 with the following traceback:

Collecting pocketsphinx
  Downloading pocketsphinx-0.1.3.zip (29.3MB)
    0% |                                | 71kB 6.6kB/s eta 1:13:27Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 226, in _error_catcher
    yield
  File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 301, in read
    data = self._fp.read(amt)
  File "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 49, in read
    data = self.__fp.read(amt)
  File "/usr/lib/python3.5/http/client.py", line 448, in read
    n = self.readinto(b)
  File "/usr/lib/python3.5/http/client.py", line 488, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.5/ssl.py", line 929, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.5/ssl.py", line 791, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib/python3.5/ssl.py", line 575, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 317, in run
    requirement_set.prepare_files(finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 577, in _prepare_file
    session=self.session, hashes=hashes)
  File "/usr/lib/python3/dist-packages/pip/download.py", line 810, in unpack_url
    hashes=hashes
  File "/usr/lib/python3/dist-packages/pip/download.py", line 649, in unpack_http_url
    hashes)
  File "/usr/lib/python3/dist-packages/pip/download.py", line 871, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "/usr/lib/python3/dist-packages/pip/download.py", line 595, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "/usr/lib/python3/dist-packages/pip/utils/hashes.py", line 46, in check_against_chunks
    for chunk in chunks:
  File "/usr/lib/python3/dist-packages/pip/download.py", line 563, in written_chunks
    for chunk in chunks:
  File "/usr/lib/python3/dist-packages/pip/utils/ui.py", line 139, in iter
    for x in it:
  File "/usr/lib/python3/dist-packages/pip/download.py", line 552, in resp_read
    decode_content=False):
  File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 344, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 311, in read
    flush_decoder = True
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py", line 231, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
Making Directories
mkdir: cannot create directory ‘/home/balleng/.local/share/’: File exists
mkdir: cannot create directory ‘/home/balleng/.local/share/gedit/’: File exists
mkdir: cannot create directory ‘/home/balleng/.local/share/gedit/plugins/’: File exists
mkdir: cannot create directory ‘/home/balleng/.local/share/gedit/plugins/dictonator/’: File exists
Moving Files
Moving Python Files
Moving UI Files
Moving Icon
gtk-update-icon-cache-3.0: Cache file created successfully.
Fixing permissions
Finished

The whole repo was cloned with git clone dir-to-this-repo.git.

Any help will be greatly appreciated.

Best,

Gustavo

ubuntu 18.04

I tried this really interesting and promising plugin at ubuntu 18.04 64bit GNOME.
Install worked without problems, but operation has flaws:

  • I could only make google recognizion work, none of the others
  • google is very slow - only short phrases (few works) are recognized
  • google always tries to recognize English - allthough I'm speaking German and google does very well in recognizing that on my android.

Here is the output from terminal:
$ gedit ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_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_route.c:867:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map MainThread - DEBUG - Speech Recogniser initialised MainThread - DEBUG - UI INIT

Please let me know which additional info you do need for debugging.

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.