SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
Loading...
Searching...
No Matches
voice_capture.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define VOICE_CAPTURE_DEFAULT_SAMPLE_RATE_HZ   (16000U)
#define VOICE_CAPTURE_SAMPLES_PER_CHUNK   (1600U)

Functions

int voice_capture_start (const char *id, uint32_t sample_rate_hz)
 Start a (stub) capture; emits one second of silence synchronously — the caller blocks.
void voice_capture_stop (void)
 Idempotent stop; emits a final "final":true chunk if a capture is active.
bool voice_capture_is_running (void)
 True iff a capture is running; the mic-button label and start guard. No caller anywhere.

Macro Definition Documentation

◆ VOICE_CAPTURE_DEFAULT_SAMPLE_RATE_HZ

#define VOICE_CAPTURE_DEFAULT_SAMPLE_RATE_HZ   (16000U)

◆ VOICE_CAPTURE_SAMPLES_PER_CHUNK

#define VOICE_CAPTURE_SAMPLES_PER_CHUNK   (1600U)