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 toselect()(for examplemoonshineStt()orparadeeTts()), then callload(),listen()andspeak().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: theRecorderthatpcmListenerplugs into. Yields mono 16 kHz Float32 PCM.createWebAudioPlayerThePlayerthatpcmSpeakerplugs 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
voxxyThe core: createVoxxy, the provider contracts, microphone recorder, audio player, model manager and sentence splitter.82 exportsvoxxy/stt/moonshineMoonshine tiny speech recognition, running in its own worker. English.3 exportsvoxxy/tts/paradeeParadee speech synthesis, running in its own worker. English.3 exportsvoxxy/stt/platformThe browser's own speech recognition, with a note on whether audio leaves the device.3 exportsvoxxy/tts/platformThe browser's own speech synthesis.5 exportsvoxxy/serveWorker-side helpers for writing your own worker-backed adapter.3 exportsvoxxy/testingFake recorder and player, for tests.5 exports
A guided tour with examples is on the main page; the long-form notes are in the package README.