NUGU SDK Linux  1.7.6
nugu_recorder.h File Reference
#include <nugu.h>
#include <base/nugu_audio.h>
+ Include dependency graph for nugu_recorder.h:

Go to the source code of this file.

Classes

struct  nugu_recorder_driver_ops
 

Macros

#define NUGU_RECORDER_BUFFER_SIZE    (NUGU_RECORDER_FRAME_SIZE * NUGU_RECORDER_MAX_FRAMES)
 recorder buffer size
 
#define NUGU_RECORDER_FRAME_SIZE   512
 recorder default frame size
 
#define NUGU_RECORDER_MAX_FRAMES   100
 recorder max frame size
 

Typedefs

typedef struct _nugu_recorder NuguRecorder
 recorder object
 
typedef struct _nugu_recorder_driver NuguRecorderDriver
 recorder driver object
 

Functions

NUGU_API int nugu_recorder_add (NuguRecorder *rec)
 Add recorder object to managed list. More...
 
NUGU_API int nugu_recorder_clear (NuguRecorder *rec)
 Clear recording data. More...
 
NUGU_API NuguRecorderDrivernugu_recorder_driver_find (const char *name)
 Find a driver by name in the driver list. More...
 
NUGU_API int nugu_recorder_driver_free (NuguRecorderDriver *driver)
 Destroy the recorder driver object. More...
 
NUGU_API NuguRecorderDrivernugu_recorder_driver_get_default (void)
 Get the default recorder driver. More...
 
NUGU_API NuguRecorderDrivernugu_recorder_driver_new (const char *name, struct nugu_recorder_driver_ops *ops)
 Create new recorder driver object. More...
 
NUGU_API int nugu_recorder_driver_register (NuguRecorderDriver *driver)
 Register the driver to driver list. More...
 
NUGU_API int nugu_recorder_driver_remove (NuguRecorderDriver *driver)
 Remove the driver from driver list. More...
 
NUGU_API int nugu_recorder_driver_set_default (NuguRecorderDriver *driver)
 Set the default recorder driver. More...
 
NUGU_API NuguRecordernugu_recorder_find (const char *name)
 Find a recorder object by name in the managed list. More...
 
NUGU_API void nugu_recorder_free (NuguRecorder *rec)
 Destroy the recorder object. More...
 
NUGU_API void * nugu_recorder_get_driver_data (NuguRecorder *rec)
 Get custom data for driver. More...
 
NUGU_API int nugu_recorder_get_frame (NuguRecorder *rec, char *data, int *size)
 Get recorded data. More...
 
NUGU_API int nugu_recorder_get_frame_count (NuguRecorder *rec)
 Get frame count. More...
 
NUGU_API int nugu_recorder_get_frame_size (NuguRecorder *rec, int *size, int *max)
 Get frame size. More...
 
NUGU_API int nugu_recorder_get_frame_timeout (NuguRecorder *rec, char *data, int *size, int timeout)
 Get recorded data with timeout. More...
 
NUGU_API int nugu_recorder_is_recording (NuguRecorder *rec)
 Get the status of recording. More...
 
NUGU_API NuguRecordernugu_recorder_new (const char *name, NuguRecorderDriver *driver)
 Create new recorder object. More...
 
NUGU_API int nugu_recorder_push_frame (NuguRecorder *rec, const char *data, int size)
 Push recorded data. More...
 
NUGU_API int nugu_recorder_remove (NuguRecorder *rec)
 Remove recorder object from managed list. More...
 
NUGU_API int nugu_recorder_set_driver_data (NuguRecorder *rec, void *data)
 Set custom data for driver. More...
 
NUGU_API int nugu_recorder_set_frame_size (NuguRecorder *rec, int size, int max)
 Set frame size. More...
 
NUGU_API int nugu_recorder_set_property (NuguRecorder *rec, NuguAudioProperty property)
 Set property to recorder object. More...
 
NUGU_API int nugu_recorder_start (NuguRecorder *rec)
 Start recording. More...
 
NUGU_API int nugu_recorder_stop (NuguRecorder *rec)
 Stop recording. More...