class Api::Injection

Overview

The Injection facade, used to programatically and dynamically inject new data into the voice recognition model.

Included Modules

Defined in:

api/injection.cr

Instance Method Summary

Instance methods inherited from module Bindings

call!(result)
call!(&block)
call!

Instance Method Detail

def publish_injection_request(message) #

Publish a request to inject data.


[View source]
def publish_injection_reset_request(message) #

Publish a message to reset the previously injected data.


[View source]
def publish_injection_status_request #

Publish a message a request a status update for a pending injection.


[View source]
def subscribe_injection_complete(*extra_args, once = false, &callback : InjectionCompleteMessage -> Void) #

Subscribe to injection_complete events.


[View source]
def subscribe_injection_reset_complete(*extra_args, once = false, &callback : InjectionResetCompleteMessage -> Void) #

Subscribe to injection_reset_complete events.


[View source]
def subscribe_injection_status(*extra_args, once = false, &callback : InjectionStatusMessage -> Void) #

Subscribe to injection_status events.


[View source]
def unsubscribe_injection_complete(callback_ref, *extra_args) #

Unsubscribe to injection_complete events.


[View source]
def unsubscribe_injection_reset_complete(callback_ref, *extra_args) #

Unsubscribe to injection_reset_complete events.


[View source]
def unsubscribe_injection_status(callback_ref, *extra_args) #

Unsubscribe to injection_status events.


[View source]