How adrgon/charlalo works
Main Components
• User Interface:
• index.html: The main HTML document that structures the app.
• styles.css: Contains all the styling for the front-end.
• JavaScript Logic (located in the scripts folder):
• charlalo.js: Likely the entry point for the app’s core logic and component initialization.
• recognition.js: Manages Speech Recognition functionalities.
• synthesis.js: Implements Text-to-Speech abilities.
• camera.js: Possibly used to capture or interact with the device camera, which might be an extra feature.
• PWA-specific Files:
• app.webmanifest: Defines the app’s manifest for installation and configuration as a web application.
• serviceworker.js: Handles caching and offline functionalities to support the PWA behavior.
• Assets:
• imagenes folder with pictogramas subfolder: Contains image assets that are used by the app.
Relationships & Interactions
• The index.html loads the UI, styles, and JavaScript modules.
• The scripts (charlalo.js, recognition.js, synthesis.js, camera.js) interact to offer the core features (speech recognition and text-to-speech).
• The serviceworker.js is registered by the main HTML to intercept and cache network requests, ensuring offline capabilities.
• app.webmanifest works with the browser to define installation properties for the PWA.
• Assets (imagenes and pictogramas.json) are loaded by the UI components to populate visual content.
Architectural Patterns & Design Principles
• Modularization: JavaScript functionalities are broken into dedicated modules (each for a specific service, such as speech recognition and synthesis), promoting separation of concerns.
• Progressive Enhancement: The project leverages modern web APIs (Speech APIs, Service Workers) to enhance device capabilities.
Relevant Technologies / Frameworks
• Standard HTML, CSS, and JavaScript for the front-end.
• Browser-native APIs for Speech Recognition and Text-to-Speech.
• PWA Technologies: Service Worker, Web App Manifest for installation prompts and offline support.