|
1 | | -# Android_Websocket_Prompter |
2 | | -A simple Android application written in kotlin which starts a websocket server on localhost and both displays and reads via TTS any text received. |
| 1 | +<div align=center> |
| 2 | + <img src="logo.png" alt="Logo Image" width="30%"/> |
| 3 | + <h1>WS-Prompter</h1> |
| 4 | + <p>A simple Android application written in kotlin which starts a websocket server on localhost and both displays and reads aloud any text received. |
| 5 | +</p> |
| 6 | +</div> |
| 7 | + |
| 8 | +# About |
| 9 | +This is a simple application I developed for personal use as an extremelly niche use case teliprompter. It is intended for use with a separate websocket client script or application. |
| 10 | +No guarantee of quality or function is implied. This Is my first attempt at making an android application. |
| 11 | + |
| 12 | +# Usage |
| 13 | +Dead simple application with one button. Tap it to start the web server, tap it again to stop it. |
| 14 | +If TTS is unavailable the button text will warn you and it will default to display only mode. |
| 15 | + |
| 16 | +Their is no way to disable TTS so if you do not want TTS mute your device (or PR the feature your self). |
| 17 | + |
| 18 | +The websocket runs on port `2352` and can be accessed on localhost (or remotely if the port is unblocked for remote access) at `ws://<Device IP>:2352/` via a websocket client. For testing I used the browser addon "Weasel Websocket Cliet". |
| 19 | + |
| 20 | +# Instalation |
| 21 | +Supports devices Android 8.0 (Oreo) or higher. |
| 22 | +You can probably re-compile for older devices. |
| 23 | + |
| 24 | +## Instalation from APK |
| 25 | +Download most recient release and install the APK |
| 26 | +Android will warn you about an "untrusted application" |
| 27 | + |
| 28 | +## Building from source |
| 29 | +### Prerequisites |
| 30 | +- Java Development Kit (JDK) 8 or newer |
| 31 | +- Android Studio installed (if using the GUI method) |
| 32 | +- Gradle Version 7.4 or newer (if building with gradle) |
| 33 | + |
| 34 | +### Clone the Repository |
| 35 | +Clone the repository to your local machine: |
| 36 | +``` |
| 37 | +git clone https://github.com/RootInit/Android_Websocket_Prompter |
| 38 | +``` |
| 39 | +### Building with Gradle |
| 40 | +Navigate to the project directory: |
| 41 | +``` |
| 42 | +cd Android_Websocket_Prompter |
| 43 | +``` |
| 44 | +Run the following Gradle command to build the APK: |
| 45 | +``` |
| 46 | +./gradlew build |
| 47 | +./gradlew assembleRelease |
| 48 | +``` |
| 49 | + |
| 50 | +### Building with Android Studio GUI |
| 51 | +> Open Android Studio and select "Open an Existing Project". Navigate to the cloned repository directory and open it as a project. |
| 52 | +> Click on the "Build" menu button > Build Bundle / APK(s) > Build APK(s) |
| 53 | +
|
| 54 | +### Output |
| 55 | +Either build message should create the APK file in the following location: |
| 56 | +```Android_Websocket_Prompter/app/build/outputs/apk/release/app-release-unsigned.apk``` |
| 57 | +If it doesn't then... Sorry I can't help you. |
| 58 | + |
0 commit comments