AzureAssetsWakeWordMiddleware

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.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
data class Options(val apiKey: String, val keywords: String = AZURE_WAKEWORD_DEFAULT_KEYWORDS, val model: String = AZURE_WAKEWORD_DEFAULT_MODEL, val region: String = AZURE_WAKEWORD_DEFAULT_REGION, val action: WakeWordAction = WakeWordAction.ActivateMapGpt)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val provider: WakeWordProvider
Link copied to clipboard
open override val state: StateFlow<WakeWordState>

Functions

Link copied to clipboard
fun detach()
Link copied to clipboard
open override fun onAttached(middlewareContext: MapGptCoreContext)
Link copied to clipboard
open override fun onDetached(middlewareContext: MapGptCoreContext)
Link copied to clipboard
open override fun startListening()
Link copied to clipboard
open override fun stopListening()