ex
Fork of mbed-os-example-mbed5-blinky by
Diff: DuerOS-Light-SDK-v1.1.0/duer-os-light/src/baidu-speedx/baidu_speex.h
- Revision:
- 47:9e361da97763
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DuerOS-Light-SDK-v1.1.0/duer-os-light/src/baidu-speedx/baidu_speex.h Tue Jul 18 16:54:45 2017 +0800
@@ -0,0 +1,38 @@
+#ifndef BAIDU_SPEEX_H
+#define BAIDU_SPEEX_H
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+TYPE:
+typedef void (*bdspx_output_hdlr_t)(char *p_spx_buf, int n_bytes, int b_flush)
+
+DESC:
+callback to output speex data
+
+PARAM:
+@param[in] p_spx_buf: speex buffer to output
+@param[in] n_bytes: speex buffer length
+@param[in] b_flush: to flush all speex data to output
+*/
+typedef void (*bdspx_output_hdlr_t)(void *ctx, char *p_spx_buf, int n_bytes, int b_flush);
+
+int bdspx_speex_init(int n_sample_rate, void **buf);
+int bdspx_speex_encode(char *p_pcm_buff, int *p_len, int n_end, bdspx_output_hdlr_t output_hdlr, void *ctx, void *buf);
+void bdspx_speex_destroy(void *buf);
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif
+
+
+
+
+
+
+
