KIOSUploader Class Reference
Inherits from | NSObject |
---|---|
Declared in | KIOSUploader.h |
Overview
KIOSUploader class provides methods that manage uploads of speech recognition metadata and audio recordings to Dashboard, a Keen Research cloud service for data collection and development of voice applications.
For more details see http://keenresearch.com.
removeDataAfterUpload
If set to TRUE, data will be deleted from the device after it has been succesfully uploaded to the cloud. If FALSE, data will be kept on the device after it’s been uploaded, it will just be renamed to the files with additional extension .BKP.
@property (class) BOOL removeDataAfterUpload
Discussion
Default is TRUE.
Declared In
KIOSUploader.h
+ createDataUploadThreadForRecognizer:usingAppKey:
Creates a background thread which periodically scans recognizer data directory and uploads audio recordings and speech recognition metadata to Dashboard, a Keen Research cloud service. Data will be uploaded to the cloud service using the specified appKey.
+ (BOOL)createDataUploadThreadForRecognizer:(KIOSRecognizer *)recognizer usingAppKey:(NSString *)appKey
Parameters
recognizer |
recognizer for which recordings and metadata will be uploaded |
---|---|
appKey |
app key provided for your app via Dashboard cloud service |
Return Value
TRUE if upload thread was successfully created, FALSE otherwise.
If provided appKey cannot be matched via cloud API, upload requests will be ignored.
KIOSUploader will currently upload data as long as there is internet connectivity regardless of its type (WiFi, LTE, etc.). Future releases will provide finer control over the type of internet connectivity channels that should be used for uploads.
Discussion
For more details see http://keenresearch.com/dashboard
Declared In
KIOSUploader.h
+ pause
Pause uploads in already created upload thread. If upload thread was not created prior to calling this method, the call to this method will be ignored. Once uploads have* been paused they can be resumed at any time by calling [KIOSUploader resume].
+ (BOOL)pause
Return Value
YES if uploader thread was paused successfully, NO otherwise.
Declared In
KIOSUploader.h
+ resume
Resume uploads in already created upload thread.
+ (BOOL)resume
Return Value
YES if uploads successfully resumed (data upload thread has been created prior to calling this method), NO if uploads cannot be resumed.
Declared In
KIOSUploader.h
+ stop
Schedules uploader thread to be stopped as soon as possible.
+ (BOOL)stop
Return Value
YES if uploader thread was successfully schedule for stopping, false otherwise.
Declared In
KIOSUploader.h