fix: improve field diagnostics and mirror logs to USB CDC
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef BANBAN_NET_DIAG_VOICE_H
|
||||
#define BANBAN_NET_DIAG_VOICE_H
|
||||
enum {
|
||||
VOICE_SPEECH, VOICE_RECORD_STOP, VOICE_END_QUEUED, VOICE_END_ACK,
|
||||
VOICE_TTS_START, VOICE_FIRST_URL, VOICE_DOWNLOAD_BEGIN,
|
||||
VOICE_DOWNLOAD_DONE, VOICE_FIRST_PCM, VOICE_STAGE_COUNT
|
||||
};
|
||||
void net_diag_voice_begin(unsigned int round);
|
||||
/* round=0 means the currently recording round (for the VAD task). */
|
||||
void net_diag_voice_mark(unsigned int round, int stage);
|
||||
void net_diag_voice_url(unsigned int round, const char *url);
|
||||
unsigned int net_diag_audio_begin(const char *url);
|
||||
void net_diag_audio_done(unsigned int round, int bytes, int result);
|
||||
void net_diag_vad_stats(unsigned int frames, unsigned int speech, unsigned int peak);
|
||||
#endif
|
||||
Reference in New Issue
Block a user