PicovoicePorcupineWakeWordMiddleware

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

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

Parameters

apiToken

Required for Porcupine access.

provider

The wake word provider.

Constructors

Link copied to clipboard
constructor(apiToken: String, provider: WakeWordProvider = WakeWordProvider.PicovoicePorcupine)

Types

Link copied to clipboard
object Companion

Properties

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()