{"id":15698598,"url":"https://github.com/fwcd/okpi","last_synced_at":"2025-05-09T01:33:38.059Z","repository":{"id":98826258,"uuid":"167829381","full_name":"fwcd/okpi","owner":"fwcd","description":"Virtual assistant with offline voice recognition for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2019-02-15T19:28:50.000Z","size":143,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T20:39:10.859Z","etag":null,"topics":["pocketsphinx","raspberry-pi","speech-assistant","speech-recognition"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fwcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-27T16:17:41.000Z","updated_at":"2025-02-21T15:51:05.000Z","dependencies_parsed_at":"2023-05-27T10:00:43.639Z","dependency_job_id":null,"html_url":"https://github.com/fwcd/okpi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fokpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fokpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fokpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fokpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwcd","download_url":"https://codeload.github.com/fwcd/okpi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174338,"owners_count":21865849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pocketsphinx","raspberry-pi","speech-assistant","speech-recognition"],"created_at":"2024-10-03T19:30:42.291Z","updated_at":"2025-05-09T01:33:37.999Z","avatar_url":"https://github.com/fwcd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OkPi\nVirtual assistant with offline voice recognition. Despite being primarily designed for Raspberry Pi, it should compile on any computer running Linux or macOS.\n\n## Installation\n\n### Pocket Sphinx\n* The PocketSphinx installation currently requires Node.js 6\n    * This can be achieved by using a version manager such as [nvm](https://github.com/creationix/nvm):\n        * `nvm install 6`\n* Install the [PocketSphinx](https://github.com/cmusphinx/node-pocketsphinx) [dependencies](https://github.com/cmusphinx/node-pocketsphinx#installation):\n    * `apt-get install cmake pkg-config libpcre3-dev bison`\n    * [`swig` from GitHub](https://github.com/swig/swig)\n    * [`sphinxbase` from GitHub](https://github.com/cmusphinx/sphinxbase)\n    * [`pocketsphinx` from GitHub](https://github.com/cmusphinx/pocketsphinx)\n    * Note that certain tweaks might be required prior to install:\n        * `export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig`\n        * `ln -s /usr/bin/swig3.0 /usr/bin/swig` (Create a symlink for `swig3.0`)\n    * `npm install cmake-js -g`\n\n### Say.js\n* Install Festival with a default voice:\n    * `apt-get install festival festvox-rablpc16k`\n\n### NPM Dependencies\n* `npm install`\n\n## Launching\n* Make sure that this repository (`OkPi`) is in the same folder as the cloned [`pocketsphinx` repository](https://github.com/cmusphinx/pocketsphinx)\n* `npm run start`\n    * Or alternatively using watch mode:\n    * `npm run watch`\n    * `npm run launch` (in a separate terminal)\n\n## Architecture\n* The application roughly implements the following structure:\n\n* Speech input \n    * -\u003e `AudioInput`\n    * -\u003e `SpeechRecognitionEngine`\n    * -\u003e `UtteranceProcessor`\n    * -\u003e `Skill`\n    * -\u003e `OutputFacade`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fokpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwcd%2Fokpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fokpi/lists"}