pycozmo.audio¶
Cozmo audio encoding.
- References:
Functions
bytes_to_cozmo(byte_string, rate_correction, …) |
Convert a 744 sample, 16-bit audio frame into a U-law encoded frame. |
load_wav(filename) |
Load a WAVE file into a list of OutputAudio packets. |
u_law_encoding(sample) |
U-law encode a 16-bit PCM sample. |
-
pycozmo.audio.load_wav(filename: str) → List[pycozmo.protocol_encoder.OutputAudio]¶ Load a WAVE file into a list of OutputAudio packets.