|
SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
|
#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) |
| เริ่มการบันทึกเสียง (ซึ่งเป็น stub) ส่งความเงียบหนึ่งวินาทีออกไปแบบซิงโครนัส — ผู้เรียกจะถูกบล็อก | |
| void | voice_capture_stop (void) |
| หยุดแบบ idempotent ส่ง chunk สุดท้ายที่มี "final":true ออกไปถ้ามีการบันทึกทำงานอยู่ | |
| bool | voice_capture_is_running (void) |
| คืน true ก็ต่อเมื่อมีการบันทึกทำงานอยู่ ใช้กับป้ายปุ่มไมโครโฟนและเป็นตัวกันก่อนเริ่ม ไม่มีผู้เรียกที่ใดเลย | |
| #define VOICE_CAPTURE_DEFAULT_SAMPLE_RATE_HZ (16000U) |
| #define VOICE_CAPTURE_SAMPLES_PER_CHUNK (1600U) |