Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CrushN8r committed Sep 25, 2024
0 parents commit 024214a
Show file tree
Hide file tree
Showing 345 changed files with 83,093 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Report a bug with the software (this is NOT for cases of "it's not working
for me")
title: "[BUG] "
labels: bug, help wanted
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Device you are running wire-pod on (please complete the following information):**
- OS: [e.g. Debian, Windows]
- Hardware: [e.g. Raspberry Pi]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/problem-with-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Problem with setup
about: Please follow this template if you are having issues setting wire-pod up. I
(kercre123) will not be providing support for these.
title: "[HELP] <describe issue here>"
labels: ''
assignees: ''

---

**Describe the issue:**

**What are you running wire-pod on?**
- [OS]: (ex. Windows, Debian)
- [Hardware]: (ex. Raspberry Pi)

**Are you setting up a prod (regular) bot or a dev/OSKR (unlocked) bot?**

**What steps have you tried?**
98 changes: 98 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '25 22 * * *'
push:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/[email protected]
with:
cosign-release: 'v2.2.2' # optional

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/stt
/vector-cloud/build/vic-cloud
/chipper/source.sh
/vector-cloud/build
/chipper/chipper
/certs
/vector-cloud/packagesGotten
/vector-cloud/cloud/cert.go
/chipper/aarch64
/chipper/armarch
/chipper/processOnce
/ssh_root_key
/.vscode
/chipper/botConfig.json
/chipper/.vscode
/chipper/useepod
/chipper/pico.key
/chipper/libvosk.so
/vosk
/chipper/customIntents.json
/chipper/botConfig.json
/chipper/jdocs/*.json
/chipper/nvm
/chipper/apiConfig.json
/chipper/session-certs/0*
/chipper/vbuild/vic-toolchain
/chipper/vbuild/chipper
/chipper/vbuild/botpack.tar.gz
/chipper/windows/tmp
/chipper/windows/chipper.exe
/chipper/windows/*.zip
/chipper/windows/*.exe
/chipper/vbuild/built-libs
/chipper/windows/libs
/chipper/windows/opus
/chipper/windows/ogg
/chipper/windows/.aptDone
/chipper/macos/libs
/chipper/macos/target
/chipper/plugins/*.so
/whisper.cpp
.DS_Store
/chipper/openaiChats.json
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Kerigan Creighton

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# wire-pod

`wire-pod` is fully-featured server software for the Anki (now Digital Dream Labs) [Vector](https://web.archive.org/web/20190417120536if_/https://www.anki.com/en-us/vector) robot. It was created thanks to Digital Dream Labs' [open-sourced code](https://github.com/digital-dream-labs/chipper).

It allows voice commands to work with any Vector 1.0 or 2.0 for no fee, including regular production robots.

## Installation

The installation guide exists on the wiki: [Installation guide](https://github.com/kercre123/wire-pod/wiki/Installation)

## Wiki

Check out the [wiki](https://github.com/kercre123/wire-pod/wiki) for more information on what wire-pod is, a guide on how to install wire-pod, troubleshooting, how to develop for it, and for some generally helpful tips.

## Donate

If you want to :P

[![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/kercre123)

## Credits

- [Digital Dream Labs](https://github.com/digital-dream-labs) for open sourcing chipper and creating escape pod (which made this possible)
- [bliteknight](https://github.com/bliteknight) for making wire-pod more accessible with his easy-to-use pre-setup Linux boxes
- [dietb](https://github.com/dietb) for rewriting chipper and giving tips
- [fforchino](https://github.com/fforchino) for adding many features such as localization and multilanguage, and for helping out
- [xanathon](https://github.com/xanathon) for the publicity and web interface help
- Anyone who has opened an issue and/or created a pull request for wire-pod
21 changes: 21 additions & 0 deletions chipper/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Digital Dream Labs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 10 additions & 0 deletions chipper/cmd/coqui/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"github.com/kercre123/wire-pod/chipper/pkg/initwirepod"
stt "github.com/kercre123/wire-pod/chipper/pkg/wirepod/stt/coqui"
)

func main() {
initwirepod.StartFromProgramInit(stt.Init, stt.STT, stt.Name)
}
10 changes: 10 additions & 0 deletions chipper/cmd/experimental/houndify/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"github.com/kercre123/wire-pod/chipper/pkg/initwirepod"
stt "github.com/kercre123/wire-pod/chipper/pkg/wirepod/stt/houndify"
)

func main() {
initwirepod.StartFromProgramInit(stt.Init, stt.STT, stt.Name)
}
10 changes: 10 additions & 0 deletions chipper/cmd/experimental/whisper.cpp/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"github.com/kercre123/wire-pod/chipper/pkg/initwirepod"
stt "github.com/kercre123/wire-pod/chipper/pkg/wirepod/stt/whisper.cpp"
)

func main() {
initwirepod.StartFromProgramInit(stt.Init, stt.STT, stt.Name)
}
10 changes: 10 additions & 0 deletions chipper/cmd/experimental/whisper/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"github.com/kercre123/wire-pod/chipper/pkg/initwirepod"
stt "github.com/kercre123/wire-pod/chipper/pkg/wirepod/stt/whisper"
)

func main() {
initwirepod.StartFromProgramInit(stt.Init, stt.STT, stt.Name)
}
10 changes: 10 additions & 0 deletions chipper/cmd/leopard/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"github.com/kercre123/wire-pod/chipper/pkg/initwirepod"
stt "github.com/kercre123/wire-pod/chipper/pkg/wirepod/stt/leopard"
)

func main() {
initwirepod.StartFromProgramInit(stt.Init, stt.STT, stt.Name)
}
10 changes: 10 additions & 0 deletions chipper/cmd/vosk/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"github.com/kercre123/wire-pod/chipper/pkg/initwirepod"
stt "github.com/kercre123/wire-pod/chipper/pkg/wirepod/stt/vosk"
)

func main() {
initwirepod.StartFromProgramInit(stt.Init, stt.STT, stt.Name)
}
29 changes: 29 additions & 0 deletions chipper/epod/ep.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-----BEGIN CERTIFICATE-----
MIIFBTCCAu2gAwIBAgIUFn4HuHNv0I48LRGei5Yf5DpKTNUwDQYJKoZIhvcNAQEL
BQAwgYExCzAJBgNVBAYTAlVTMRUwEwYDVQQIDAxQZW5uc3lsdmFuaWExEzARBgNV
BAcMClBpdHRzYnVyZ2gxGzAZBgNVBAoMEkRpZ2l0YWwgRHJlYW0gTGFiczEpMCcG
CSqGSIb3DQEJARYaYnJldHRAZGlnaXRhbGRyZWFtbGFicy5jb20wIBcNMjAxMjEw
MTgzNDU0WhgPMjIyMDEwMjMxODM0NTRaMIGbMQswCQYDVQQGEwJVUzEVMBMGA1UE
CAwMUGVubnN5bHZhbmlhMRMwEQYDVQQ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xsy8w3OcSflv/Vjo/nHTUETnuB4EdeUOPNf/7euOtznUFhsyLmDuFHA6a2yU
PpI+g2HNgQUbJOtIRV3owc1ihnXwgeuj8Xt2eZvt3VaUE0333uC6Yc0EngIqf4gA
CQWbnsQM8HMh/+npFzbZlcM4RZoFChObb4O0FqVlYjD7/xnJE78dqSLwP8VVSD4g
y+WRDN4PJXgGZw4omtpC5OTReDOZmmZJUN2YTla1SZXyJcZv/x+P1th0qnmZ4Hf3
E4oNSE7wWX9/lZRTb3fegWL4AlW3IsosyIpYTHZ8Qqy1YfHo3zdxXqU=
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions chipper/epod/ep.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEApTTZ4f/PJTbelcqLpRi/Igx2nvqOsAha/YJQrCb+VjtkhSBl
+3WSeArgrqOxlDruz++Gql0H6IrAyvB6q94kX7ZWUZfNNDdVa5IVDQMePaGwwUHL
Zo6tLMjK0wwwiH/6t35ZkqltL3k9PM1zk4E+5nQRuHu1rr8KtTWoFOY79+SKcVpz
U3a1Ox1iq/Ax6IHj9XiP9PSkd2wPcbcLBIfFEnYLh8S2N1emwcZQurzd4CLTX9B7
Ip0o1NqkVuOz+ZuWqDX2Jpo741KXLx/6h43Ar7wDGGe/t9Y1neJFIW6VluM2ICGt
+36N3UIqroreyHy1Esk+wbfXjt3i0Agz3TZvBQIDAQABAoIBAHeIzRm72OrJT7Y8
LlxPkoQVVoLjMfjmoseI0cwuDprgMHQuo/uU71ySKk3SPTvOhFrJqbt8wqscMjDk
XS4b9l+Wc9BnsN9WJiVGNpsKpYfchSLf80cKdvzPcAnSaQ9q4kKAVllK46iU5Z0n
3rdcreFbHDNKt4Nv0VSaNTqh98P9W5CK1pIZbGHJGqFaE5VtUxvBzUGc7jAXj+eD
I8Ajum4AG3ZcJBBMiGCX6TzCoHZYBRUicLRvKkANDqNP4/L9wqbAlNmpP7I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