feat(voice): migrate to push2talk and serialize websocket text sends
This commit is contained in:
@@ -95,6 +95,18 @@ esp_err_t platform_display_show_png(const uint8_t *png,
|
||||
void platform_display_mark_shared_spi_dirty(void);
|
||||
void platform_display_deinit(void);
|
||||
|
||||
// ---------- mic_key ----------
|
||||
typedef enum {
|
||||
PLATFORM_MIC_KEY_EVENT_PRESS_DOWN = 0,
|
||||
PLATFORM_MIC_KEY_EVENT_PRESS_UP,
|
||||
} platform_mic_key_event_t;
|
||||
|
||||
typedef void (*platform_mic_key_event_cb_t)(platform_mic_key_event_t event, void *user_data);
|
||||
|
||||
esp_err_t platform_mic_key_init(void);
|
||||
void platform_mic_key_deinit(void);
|
||||
esp_err_t platform_mic_key_set_event_callback(platform_mic_key_event_cb_t cb, void *user_data);
|
||||
|
||||
// ---------- voice_audio ----------
|
||||
typedef struct {
|
||||
uint32_t sample_rate;
|
||||
|
||||
Reference in New Issue
Block a user