SpeechText.fromPointer constructor
- Pointer<
AILIASpeechText> text
Implementation
factory SpeechText.fromPointer(
ffi.Pointer<ailia_speech_dart.AILIASpeechText> text,
) {
ffi.Pointer<Utf8> p = text.ref.text.cast<Utf8>();
String s = p.toDartString();
return SpeechText(
s,
text.ref.person_id,
text.ref.confidence,
text.ref.time_stamp_begin,
text.ref.time_stamp_end,
);
}