Init + models
Browse filesFiles changed (9)
- .idx/dev.nixAdded+56
- .python-versionAdded+1
- main.pyAdded+6
- models/piper/ryan-high.onnxAdded+3
- models/piper/ryan-high.onnx.jsonAdded+420
- models/wake/hey_ea.tfliteAdded+3
- models/whisper/tiny.ptAdded+3
- pyproject.tomlAdded+7
- setup_models.pyAdded+32
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556# To learn more about how to use Nix to configure your environment# see: https://developers.google.com/idx/guides/customize-idx-env{ pkgs, ... }: { # Which nixpkgs channel to use. channel = "stable-25.05"; # or "unstable" # Use https://search.nixos.org/packages to find packages packages = [ # pkgs.go pkgs.python314 pkgs.uv # pkgs.python311Packages.pip # pkgs.nodejs_20 # pkgs.nodePackages.nodemon ]; # Sets environment variables in the workspace env = {}; idx = { # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id" extensions = [ # "vscodevim.vim" "google.gemini-cli-vscode-ide-companion" "ms-python.python" ]; # Enable previews previews = { enable = true; previews = { # web = { # # Example: run "npm run dev" with PORT set to IDX's defined port for previews, # # and show it in IDX's web preview panel # command = ["npm" "run" "dev"]; # manager = "web"; # env = { # # Environment variables to set for your server # PORT = "$PORT"; # }; # }; }; }; # Workspace lifecycle hooks workspace = { # Runs when a workspace is first created onCreate = { # Example: install JS dependencies from NPM # npm-install = "npm install"; # Open editors for the following files by default, if they exist: default.openFiles = [ "README.md" ]; }; # Runs when the workspace is (re)started onStart = { # Example: start a background task to watch and re-build backend code # watch-backend = "npm run watch-backend"; }; }; };}13.11123456def main(): print("Hello from myapp!")
if __name__ == "__main__": main()123version https://git-lfs.github.com/spec/v1oid sha256:b3990d7606e183ec8dbfba70a4607074f162de1a0c412e0180d1ff60bb154ecasize 120786792123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420{ "audio": { "sample_rate": 22050, "quality": "high" }, "espeak": { "voice": "en-us" }, "inference": { "noise_scale": 0.667, "length_scale": 1, "noise_w": 0.8 }, "phoneme_map": {}, "phoneme_id_map": { "_": [ 0 ], "^": [ 1 ], "$": [ 2 ], " ": [ 3 ], "!": [ 4 ], "'": [ 5 ], "(": [ 6 ], ")": [ 7 ], ",": [ 8 ], "-": [ 9 ], ".": [ 10 ], ":": [ 11 ], ";": [ 12 ], "?": [ 13 ], "a": [ 14 ], "b": [ 15 ], "c": [ 16 ], "d": [ 17 ], "e": [ 18 ], "f": [ 19 ], "h": [ 20 ], "i": [ 21 ], "j": [ 22 ], "k": [ 23 ], "l": [ 24 ], "m": [ 25 ], "n": [ 26 ], "o": [ 27 ], "p": [ 28 ], "q": [ 29 ], "r": [ 30 ], "s": [ 31 ], "t": [ 32 ], "u": [ 33 ], "v": [ 34 ], "w": [ 35 ], "x": [ 36 ], "y": [ 37 ], "z": [ 38 ], "æ": [ 39 ], "ç": [ 40 ], "ð": [ 41 ], "ø": [ 42 ], "ħ": [ 43 ], "ŋ": [ 44 ], "œ": [ 45 ], "ǀ": [ 46 ], "ǁ": [ 47 ], "ǂ": [ 48 ], "ǃ": [ 49 ], "ɐ": [ 50 ], "ɑ": [ 51 ], "ɒ": [ 52 ], "ɓ": [ 53 ], "ɔ": [ 54 ], "ɕ": [ 55 ], "ɖ": [ 56 ], "ɗ": [ 57 ], "ɘ": [ 58 ], "ə": [ 59 ], "ɚ": [ 60 ], "ɛ": [ 61 ], "ɜ": [ 62 ], "ɞ": [ 63 ], "ɟ": [ 64 ], "ɠ": [ 65 ], "ɡ": [ 66 ], "ɢ": [ 67 ], "ɣ": [ 68 ], "ɤ": [ 69 ], "ɥ": [ 70 ], "ɦ": [ 71 ], "ɧ": [ 72 ], "ɨ": [ 73 ], "ɪ": [ 74 ], "ɫ": [ 75 ], "ɬ": [ 76 ], "ɭ": [ 77 ], "ɮ": [ 78 ], "ɯ": [ 79 ], "ɰ": [ 80 ], "ɱ": [ 81 ], "ɲ": [ 82 ], "ɳ": [ 83 ], "ɴ": [ 84 ], "ɵ": [ 85 ], "ɶ": [ 86 ], "ɸ": [ 87 ], "ɹ": [ 88 ], "ɺ": [ 89 ], "ɻ": [ 90 ], "ɽ": [ 91 ], "ɾ": [ 92 ], "ʀ": [ 93 ], "ʁ": [ 94 ], "ʂ": [ 95 ], "ʃ": [ 96 ], "ʄ": [ 97 ], "ʈ": [ 98 ], "ʉ": [ 99 ], "ʊ": [ 100 ], "ʋ": [ 101 ], "ʌ": [ 102 ], "ʍ": [ 103 ], "ʎ": [ 104 ], "ʏ": [ 105 ], "ʐ": [ 106 ], "ʑ": [ 107 ], "ʒ": [ 108 ], "ʔ": [ 109 ], "ʕ": [ 110 ], "ʘ": [ 111 ], "ʙ": [ 112 ], "ʛ": [ 113 ], "ʜ": [ 114 ], "ʝ": [ 115 ], "ʟ": [ 116 ], "ʡ": [ 117 ], "ʢ": [ 118 ], "ʲ": [ 119 ], "ˈ": [ 120 ], "ˌ": [ 121 ], "ː": [ 122 ], "ˑ": [ 123 ], "˞": [ 124 ], "β": [ 125 ], "θ": [ 126 ], "χ": [ 127 ], "ᵻ": [ 128 ], "ⱱ": [ 129 ] }, "num_symbols": 130, "num_speakers": 1, "speaker_id_map": {}, "piper_version": "0.2.0", "language": { "code": "en_US", "family": "en", "region": "US", "name_native": "English", "name_english": "English", "country_english": "United States" }, "dataset": "ryan"}123version https://git-lfs.github.com/spec/v1oid sha256:14bff778604985e1b5c19f0f7bbe477a69cf281d8db34b232b3b972411f710e2size 1278912123version https://git-lfs.github.com/spec/v1oid sha256:65147644a518d12f04e32d6f3b26facc3f8dd46e5390956a9424a650c0ce22b9size 755720831234567[project]name = "myapp"version = "0.1.0"description = "Add your description here"readme = "README.md"requires-python = ">=3.11"dependencies = []1234567891011121314151617181920212223242526272829303132#!/usr/bin/env python3# setup_ea_models.py — run this once, EA never disappears again
import osfrom urllib.request import urlretrievefrom pathlib import Path
BASE = Path("models")BASE.mkdir(exist_ok=True)
models = { "whisper/tiny.pt": "https://openaipublic.azureedge.net/main/whisper/models/65147644a518d12f04e32d6f3b26facc3f8dd46e5390956a9424a650c0ce22b9/tiny.pt", "piper/ryan-high.onnx": "https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/ryan/high/en_US-ryan-high.onnx", "piper/ryan-high.onnx.json": "https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/ryan/high/en_US-ryan-high.onnx.json", "wake/hey_ea.tflite": "https://github.com/dscripka/openWakeWord/releases/download/v0.5.1/hey_jarvis_v0.1.tflite",}
print("Downloading EA’s brain & voice… (≈300 MB total)")
for rel_path, url in models.items(): path = BASE / rel_path path.parent.mkdir(parents=True, exist_ok=True) if path.exists(): print(f"Already have {rel_path}") else: print(f"Downloading {rel_path} …") urlretrieve(url, path) print(f"Done → {path} ({path.stat().st_size // 1024 // 1024} MB)")
print("\nAll EA models ready!")print("Now run: git add models/ && git commit -m 'EA models' && git push")print("Then every future 'git pull + git lfs pull' will bring them back instantly.").idx/dev.nixAdded+56
.python-versionAdded+1
main.pyAdded+6
models/piper/ryan-high.onnxAdded+3
models/piper/ryan-high.onnx.jsonAdded+420
models/wake/hey_ea.tfliteAdded+3
models/whisper/tiny.ptAdded+3
pyproject.tomlAdded+7
setup_models.pyAdded+32