Voice-Driven Web-Based Code Editor

Hlasem ovládaný webový editor kódu

Supervisors

Editors

Other contributors

Journal Title

Journal ISSN

Volume Title

Publisher

České vysoké učení technické v Praze
Czech Technical University in Prague

Date of defense

Research Projects

Organizational Units

Journal Issue

Abstract

Tato práce popisuje implementaci hlasově ovládaného editoru kódu, který umožňuje lidem s pohybovým omezením programovat pomocí svého hlasu. Existující aplikace jsou často placené, nebo vyžadují poměrně komplikovanou instalaci, což snižuje jejich přístupnost. Tato práce si klade za cíl implementovat fungující prototyp takového editoru jako webovou aplikaci, jejíž hlavní záměření je přístupnost a jednoduchost použití. Bezplatná verze služby Google cloud's speech-to-text je použita pro rozpoznávání řeči. Přepsaná slova jsou poté zpracována lexikální a syntaktickou analýzou, jež je transformují na kód jazyka JavaScript. Pro transformaci je použita vlastní implementace bezkontextové gramatiky a parsovacího algoritmu, které také umožňují další pokročilé funkce editoru jako například automatickou indentaci, rozpoznání identifikátorů a možnost vracet změny editoru. Výsledná aplikace byla otestována čtyřmi uživateli, kteří poskytli převážně pozitivní zpětnou vazbu. Editor i jeho zdrojové kódy jsou veřejně dostupné ve službě Gitlab.

This thesis describes the implementation of a voice-driven code editor that enables injured or disabled people to write programs using their voice. Existing working solutions are often paid or require a complicated setup, making them less accessible. This thesis aims to implement a working prototype of such an editor as a web application, with a main focus on accesibility and ease of use. A free version of Google cloud's speech-to-text service is used for speech recognition. The transcribed words are then processed by lexical and syntactical analysis, which transform them to valid JavaScript code. For this transformation, a custom context-free grammar and a parsing algorithm are implemented that also enable additional advanced features of the editor such as smart identifier resolution, undo/redo functionality, and automatic indentation. The resulting application has been tested by four users, which have provided mostly positive feedback. The code editor, as well as its source code, are available publicly on Gitlab

Description

Citation

Underlying research data set URL

Rights/License

A university thesis is a work protected by the Copyright Act of the Czech Republic. Extracts, copies and transcripts of the thesis are allowed for personal use only and at one`s own expense. The use of thesis should be in compliance with the Copyright Act.

Vysokoškolská závěrečná práce je dílo chráněné autorským zákonem. Je možné pořizovat z něj na své náklady a pro svoji osobní potřebu výpisy, opisy a rozmnoženiny. Jeho využití musí být v souladu s autorským zákonem v platném znění.

Endorsement

Review

Supplemented By

Referenced By