forked from xiaozhi/xiaozhi-esp32
22 lines
349 B
C
22 lines
349 B
C
|
|
#ifndef AUDIO_DEBUGGER_H
|
||
|
|
#define AUDIO_DEBUGGER_H
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
#include <cstdint>
|
||
|
|
|
||
|
|
#include <sys/socket.h>
|
||
|
|
#include <netinet/in.h>
|
||
|
|
|
||
|
|
class AudioDebugger {
|
||
|
|
public:
|
||
|
|
AudioDebugger();
|
||
|
|
~AudioDebugger();
|
||
|
|
|
||
|
|
void Feed(const std::vector<int16_t>& data);
|
||
|
|
|
||
|
|
private:
|
||
|
|
int udp_sockfd_ = -1;
|
||
|
|
struct sockaddr_in udp_server_addr_;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|