VoiceTemplate
IntroductionRepresents voice template. Methods
getInitDataId:Returns ID of the init data, which was used to create the template. - (NSString* _Nullable)getInitDataId:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueA string containing init data ID. initWithBytes:error:Initializes voice template with contents of NSData obtained with [serialize] method. - (instancetype _Nullable)initWithBytes:(NSData* _Nonnull)bytes error:(NSError* _Nullable* _Nullable)error; ParametersinitWithPath:error:Initializes voice template with contents of file created with [saveToFile] method.. - (instancetype _Nullable)initWithPath:(NSString* _Nonnull)path error:(NSError* _Nullable* _Nullable)error; ParametersisValid:Checks if voice template is valid. - (VoiceSdkBool* _Nullable)isValid:(NSError* _Nullable* _Nullable)error; Return ValueBoolean flag (true if template is valid or false if it is not). saveToFile:error:Saves voice template to file. - (BOOL)saveToFile:(NSString* _Nonnull)path error:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueTrue on success, false otherwise. serialize:Serializes voice template into NSData. - (NSData* _Nullable)serialize:(NSError* _Nullable* _Nullable)error; ParametersReturn ValueNSData object containing serialized template. |