voxxy

Reference

Every public module of voxxy, generated from the source. The API can still change before 1.0.

Version 0.1.2

Start here

  • createVoxxyCreates the handle a page talks to. It starts with no provider: pass one to select() (for example moonshineStt() or paradeeTts()), then call load(), listen() and speak().
  • VoxxyThe host's handle. It owns the providers it was given: it loads and unloads them. A provider instance belongs to one Voxxy; sharing it between two is not supported.
  • SttProviderPush-to-talk speech recognition. No streaming partial results in the interface.
  • TtsProviderSpeech synthesis that plays the sound itself.
  • createMicRecorderPush-to-talk recorder: the Recorder that pcmListener plugs into. Yields mono 16 kHz Float32 PCM.
  • createWebAudioPlayerThe Player that pcmSpeaker plugs into: WebAudio playback of PCM at whatever sample rate the model produces (the browser resamples), with buffers scheduled back to back on the audio clock, so a text handed over while the previous one plays starts exactly when it ends.

Modules

A guided tour with examples is on the main page; the long-form notes are in the package README.