Crate speex_sys Copy item path Source SpeexBits Bit-packing data structure representing (part of) a bit-stream. SpeexCallback Callback information SpeexHeader Speex header info for file-based formats SpeexMode Struct defining a Speex mode SpeexStereoState If you access any of these fields directly, I’ll personally come and bite you __fsid_t INT8_MAX INT8_MIN INT16_MAX INT16_MIN INT32_MAX INT32_MIN INTPTR_MAX INTPTR_MIN INT_FAST8_MAX INT_FAST8_MIN INT_FAST16_MAX INT_FAST16_MIN INT_FAST32_MAX INT_FAST32_MIN INT_LEAST8_MAX INT_LEAST8_MIN INT_LEAST16_MAX INT_LEAST16_MIN INT_LEAST32_MAX INT_LEAST32_MIN PTRDIFF_MAX PTRDIFF_MIN SIG_ATOMIC_MAX SIG_ATOMIC_MIN SIZE_MAX SPEEX_GET_ABR SPEEX_GET_ACTIVITY SPEEX_GET_BITRATE SPEEX_GET_COMPLEXITY SPEEX_GET_DTX SPEEX_GET_ENH SPEEX_GET_FRAME_SIZE SPEEX_GET_HIGHPASS SPEEX_GET_HIGH_MODE SPEEX_GET_LOOKAHEAD SPEEX_GET_LOW_MODE SPEEX_GET_MODE SPEEX_GET_PF SPEEX_GET_PLC_TUNING SPEEX_GET_RELATIVE_QUALITY SPEEX_GET_SAMPLING_RATE SPEEX_GET_SUBMODE_ENCODING SPEEX_GET_VAD SPEEX_GET_VBR SPEEX_GET_VBR_MAX_BITRATE SPEEX_GET_VBR_QUALITY SPEEX_HEADER_STRING_LENGTH SPEEX_HEADER_VERSION_LENGTH SPEEX_INBAND_ACKNOWLEDGE SPEEX_INBAND_ACKNOWLEDGE_REQUEST SPEEX_INBAND_CHAR SPEEX_INBAND_ENH_REQUEST SPEEX_INBAND_HIGH_MODE_REQUEST SPEEX_INBAND_LOW_MODE_REQUEST SPEEX_INBAND_MAX_BITRATE SPEEX_INBAND_MODE_REQUEST SPEEX_INBAND_RESERVED1 SPEEX_INBAND_STEREO SPEEX_INBAND_VBR_QUALITY_REQUEST SPEEX_INBAND_VBR_REQUEST SPEEX_LIB_GET_EXTRA_VERSION SPEEX_LIB_GET_MAJOR_VERSION SPEEX_LIB_GET_MICRO_VERSION SPEEX_LIB_GET_MINOR_VERSION SPEEX_LIB_GET_VERSION_STRING SPEEX_MAX_CALLBACKS SPEEX_MODEID_NB SPEEX_MODEID_UWB SPEEX_MODEID_WB SPEEX_MODE_FRAME_SIZE SPEEX_NB_MODES SPEEX_RESET_STATE SPEEX_SET_ABR SPEEX_SET_BITRATE SPEEX_SET_COMPLEXITY SPEEX_SET_DTX SPEEX_SET_ENH SPEEX_SET_HANDLER SPEEX_SET_HIGHPASS SPEEX_SET_HIGH_MODE SPEEX_SET_LOW_MODE SPEEX_SET_MODE SPEEX_SET_PF SPEEX_SET_PLC_TUNING SPEEX_SET_QUALITY SPEEX_SET_SAMPLING_RATE SPEEX_SET_SUBMODE_ENCODING SPEEX_SET_USER_HANDLER SPEEX_SET_VAD SPEEX_SET_VBR SPEEX_SET_VBR_MAX_BITRATE SPEEX_SET_VBR_QUALITY SPEEX_SUBMODE_BITS_PER_FRAME UINT8_MAX UINT16_MAX UINT32_MAX UINTPTR_MAX UINT_FAST8_MAX UINT_FAST16_MAX UINT_FAST32_MAX UINT_LEAST8_MAX UINT_LEAST16_MAX UINT_LEAST32_MAX WINT_MAX WINT_MIN _ATFILE_SOURCE _BITS_STDINT_INTN_H _BITS_STDINT_LEAST_H _BITS_STDINT_UINTN_H _BITS_TIME64_H _BITS_TYPESIZES_H _BITS_TYPES_H _BITS_WCHAR_H _DEFAULT_SOURCE _FEATURES_H _POSIX_C_SOURCE _POSIX_SOURCE _STDC_PREDEF_H _STDINT_H _SYS_CDEFS_H __FD_SETSIZE __GLIBC_MINOR__ __GLIBC_USE_C2X_STRTOL __GLIBC_USE_DEPRECATED_GETS __GLIBC_USE_DEPRECATED_SCANF __GLIBC_USE_IEC_60559_BFP_EXT __GLIBC_USE_IEC_60559_BFP_EXT_C2X __GLIBC_USE_IEC_60559_EXT __GLIBC_USE_IEC_60559_FUNCS_EXT __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X __GLIBC_USE_IEC_60559_TYPES_EXT __GLIBC_USE_ISOC2X __GLIBC_USE_LIB_EXT2 __GLIBC__ __GNU_LIBRARY__ __HAVE_GENERIC_SELECTION __INO_T_MATCHES_INO64_T __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI __OFF_T_MATCHES_OFF64_T __RLIM_T_MATCHES_RLIM64_T __STATFS_MATCHES_STATFS64 __STDC_IEC_559_COMPLEX__ __STDC_IEC_559__ __STDC_IEC_60559_BFP__ __STDC_IEC_60559_COMPLEX__ __STDC_ISO_10646__ __SYSCALL_WORDSIZE __TIMESIZE __USE_ATFILE __USE_FORTIFY_LEVEL __USE_ISOC11 __USE_ISOC95 __USE_ISOC99 __USE_MISC __USE_POSIX __USE_POSIX2 __USE_POSIX199309 __USE_POSIX199506 __USE_POSIX_IMPLICITLY __USE_XOPEN2K __USE_XOPEN2K8 __WORDSIZE __WORDSIZE_TIME64_COMPAT32 __glibc_c99_flexarr_available speex_mode_list ⚠ List of all modes available speex_nb_mode ⚠ Default narrowband mode speex_uwb_mode ⚠ Default “ultra-wideband” mode speex_wb_mode ⚠ Default wideband mode speex_bits_advance ⚠ Advances the position of the “bit cursor” in the stream speex_bits_destroy ⚠ Frees all resources associated to a SpeexBits struct. Right now this does nothing since no resources are allocated, but this could change in the future. speex_bits_init ⚠ Initializes and allocates resources for a SpeexBits struct speex_bits_init_buffer ⚠ Initializes SpeexBits struct using a pre-allocated buffer speex_bits_insert_terminator ⚠ Insert a terminator so that the data can be sent as a packet while auto-detecting
the number of frames in each packet speex_bits_nbytes ⚠ Returns the number of bytes in the bit-stream, including the last one even if it is not “full” speex_bits_pack ⚠ Append bits to the bit-stream
@param bits Bit-stream to operate on
@param data Value to append as integer
@param nbBits number of bits to consider in “data” speex_bits_peek ⚠ Get the value of the next bit in the stream, without modifying the
“cursor” position speex_bits_peek_unsigned ⚠ Same as speex_bits_unpack_unsigned, but without modifying the cursor position speex_bits_read_from ⚠ Initializes the bit-stream from the data in an area of memory speex_bits_read_whole_bytes ⚠ Append bytes to the bit-stream speex_bits_remaining ⚠ Returns the number of bits remaining to be read in a stream speex_bits_reset ⚠ Resets bits to initial value (just after initialization, erasing content) speex_bits_rewind ⚠ Rewind the bit-stream to the beginning (ready for read) without erasing the content speex_bits_set_bit_buffer ⚠ Sets the bits in a SpeexBits struct to use data from an existing buffer (for decoding without copying data) speex_bits_unpack_signed ⚠ Interpret the next bits in the bit-stream as a signed integer speex_bits_unpack_unsigned ⚠ Interpret the next bits in the bit-stream as an unsigned integer speex_bits_write ⚠ Write the content of a bit-stream to an area of memory speex_bits_write_whole_bytes ⚠ Like speex_bits_write, but writes only the complete bytes in the stream. Also removes the written bytes from the stream speex_decode ⚠ Uses an existing decoder state to decode one frame of speech from
bit-stream bits. The output speech is saved written to out. speex_decode_int ⚠ Uses an existing decoder state to decode one frame of speech from
bit-stream bits. The output speech is saved written to out. speex_decode_stereo ⚠ Transforms a mono frame into a stereo frame using intensity stereo info speex_decode_stereo_int ⚠ Transforms a mono frame into a stereo frame using intensity stereo info speex_decoder_ctl ⚠ Used like the ioctl function to control the encoder parameters speex_decoder_destroy ⚠ Frees all resources associated to an existing decoder state. speex_decoder_init ⚠ Returns a handle to a newly created decoder state structure. For now,
the mode argument can be &nb_mode or &wb_mode . In the future, more modes
may be added. Note that for now if you have more than one channels to
decode, you need one state per channel. speex_default_user_handler ⚠ Default handler for user-defined requests: in this case, just ignore speex_encode ⚠ Uses an existing encoder state to encode one frame of speech pointed to by
“in”. The encoded bit-stream is saved in “bits”.
@param state Encoder state
@param in Frame that will be encoded with a +-2^15 range. This data MAY be
overwritten by the encoder and should be considered uninitialised
after the call.
@param bits Bit-stream where the data will be written
@return 0 if frame needs not be transmitted (DTX only), 1 otherwise speex_encode_int ⚠ Uses an existing encoder state to encode one frame of speech pointed to by
“in”. The encoded bit-stream is saved in “bits”.
@param state Encoder state
@param in Frame that will be encoded with a +-2^15 range
@param bits Bit-stream where the data will be written
@return 0 if frame needs not be transmitted (DTX only), 1 otherwise speex_encode_stereo ⚠ Transforms a stereo frame into a mono frame and stores intensity stereo info in ‘bits’ speex_encode_stereo_int ⚠ Transforms a stereo frame into a mono frame and stores intensity stereo info in ‘bits’ speex_encoder_ctl ⚠ Used like the ioctl function to control the encoder parameters speex_encoder_destroy ⚠ Frees all resources associated to an existing Speex encoder state.
@param state Encoder state to be destroyed speex_encoder_init ⚠ Returns a handle to a newly created Speex encoder state structure. For now,
the “mode” argument can be &nb_mode or &wb_mode . In the future, more modes
may be added. Note that for now if you have more than one channels to
encode, you need one state per channel. speex_header_free ⚠ Frees the memory allocated by either speex_header_to_packet() or speex_packet_to_header() speex_header_to_packet ⚠ Creates the header packet from the header itself (mostly involves endianness conversion) speex_inband_handler ⚠ Handle in-band request speex_init_header ⚠ Initializes a SpeexHeader using basic information speex_lib_ctl ⚠ Functions for controlling the behavior of libspeex
@param request ioctl-type request (one of the SPEEX_LIB_* macros)
@param ptr Data exchanged to-from function
@return 0 if no error, -1 if request in unknown, -2 for invalid parameter speex_lib_get_mode ⚠ Obtain one of the modes available speex_mode_query ⚠ Query function for mode information speex_packet_to_header ⚠ Creates a SpeexHeader from a packet speex_std_char_handler ⚠ Standard handler for in-band characters (write to stderr) speex_std_enh_request_handler ⚠ Standard handler for enhancer request (Turn enhancer on/off, no questions asked) speex_std_high_mode_request_handler ⚠ Standard handler for high mode request (change high mode, no questions asked) speex_std_low_mode_request_handler ⚠ Standard handler for low mode request (change low mode, no questions asked) speex_std_mode_request_handler ⚠ Standard handler for mode request (change mode, no questions asked) speex_std_stereo_request_handler ⚠ Callback handler for intensity stereo info speex_std_vbr_quality_request_handler ⚠ Standard handler for VBR quality request (Set VBR quality, no questions asked) speex_std_vbr_request_handler ⚠ Standard handler for VBR request (Set VBR, no questions asked) speex_stereo_state_destroy ⚠ Destroy a stereo stereo state speex_stereo_state_init ⚠ Initialise/create a stereo stereo state speex_stereo_state_reset ⚠ Reset/re-initialise an already allocated stereo state __blkcnt64_t __blkcnt_t __blksize_t __caddr_t __clock_t __clockid_t __daddr_t __dev_t __fsblkcnt64_t __fsblkcnt_t __fsfilcnt64_t __fsfilcnt_t __fsword_t __gid_t __id_t __ino64_t __ino_t __int8_t __int16_t __int32_t __int64_t __int_least8_t __int_least16_t __int_least32_t __int_least64_t __intmax_t __intptr_t __key_t __loff_t __mode_t __nlink_t __off64_t __off_t __pid_t __quad_t __rlim64_t __rlim_t __sig_atomic_t __socklen_t __ssize_t __suseconds64_t __suseconds_t __syscall_slong_t __syscall_ulong_t __time_t __timer_t __u_char __u_int __u_long __u_quad_t __u_short __uid_t __uint8_t __uint16_t __uint32_t __uint64_t __uint_least8_t __uint_least16_t __uint_least32_t __uint_least64_t __uintmax_t __useconds_t decode_func Main decoding function decoder_ctl_func Function for controlling the decoder options decoder_destroy_func Decoder state destruction function decoder_init_func Decoder state initialization function encode_func Main encoding function encoder_ctl_func Function for controlling the encoder options encoder_destroy_func Encoder state destruction function encoder_init_func Encoder state initialization function int_fast8_t int_fast16_t int_fast32_t int_fast64_t int_least8_t int_least16_t int_least32_t int_least64_t intmax_t mode_query_func Query function for a mode speex_callback_func Callback function type spx_int16_t spx_int32_t spx_uint16_t spx_uint32_t uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t uint_least8_t uint_least16_t uint_least32_t uint_least64_t uintmax_t