PebbleOS
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions
transcription.h File Reference
#include <applib/graphics/utf8.h>
#include <pbl/kernel/compiler.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>

Data Structures

struct  TranscriptionWord
 Word with its confidence value. More...
 
struct  TranscriptionSentence
 Sentence, a serialized list of words. More...
 
struct  Transcription
 Transcription: one or more sentences of words. More...
 

Typedefs

typedef bool(* TranscriptionSentenceIterateCb) (const TranscriptionSentence *sentence, void *data)
 Sentence iteration callback.
 
typedef bool(* TranscriptionWordIterateCb) (const TranscriptionWord *word, void *data)
 Word iteration callback.
 

Enumerations

enum  TranscriptionType { TranscriptionTypeSentenceList = 0x01 }
 Transcription format. More...
 

Functions

bool transcription_validate (const Transcription *transcription, size_t size)
 Check that a transcription received from the phone is well formed.
 
void * transcription_iterate_sentences (const TranscriptionSentence *sentences, size_t count, TranscriptionSentenceIterateCb handle_sentence, void *data)
 Iterate over a serialized list of sentences.
 
void * transcription_iterate_words (const TranscriptionWord *words, size_t count, TranscriptionWordIterateCb handle_word, void *data)
 Iterate over a serialized list of words.