Namespace Speechly.SLUClient
Classes
CloudDecoder
Provides speech processing with Speechly's cloud SLU service.
Internally handles authentication using https and audio streaming via secure websocket. Audio is streamed when listening is started with SpeechlyClient.Start(). Streaming stops upon call to SpeechlyClient.Stop().
IDecoder
OnDeviceDecoder
Segment
A high level API for automatic speech recognition (ASR) and natural language understanding (NLU) results. Results will accumulate in Segment for the duration of the an utterance.
SpeechlyClient
Create a new Speechly Spoken Language Understading (SLU) Client to process speech and provide the results of automatic speech recogition (ASR) and natural langugage understanding (NLU) using delegates.
Usage
- Create a new SpeechlyClient instance.
- Create an SLU decoder (CloudDecoder) and pass it to
SpeechlyClient
's Initialize(IDecoder, AudioProcessorOptions, ContextOptions, Boolean). - Attach delegates like OnSegmentChange to listen to and handle the SLU results.
- Feed audio to process with ProcessAudio(Single[], Int32, Int32).
- (delegates are firing up as speech is processed)
- When you don't need SLU services any more call Shutdown() to free resources.
You can feed audio continuously, but control when to start and stop process speech with Start(String) and Stop() or let voice activity detection (VAD) handle that automatically by passing EnergyThresholdVAD to SpeechlyClient constructor.