1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-02-15 11:20:47 +01:00

234 Commits

Author SHA1 Message Date
j1nx
f628a9f49c [WIP] Add libgpiod2 and tools for debugging 2024-02-11 11:46:51 +00:00
Bohdan Buinich
c0442cc0e6 [RPI] Refactor SPI and GPIO handling for XVF3510 initialization
This commit significantly overhauls the script for setting the XVF3510 board to boot from SPI slave mode and for loading a binary file. The refactor not only aims at improving code readability, maintainability, and robustness but also addresses compatibility issues with the latest Raspberry Pi models, specifically the Raspberry Pi 5, which does not support the RPi.GPIO library.

Changes made:
- Switched from `smbus` to `smbus2` for I2C communication, offering a more modern and robust interface.
- Replaced `RPi.GPIO` and `spidev` with `digitalio` and `busio` from the `adafruit_blinka` library, enhancing cross-platform compatibility and providing a more Pythonic API for GPIO and SPI operations.
- Introduced type annotations for function signatures, improving code readability and type safety.
- Added exception handling around I2C operations and file reading, increasing the script's robustness by gracefully handling potential errors.
- Defined global variables for GPIO pin configurations, making the code cleaner and easier to modify for different setups.
- Encapsulated GPIO setup and reset logic into dedicated functions (`setup_direct_gpio`), streamlining the main logic flow and separating concerns.
- Modularized SPI setup (`setup_spi`) and data transmission logic (`send_data_over_spi` and `handle_block_transfer`), enhancing code organization and maintainability.

