Package-level declarations

Types

Link copied to clipboard
class AzureAssetsWakeWordMiddleware(val options: AzureAssetsWakeWordMiddleware.Options) : CoroutineMiddleware<MapGptCoreContext> , WakeWordMiddleware

This middleware uses the Azure Cognitive Services Speech SDK to recognize wake words. It requires that the model file is placed in the "assets" directory. If the model is not found, the middleware will not start and will emit an error state.

Link copied to clipboard
class PicovoicePorcupineWakeWordMiddleware(apiToken: String, val provider: WakeWordProvider = WakeWordProvider.PicovoicePorcupine) : CoroutineMiddleware<MapGptCoreContext> , WakeWordMiddleware

Integrates Picovoice Porcupine for wake word detection in apps using DashMapGptConfig.wakeWordMiddleware.

Link copied to clipboard
typealias PorcupineManagerBuilderExtra = PorcupineManager.Builder.() -> Unit

Functions

Link copied to clipboard

This extension function pulls any azure models from the "assets/keywords" directory. Making it inject AzureAssetsWakeWordMiddleware from the assets directory.