Functions | Variables
c/porcupine_demo_mic.c File Reference
#include <getopt.h>
#include <math.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include "pv_porcupine.h"
#include "pv_recorder.h"
Include dependency graph for c/porcupine_demo_mic.c:

Go to the source code of this file.

Functions

static void close_dl (void *handle)
 
void interrupt_handler (int _)
 
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)
 
static void print_usage (const char *program_name)
 
void show_audio_devices (void)
 

Variables

static volatile bool is_interrupted = false
 
static struct option long_options []
 

Function Documentation

◆ close_dl()

static void close_dl ( void *  handle)
static

Definition at line 61 of file c/porcupine_demo_mic.c.

◆ interrupt_handler()

void interrupt_handler ( int  _)

Definition at line 104 of file c/porcupine_demo_mic.c.

◆ load_symbol()

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

Definition at line 47 of file c/porcupine_demo_mic.c.

◆ main()

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

Definition at line 127 of file c/porcupine_demo_mic.c.

◆ open_dl()

static void* open_dl ( const char *  dl_path)
static

Definition at line 33 of file c/porcupine_demo_mic.c.

◆ print_dl_error()

static void print_dl_error ( const char *  message)
static

Definition at line 75 of file c/porcupine_demo_mic.c.

◆ print_usage()

static void print_usage ( const char *  program_name)
static

Definition at line 99 of file c/porcupine_demo_mic.c.

◆ show_audio_devices()

void show_audio_devices ( void  )

Definition at line 109 of file c/porcupine_demo_mic.c.

Variable Documentation

◆ is_interrupted

volatile bool is_interrupted = false
static

Definition at line 31 of file c/porcupine_demo_mic.c.

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"show_audio_devices", no_argument, NULL, 's'},
{"library_path", required_argument, NULL, 'l'},
{"model_path", required_argument, NULL, 'm'},
{"keyword_path", required_argument, NULL, 'k'},
{"sensitivity", required_argument, NULL, 't'},
{"access_key", required_argument, NULL, 'a'},
{"audio_device_index", required_argument, NULL, 'd'}
}

Definition at line 89 of file c/porcupine_demo_mic.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