Benefits:
- The use of `smbus2` and `adafruit_blinka` libraries modernizes the script and may improve compatibility with a wider range of devices and future Python versions.
- Type annotations and structured exception handling make the script more understandable and safer to execute, reducing the risk of runtime errors.
- The refactoring into more granular functions and the introduction of global variables for configuration parameters make the script easier to read, modify, and extend.
- Improved error handling ensures that the script fails gracefully, providing clear error messages and avoiding potential resource leaks.
2024-02-08 01:25:53 +02:00
j1nx
61351a7150 [WIP] Initial work on pre-pulling containers at buildtime. 2023-10-21 10:33:28 +00:00
j1nx
c6460b9307 [WIP] Pushed for backup.
... Do not build this as of yet ...
2023-06-01 15:16:04 +02:00
j1nx
4987443134 Add ovos-phal-plugin-oauth 2023-05-17 09:47:55 +02:00
j1nx
768152d027 Add importlib-metadata and dependencies 2023-05-17 09:03:11 +02:00
j1nx
95e6e0d560 Add webcolors package 2023-05-16 21:24:21 +02:00
j1nx
16bf738e64 Add sqlalchemy-json 2023-05-14 16:00:04 +02:00
j1nx
dd20136c7b Add rich-click and dependencies 2023-05-14 15:38:39 +02:00
j1nx
f0a6da9f94 Add nltk package 2023-05-14 14:41:32 +02:00
j1nx
1999c7388a Add joblib package 2023-05-14 13:41:58 +02:00
j1nx
e740cb159f Add nested-lookup package 2023-05-14 13:37:10 +02:00
j1nx
8f8b40d615 Add jaraco-collections and dependencies 2023-05-14 13:32:14 +02:00
j1nx
f126cd4b47 Bump ovos-personal-backend 2023-05-08 13:54:56 +02:00
j1nx
c8ec03df12 Bump ovos-stt-plugin-server 2023-05-07 17:11:54 +02:00
j1nx
3d476a1130 Add pendulum package 2023-05-07 15:19:11 +02:00
j1nx
55b998a6e0 Add ovos-classifiers package 2023-05-07 13:22:53 +02:00
j1nx
e99d609f3d Add ovos-audio package 2023-05-07 12:22:28 +02:00
j1nx
b7ed6fc8da Add ovos-listener package 2023-05-07 12:15:08 +02:00
j1nx
5636832b55 Replace mycroft-messagebus-client with ovos-bus-client 2023-05-06 09:15:21 +02:00
j1nx
9c65ec20c1 Add python-ovos-gui package 2023-05-05 14:02:37 +02:00
j1nx
cb23c45f92 Allow tensorflow-lite to be build for both aarch64 and x86-64 2023-04-25 13:22:24 +02:00
j1nx
d2ec98cd4f Bump buildroot to the latest 2023.02.x LTS version 2023-04-07 12:48:03 +02:00
j1nx
876ee82daa Extend the whole TensorFlow-Lite runtime infrastructure
- TFlite-runtime GPU delegate support
- TFlite-runtime external delegate support
- ARM Compute Library and ARMnn Delegate
- Whisper-TFlite updates.
2023-01-25 14:22:22 +01:00
j1nx
5e7183748f Add support for QTAV based videoplayer. 2023-01-17 12:17:31 +01:00
j1nx
d889128a9e Add ovos-phal-plugin-homeassistant 2023-01-14 16:52:57 +01:00
j1nx
b007be7615 Add vnc-eglfs package for testing purposes 2023-01-12 12:30:32 +01:00
j1nx
4c20871efe Add OCP streaming plugins 2023-01-11 20:20:11 +01:00
j1nx
bfdc33ae1a Add pa_volume package / binary 2023-01-11 13:21:14 +01:00
j1nx
febd8d99cf Add roc-toolkit package and dependencies for Real Time network audio. 2023-01-11 12:24:07 +01:00
j1nx
99c88726e7 Add ksm_preload package 2023-01-09 12:24:14 +01:00
j1nx
6a7d217f99 Add ovos-bus-server package 2023-01-09 11:46:36 +01:00
j1nx
1a7959a749 Add rnnnoise-ladspa plugin for denoising 2023-01-05 11:48:09 +01:00
j1nx
11aa168aa9 Add local music and filerowser skills 2023-01-05 09:47:18 +01:00
j1nx
46904149bc Get Mark2 retail version working + other tweaks 2023-01-04 09:14:32 +01:00
j1nx
b754888751 [WIP] More work on DeepFilterNet (HDF5) 2022-12-24 19:14:57 +01:00
j1nx
b6e188c67d [WIP] Start of DeepFilterNet ladspa plugin for denoise mic 2022-12-21 16:01:10 +01:00
j1nx
08e08a0c5b [WIP] Build vosk-api andits dependencies from source
This so we can use the same package for any architecture in the future.
2022-12-20 15:58:35 +01:00
j1nx
117556f85e Add playground package whisper-tflite 2022-12-09 17:21:58 +01:00
j1nx
820eb398cc Bump buildroot and upgrade the tensorflow-lite system 2022-12-07 20:16:34 +01:00
j1nx
294f15e193 Add and switch over to NeonGeckoCom its alert skill
This replaces the alarm and timer skill and fills in
the gap of reminders skill missing.
2022-11-16 12:30:28 +01:00
j1nx
6d5a2d3549 Add ovos-stt-plugin-whispercpp including python bindings PR 2022-11-15 13:52:04 +01:00
j1nx
ab4e0e4cce Add libwhisper library package 2022-11-15 13:27:27 +01:00
j1nx
033eebedd1 AAdd ovos-ww-plugin-vosk and use it for "wake up" 2022-11-15 10:22:55 +01:00
j1nx
54b9f7ee55 Add ovos-tts-plugin-mimic3-server 2022-11-11 10:44:10 +01:00
j1nx
0abca6a109 [WIP] Working on implementing all sj201-interface dependencies
Leaving it for now as circuitpython needs some thoughs to implement
into the buildroot system.
2022-11-05 15:11:23 +01:00
j1nx
ea0906a5f7 Add python-hijri-converter package 2022-10-28 19:56:38 +02:00
j1nx
dcdba6494a Bump packages and skills 2022-10-13 17:30:17 +02:00
j1nx
ed11ce7ec5 Add/Convert fallback unknown skill 2022-10-07 08:18:11 +02:00
j1nx
464bcdc220 Almost there .... 2022-10-06 13:13:07 +02:00