|
PebbleOS
|
Speex wideband (16 kHz) encoder used to stream dictation audio. More...
Functions | |
| bool | voice_speex_init (void) |
| Initialize the encoder and allocate its buffers. | |
| void | voice_speex_deinit (void) |
| Release the encoder and its buffers. | |
| void | voice_speex_get_transfer_info (AudioTransferInfoSpeex *info) |
| Get the transfer info sent to the phone before the encoded audio. | |
| int | voice_speex_get_frame_size (void) |
| Get the frame size. | |
| int16_t * | voice_speex_get_frame_buffer (void) |
| Get the buffer the microphone fills with one frame. | |
| size_t | voice_speex_get_frame_buffer_size (void) |
| Get the frame buffer size. | |
| int | voice_speex_encode_frame (int16_t *samples, uint8_t *encoded_data, size_t max_encoded_size) |
| Encode one frame. | |
| bool | voice_speex_is_initialized (void) |
| Check whether the encoder is initialized. | |
Speex wideband (16 kHz) encoder used to stream dictation audio.
The encoder owns the microphone frame buffer. Samples are boosted by a fixed gain before encoding; stereo input is downmixed to mono with Speex stereo side information.
| void voice_speex_deinit | ( | void | ) |
Release the encoder and its buffers.
| int voice_speex_encode_frame | ( | int16_t * | samples, |
| uint8_t * | encoded_data, | ||
| size_t | max_encoded_size | ||
| ) |
Encode one frame.
| [in,out] | samples | voice_speex_get_frame_size() samples, modified in place (gain and downmix). |
| [out] | encoded_data | Encoded output. |
| max_encoded_size | Size of encoded_data in bytes. |
| int16_t * voice_speex_get_frame_buffer | ( | void | ) |
Get the buffer the microphone fills with one frame.
| size_t voice_speex_get_frame_buffer_size | ( | void | ) |
Get the frame buffer size.
| int voice_speex_get_frame_size | ( | void | ) |
Get the frame size.
| void voice_speex_get_transfer_info | ( | AudioTransferInfoSpeex * | info | ) |
Get the transfer info sent to the phone before the encoded audio.
The encoder must be initialized.
| [out] | info | Transfer info. |
| bool voice_speex_init | ( | void | ) |
Initialize the encoder and allocate its buffers.
Does nothing if already initialized.
| bool voice_speex_is_initialized | ( | void | ) |
Check whether the encoder is initialized.