riispiik

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

riispiikk

This folder contains code and documentation for the development of a first recording tool, to be used in test recordings sessions in August, 2020.

Description

User Web Clients

- HTML5 + CSS Grid, following separate layout spec.
- Simple login: USER + SESSION
- Session timer
- Start/stop rec buttons
- Audio input meter
- Server ASR result text area, that scrolls down, pushing earlier results at bottom of list 
- Client connects to server over WebSocket
- Client-server handshake (wearing gloves, of course)
- Client starts audio recording
- Client streams audio to server over WebSocket
- Client listens for ASR response on WebSocket

CLI client

- Stream audio (live from mic using "rec" (SoX) or from audio file) from command line to server via WebSocket
- Read ASR result over WebSocket

Admin client(?)

- Simple log page, to which server sends log messages over WebSocket
- File listings?
- Client listings? (See log above)

Server

- Serves client and admin GUI
- Waits for WebSocket calls
- Reads streaming audio over WebSocket
- Saves streaming audio locally (or on remote location?)
- Saves meta data along with audio
- Optionally streams incoming audio stream to stand-alone ASR server
- If streaming to ASR server, sends corresponding ASR result to user client over WebSocket
- Keeps track of clients

Websocket protocol

  1. JSON formatted message types

    - connection/handshake request from client to server
    - connection/handshake confirmation from server to client
    - close request from client to server
    - error/warning/logging message from client to server
    - error/warning/logging message from server to client
    - keepalive(?)
    

    Suggested protocol:

    label string {handshake, close, message, keepalive} required
    level string {info, warning, error} optional
    content string {} required
    
  2. Raw audio data
    Streamed audio is sent "raw" -- no json or metadata, just raw bytes over an existing websocket connection.

Simple flow chart

Simple flow chart

Suggested editor layout as of 2020-07-09

» Screenshot

Suggested layout

» HTML

docs/riispiik_layout_draft.html

Features skipped for later

- Editable ASR result text area
- Chat panel (to chat with other connected users)
- MQTT will not be added in the initial alfa version, but we will design the code so that it is relatively easy to plug in later on

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
riispiikcli command
Package logger is a simple logger API to make global logger configuration easier in future versions
Package logger is a simple logger API to make global logger configuration easier in future versions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址