#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"
Go to the source code of this file.
◆ close_dl()
static void close_dl |
( |
void * |
handle | ) |
|
|
static |
◆ interrupt_handler()
void interrupt_handler |
( |
int |
_ | ) |
|
◆ load_symbol()
static void* load_symbol |
( |
void * |
handle, |
|
|
const char * |
symbol |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ open_dl()
static void* open_dl |
( |
const char * |
dl_path | ) |
|
|
static |
◆ print_dl_error()
static void print_dl_error |
( |
const char * |
message | ) |
|
|
static |
◆ print_usage()
static void print_usage |
( |
const char * |
program_name | ) |
|
|
static |
◆ show_audio_devices()
void show_audio_devices |
( |
void |
| ) |
|
◆ is_interrupted
volatile bool is_interrupted = false |
|
static |
◆ 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.