Speechly Decoder API
API reference for Speechly Decoder, the libary used for on-device speech recognition. At its core Speechly Decoder is a C library. The documentation is for the most part autogenerated from the C API specified in Decoder.h
.
Usage
- Create a
DecoderFactory
withDecoderFactory_CreateFromModelArchive
- Spawn a
Decoder
withDecoderFactory_GetDecoder
- Feed audio samples to the
Decoder
withDecoder_WriteSamples
. Be sure to writeend_of_stream=1
! - Read
CResultWords
containing the decoding results withDecoder_WaitResults
until empty word. - Clean up result objects with
CResultWord_Destroy
- Clean up decoder with
Decoder_Destroy
- Clean up decoder factory with
DecoderFactory_Destroy