Macros | Functions | Variables
rhino_demo_file.c File Reference
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <dlfcn.h>
#include "dr_wav.h"
#include "pv_rhino.h"
Include dependency graph for rhino_demo_file.c:

Go to the source code of this file.

Macros

#define DR_WAV_IMPLEMENTATION
 

Functions

static void close_dl (void *handle)
 
static void * load_symbol (void *handle, const char *symbol)
 
int main (int argc, char *argv[])
 
static void * open_dl (const char *dl_path)
 
static void print_dl_error (const char *message)
 
void print_usage (const char *program_name)
 

Variables

static struct option long_options []
 

Macro Definition Documentation

◆ DR_WAV_IMPLEMENTATION

#define DR_WAV_IMPLEMENTATION

Definition at line 28 of file rhino_demo_file.c.

Function Documentation

◆ close_dl()

static void close_dl ( void *  handle)
static

Definition at line 62 of file rhino_demo_file.c.

◆ load_symbol()

static void* load_symbol ( void *  handle,
const char *  symbol 
)
static

Definition at line 48 of file rhino_demo_file.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 106 of file rhino_demo_file.c.

◆ open_dl()

static void* open_dl ( const char *  dl_path)
static

Definition at line 34 of file rhino_demo_file.c.

◆ print_dl_error()

static void print_dl_error ( const char *  message)
static

Definition at line 76 of file rhino_demo_file.c.

◆ print_usage()

void print_usage ( const char *  program_name)

Definition at line 100 of file rhino_demo_file.c.

Variable Documentation

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"library_path", required_argument, NULL, 'l'},
{"model_path", required_argument, NULL, 'm'},
{"context_path", required_argument, NULL, 'c'},
{"sensitivity", required_argument, NULL, 't'},
{"require_endpoint", required_argument, NULL, 'e'},
{"access_key", required_argument, NULL, 'a'},
{"wav_path", required_argument, NULL, 'w'}
}

Definition at line 90 of file rhino_demo_file.c.

NULL
#define NULL
Definition: porcupine/demo/c/dr_libs/tests/external/miniaudio/extras/speex_resampler/thirdparty/resample.c:92


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:00